Rev 81 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# The Frame Buffer Device
ifndef BASE
BASE=../..
endif
include $(BASE)/config/config.mk
include makefile.cfg
LIBRARY = svga
OBJS_PATH = $(BASE)/drivers/svga
MODULES = timing.o vgaregs.o interface.o accel.o modetab.o interrupt.o\
vgapci.o vga_helper.o nv3.o vga.o vgadrv.o vgaio.o vgapal.o\
vgaclear.o vgadraw.o vgaaccel.o vgaline.o icd2061a.o\
./grx/glib.o vgammvgaio.o vgarelvgaio.o savage.o r128.o
RAMDAC = ramdac.o normal.o attdacs.o sierra.o vgamisc.o\
icw.o s3dacs.o IBMRGB52x.o ics_gendac.o
OBJS = $(MODULES) $(RAMDAC)
# defines for ramdac.c, ramdac.h (and files including it) only.
ifdef INCLUDE_NORMAL_DAC
RAMDAC_DEFINES += -DINCLUDE_NORMAL_DAC
ifdef INCLUDE_NORMAL_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_NORMAL_DAC_TEST
endif
endif
ifdef INCLUDE_S3_SDAC_DAC
RAMDAC_DEFINES += -DINCLUDE_S3_SDAC_DAC
ifdef INCLUDE_S3_SDAC_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_S3_SDAC_DAC_TEST
endif
endif
ifdef INCLUDE_S3_GENDAC_DAC
RAMDAC_DEFINES += -DINCLUDE_S3_GENDAC_DAC
ifdef INCLUDE_S3_GENDAC_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_S3_GENDAC_DAC_TEST
endif
endif
ifdef INCLUDE_S3_TRIO64_DAC
RAMDAC_DEFINES += -DINCLUDE_S3_TRIO64_DAC
ifdef INCLUDE_S3_TRIO64_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_S3_TRIO64_DAC_TEST
endif
endif
ifdef INCLUDE_SIERRA_DAC
RAMDAC_DEFINES += -DINCLUDE_SIERRA_DAC
ifdef INCLUDE_SIERRA_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_SIERRA_DAC_TEST
endif
endif
ifdef INCLUDE_SC15025_DAC
RAMDAC_DEFINES += -DINCLUDE_SC15025_DAC
ifdef INCLUDE_SC15025_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_SC15025_DAC_TEST
endif
endif
ifdef INCLUDE_ATT20C490_DAC
RAMDAC_DEFINES += -DINCLUDE_ATT20C490_DAC
ifdef INCLUDE_ATT20C490_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_ATT20C490_DAC_TEST
endif
endif
ifdef INCLUDE_ATT20C498_DAC
RAMDAC_DEFINES += -DINCLUDE_ATT20C498_DAC
ifdef INCLUDE_ATT20C498_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_ATT20C498_DAC_TEST
endif
endif
ifdef INCLUDE_ICW_DAC
RAMDAC_DEFINES += -DINCLUDE_ICW_DAC
ifdef INCLUDE_ICW_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_ICW_DAC_TEST
endif
endif
ifdef INCLUDE_IBMRGB52x_DAC
RAMDAC_DEFINES += -DINCLUDE_IBMRGB52x_DAC
ifdef INCLUDE_IBMRGB52x_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_IBMRGB52x_DAC_TEST
endif
endif
ifdef INCLUDE_SC1148X_DAC
RAMDAC_DEFINES += -DINCLUDE_SC1148X_DAC
ifdef INCLUDE_SC1148X_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_SC1148X_DAC_TEST
endif
endif
ifdef INCLUDE_ICS_GENDAC_DAC
RAMDAC_DEFINES += -DINCLUDE_ICS_GENDAC_DAC
ifdef INCLUDE_ICS_GENDAC_DAC_TEST
RAMDAC_DEFINES += -DINCLUDE_ICS_GENDAC_DAC_TEST
endif
endif
C_OPT += -I../linuxc24/include -D__KERNEL__ $(RAMDAC_DEFINES) $(VGA_DEFINES) $(DEFINES)
include $(BASE)/config/lib.mk