blob: 4f8eaddd8aeda9f2d8f0ea93d91578fafaeb48b4 (
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
|
include $(top_srcdir)/misc/Makefile.quiet
include $(top_srcdir)/misc/Makefile.common
SUBDIRS = bin oth sysdep
if BUILD_DHA_KMOD
SUBDIRS += kernelhelper
endif
AM_CFLAGS = $(DEFAULT_OCFLAGS)
EXTRA_DIST = README pci_db2c.awk
awk_generated = pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h
CLEANFILES = $(awk_generated)
noinst_HEADERS = AsmMacros.h libdha.h pci_ids.h pci_names.h pci_vendors.h
if ENABLE_VIDIX
noinst_LTLIBRARIES = libdha.la
endif
libdha_la_SOURCES = libdha.c mtrr.c pci.c mmi.c ports.c irq.c cpu_flush.c
nodist_libdha_la_SOURCES = pci_names.c
EXTRA_PROGRAMS = test
test_SOURCES = test.c
test_LDADD = libdha.la
## for OpenBSD LIBS += -li386
## We have to create some files, on the fly, this is why this rule is needed.
pci_db2c.awk:
oth/pci.db:
$(awk_generated): pci_db2c.awk oth/pci.db
LC_ALL=C $(AWK) -f $(srcdir)/pci_db2c.awk \
$(srcdir)/oth/pci.db
pci_names.lo: $(awk_generated)
source='$*.c' object='$@' libtool=yes \
depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
$(CCDEPMODE) $(depcomp) \
$(LTCOMPILE) -c -o $@ `test -f $*.c || echo '$(srcdir)/'`$*.c
|