]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/hwinfo/src/ids/Makefile
Signierten GPG-Schluessel importiert.
[people/pmueller/ipfire-2.x.git] / src / hwinfo / src / ids / Makefile
CommitLineData
93afd047
MT
1TOPDIR = ../..
2TARGETS = $(LIBHD_D)
3CLEANFILES = *.log src/*~
4DISTCLEANFILES = *.h *.xml *.ids check_hd
5
6include $(TOPDIR)/Makefile.common
7
8ifeq "$(ARCH)" "ppc"
9IDFILES += src/ppc
10endif
11
12ifeq "$(ARCH)" "ppc64"
13IDFILES += src/ppc
14endif
15
16IDFILES += src/bus src/class src/extra src/special src/scanner src/network \
17 src/usb src/usb2 src/isapnp src/monitor src/camera src/tv src/dvb \
18 src/chipcard src/modem src/pcmcia src/s390
19
20ifeq "$(ARCH)" "i386"
21IDFILES += src/x11.i386 src/modem.i386
22endif
23
24ifeq "$(ARCH)" "ppc"
25IDFILES += src/x11.ppc src/x11.ppc.special
26endif
27
28ifeq "$(ARCH)" "alpha"
29IDFILES += src/x11.axp
30endif
31
32ifeq "$(ARCH)" "sparc"
33IDFILES += src/x11.sparc
34endif
35
36ifeq "$(ARCH)" "sparc64"
37IDFILES += src/x11.sparc
38endif
39
40ifeq "$(ARCH)" "ia64"
41IDFILES += src/x11.ia64
42endif
43
44ifeq "$(ARCH)" "x86_64"
45IDFILES += src/x11.amd64
46endif
47
48IDFILES += src/pci src/storage src/sound src/mouse src/braille
49
50$(LIBHD_D): hd_ids.o
51 ar r $(LIBHD) $?
52
53check_hd: check_hd.c
54 $(CC) $(CFLAGS) $< -o $@
55
56hd_ids.c: hd_ids.h hd_ids_tiny.h
57
58hd_ids.h hd.ids: check_hd $(IDFILES)
59 ./check_hd --check --sort --cfile hd_ids.h $(IDFILES)
60
61hd_ids_tiny.h: check_hd hd.ids
62 ./check_hd --mini --cfile hd_ids_tiny.h --log=hd_tiny.log --out=hd_tiny.ids hd.ids
63