XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/scanpci/Imakefile,v 1.11 2002/12/23 01:46:17 dawes Exp $
SUBDIRS = module
MODPATHDEFINES = -DDEFAULT_MODULE_PATH=\"$(MODULEDIR)\"
INCLUDES = -I$(XF86SRC)/common -I$(XF86OSSRC) -I$(XF86OSSRC)/bus \
-I$(SERVERSRC)/include -I$(SERVERSRC)/os \
-I$(XINCLUDESRC) -I$(SERVERSRC)/Xext -I$(EXTINCSRC) \
-I$(SERVERSRC)/Xi \
-I$(FONTLIBSRC)/include -I$(XF86PARSERSRC) \
-I$(XF86SRC)/loader $(VGAINCLUDES) -I$(XF86SRC)/rac
SRCS = xf86ScanPci.c xf86PciData.c
NormalLibraryObjectRule()
NormalLibraryTarget(scanpci,xf86ScanPci.o)
NormalLibraryTarget(pcidata,xf86PciData.o)
PCIIDSRCS = ../etc/pci.ids ../etc/extrapci.ids
PCIIDS = pci.ids
$(PCIIDS): $(PCIIDSRCS)
RemoveFile($@)
cat $(PCIIDSRCS) > $@
includes:: xf86PciIds.h
xf86PciIds.h: $(PCIIDS) pciid2c.pl ../common/xf86PciInfo.h
RemoveFile($@)
RunPerlScript(pciid2c.pl, ../common/xf86PciInfo.h < $(PCIIDS) > $@)
clean::
RemoveFile($(PCIIDS))
RemoveFile(xf86PciIds.h)
LinkFile(xf86PciIds.h,xf86PciStdIds.h)
LinkFile(xf86PciData.c,xf86ScanPci.c)
SpecialCObjectRule(xf86PciData,NullParameter,-DPCIDATA)
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
DependTarget()