From 7892c9d0e849a3aa61e9458f634ac0762f8d5c0a Mon Sep 17 00:00:00 2001 From: nick Date: Sat, 12 Jan 2002 11:39:07 +0000 Subject: Gawk generator git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4107 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libdha/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libdha') diff --git a/libdha/Makefile b/libdha/Makefile index 696cf3e20a..373a3deed4 100644 --- a/libdha/Makefile +++ b/libdha/Makefile @@ -7,7 +7,7 @@ VERSION = 0.1 SHORTNAME = libdha.so LIBNAME = libdha-$(VERSION).so -SRCS=libdha.c pci.c +SRCS=libdha.c pci.c pci_names.c OBJS=$(SRCS:.c=.o) CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W @@ -25,6 +25,10 @@ $(LIBNAME): $(OBJS) all: $(LIBNAME) $(SHORTNAME) +pci_names.c: + gzip -d -c oth/pci.db.gz >pci.db + gawk -f pci_db2c.awk pci.db + test: $(CC) test.c -o test $(SHORTNAME) @@ -33,6 +37,7 @@ clean: distclean: rm -f Makefile.bak *.o *.so test *~ .depend + rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db dep: depend -- cgit v1.2.3