2 L4DIR ?= $(PKGDIR)/../../..
4 PC_FILENAME = libpciids
5 TARGET = libpciids.a libpciids.so
9 include $(L4DIR)/mk/lib.mk
11 ifeq ($(BID_COMPILER_TYPE),gcc)
12 CFLAGS += -fvisibility=internal
15 names.o names.s.o: devlist.h classlist.h
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 < $<
21 gen-devlist: gen-devlist.c $(GENERIC_LOC_D)
23 $(VERBOSE)$(HOST_CC) -o $@ $<
26 $(VERBOSE)wget -O - http://pciids.sourceforge.net/v2.2/pci.ids.bz2 \
30 $(VERBOSE)$(RM) devlist.h classlist.h