This commit was manufactured by cvs2svn to create tag
[opensuse:hwinfo.git] / src / ids / Makefile
1 TOPDIR          = ../..
2 TARGETS         = $(LIBHD_D)
3 CLEANFILES      = *.log src/*~
4 DISTCLEANFILES  = *.h *.xml *.ids check_hd
5
6 include $(TOPDIR)/Makefile.common
7
8 ifeq "$(ARCH)" "ppc"
9 IDFILES += src/ppc
10 endif
11
12 ifeq "$(ARCH)" "ppc64"
13 IDFILES += src/ppc
14 endif
15
16 IDFILES += 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
20 ifeq "$(ARCH)" "i386"
21 IDFILES += src/x11.i386
22 endif
23
24 ifeq "$(ARCH)" "ppc"
25 IDFILES += src/x11.ppc src/x11.ppc.special
26 endif
27
28 ifeq "$(ARCH)" "alpha"
29 IDFILES += src/x11.axp
30 endif
31
32 ifeq "$(ARCH)" "sparc"
33 IDFILES += src/x11.sparc
34 endif
35
36 ifeq "$(ARCH)" "sparc64"
37 IDFILES += src/x11.sparc
38 endif
39
40 ifeq "$(ARCH)" "ia64"
41 IDFILES += src/x11.ia64
42 endif
43
44 ifeq "$(ARCH)" "x86_64"
45 IDFILES += src/x11.amd64
46 endif
47
48 IDFILES += src/pci src/storage src/sound src/mouse src/braille
49
50 $(LIBHD_D): hd_ids.o
51         ar r $(LIBHD) $?
52
53 check_hd: check_hd.c
54         $(CC) $(CFLAGS) $< -o $@
55
56 hd_ids.c: hd_ids.h hd_ids_tiny.h
57
58 hd_ids.h hd.ids: check_hd $(IDFILES)
59         ./check_hd --check --sort --cfile hd_ids.h $(IDFILES)
60
61 hd_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