summaryrefslogtreecommitdiff
path: root/programs/Xserver/hw/xfree86/scanpci/Imakefile
blob: 126b457ff897daaa2970be2d7527b5b5b5aae4d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/scanpci/Imakefile,v 1.11tsi Exp $

#if DoLoadableServer
#define IHaveSubdirs
SUBDIRS = module
#endif

#include <Server.tmpl>

MODPATHDEFINES = -DDEFAULT_MODULE_PATH=\"$(MODULEDIR)\"
   INCLUDES =	-I$(XF86SRC)/common -I$(XF86OSSRC) -I$(XF86OSSRC)/bus \
		-I$(SERVERSRC)/include -I$(SERVERSRC)/os \
		-I$(SERVERSRC)/Xext -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)

#if HasPerl5
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)

#else
LinkFile(xf86PciIds.h,xf86PciStdIds.h)
#endif

LinkFile(xf86PciData.c,xf86ScanPci.c)

SpecialCObjectRule(xf86PciData,NullParameter,-DPCIDATA)

#if DoLoadableServer
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

DependTarget()