summaryrefslogtreecommitdiff
path: root/hw/xfree86/scanpci/Makefile.am
blob: 0acfe6ea175b2b192abce5be82a853a7cbfb6b4b (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
module_LTLIBRARIES = libscanpci.la libpcidata.la

libpcidata_la_SOURCES = xf86PciData.c
libscanpci_la_SOURCES = xf86ScanPci.c

INCLUDES = $(XORG_INCS) -I.

AM_CFLAGS = $(XORG_CFLAGS)

BUILT_SOURCES = xf86PciIds.h

EXTRA_DIST = \
	xf86PciData.h \
	xf86PciIds.h \
	xf86PciStdIds.h \
	xf86PciStr.h \
	xf86ScanPci.h

xf86PciData.c:
	echo "#define PCIDATA" > $@
	echo "#include \"$(srcdir)/xf86ScanPci.c\"" >> $@

xf86PciIds.h: $(srcdir)/../common/xf86PciInfo.h
	$(PERL) $(srcdir)/pciid2c.pl $(srcdir)/../common/xf86PciInfo.h < $(srcdir)/pci.ids > xf86PciIds.h

DISTCLEANFILES = xf86PciData.c xf86PciIds.h