]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/io/io/server/libpciids/src/Makefile
Update
[l4.git] / l4 / pkg / io / io / server / libpciids / src / Makefile
1 PKGDIR        ?= ../../..
2 L4DIR         ?= $(PKGDIR)/../../..
3
4 PC_FILENAME    = libpciids
5 TARGET         = libpciids.a libpciids.so
6 SRC_C          = names.c
7 PRIVATE_INCDIR = .
8
9 include $(L4DIR)/mk/lib.mk
10
11 ifeq ($(BID_COMPILER_TYPE),gcc)
12 CFLAGS += -fvisibility=internal
13 endif
14
15 names.o names.s.o: devlist.h classlist.h
16
17 devlist.h classlist.h: $(SRC_DIR)/pci.ids gen-devlist $(GENERIC_LOC_D)
18         $(VERBOSE)echo -e "  ... Generating devlist.h/classlist.h"
19         $(VERBOSE)./gen-devlist < $<
20
21 gen-devlist: gen-devlist.c $(GENERIC_LOC_D)
22         @$(BUILD_MESSAGE)
23         $(VERBOSE)$(HOST_CC) -o $@ $<
24
25 update:
26         $(VERBOSE)wget -O - http://pciids.sourceforge.net/v2.2/pci.ids.bz2 \
27            | bzcat > pci.ids
28
29 clean::
30         $(VERBOSE)$(RM) devlist.h classlist.h
31
32 .PHONY: update