changeset 4106:64c1e79575df

Gawk generator
author nick
date Sat, 12 Jan 2002 11:39:07 +0000
parents adca8a6c59d2
children cf1d2f965867
files libdha/Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libdha/Makefile	Sat Jan 12 11:37:47 2002 +0000
+++ b/libdha/Makefile	Sat Jan 12 11:39:07 2002 +0000
@@ -7,7 +7,7 @@
 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 @@
 
 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 @@
 
 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