Mercurial > mplayer.hg
comparison libdha/Makefile @ 4106:64c1e79575df
Gawk generator
author | nick |
---|---|
date | Sat, 12 Jan 2002 11:39:07 +0000 |
parents | 922241968c63 |
children | 54528d9dad53 |
comparison
equal
deleted
inserted
replaced
4105:adca8a6c59d2 | 4106:64c1e79575df |
---|---|
5 VERSION = 0.1 | 5 VERSION = 0.1 |
6 | 6 |
7 SHORTNAME = libdha.so | 7 SHORTNAME = libdha.so |
8 LIBNAME = libdha-$(VERSION).so | 8 LIBNAME = libdha-$(VERSION).so |
9 | 9 |
10 SRCS=libdha.c pci.c | 10 SRCS=libdha.c pci.c pci_names.c |
11 OBJS=$(SRCS:.c=.o) | 11 OBJS=$(SRCS:.c=.o) |
12 | 12 |
13 CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W | 13 CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W |
14 | 14 |
15 .SUFFIXES: .c .o | 15 .SUFFIXES: .c .o |
23 $(CC) -shared -o $(LIBNAME) $(OBJS) | 23 $(CC) -shared -o $(LIBNAME) $(OBJS) |
24 ln -sf $(LIBNAME) $(SHORTNAME) | 24 ln -sf $(LIBNAME) $(SHORTNAME) |
25 | 25 |
26 all: $(LIBNAME) $(SHORTNAME) | 26 all: $(LIBNAME) $(SHORTNAME) |
27 | 27 |
28 pci_names.c: | |
29 gzip -d -c oth/pci.db.gz >pci.db | |
30 gawk -f pci_db2c.awk pci.db | |
31 | |
28 test: | 32 test: |
29 $(CC) test.c -o test $(SHORTNAME) | 33 $(CC) test.c -o test $(SHORTNAME) |
30 | 34 |
31 clean: | 35 clean: |
32 rm -f *.o *.so *~ | 36 rm -f *.o *.so *~ |
33 | 37 |
34 distclean: | 38 distclean: |
35 rm -f Makefile.bak *.o *.so test *~ .depend | 39 rm -f Makefile.bak *.o *.so test *~ .depend |
40 rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db | |
36 | 41 |
37 dep: depend | 42 dep: depend |
38 | 43 |
39 depend: | 44 depend: |
40 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | 45 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |