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