summaryrefslogtreecommitdiffstats
path: root/libdha
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-12 11:39:07 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-12 11:39:07 +0000
commit7892c9d0e849a3aa61e9458f634ac0762f8d5c0a (patch)
tree389fc768a9d75f04ed9a5c82b8414af17ff2d7ce /libdha
parentb87f867435160cee9c1008718a2e618279dc40f1 (diff)
downloadmpv-7892c9d0e849a3aa61e9458f634ac0762f8d5c0a.tar.bz2
mpv-7892c9d0e849a3aa61e9458f634ac0762f8d5c0a.tar.xz
Gawk generator
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4107 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha')
-rw-r--r--libdha/Makefile7
1 files changed, 6 insertions, 1 deletions
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