annotate libdha/Makefile @ 4150:01d0a5fabf65

runtime cpudetect support #2 - still not working (i can't identify the problems ground, also it produces no sound (no noises), but the init seems to be ok (also i didn't changed anything)...very annoying :( snipp
author alex
date Mon, 14 Jan 2002 16:18:43 +0000
parents 54528d9dad53
children 36fb2dcd3ccc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
1 # makefile
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
2
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
3 include ../config.mak
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
4
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
5 VERSION = 0.1
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
6
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
7 SHORTNAME = libdha.so
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
8 LIBNAME = libdha-$(VERSION).so
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
9
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
10 SRCS=libdha.c pci.c pci_names.c
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
11 OBJS=$(SRCS:.c=.o)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
12
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
13 CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
14
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
15 .SUFFIXES: .c .o
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
16
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
17 # .PHONY: all clean
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
18
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
19 .c.o:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
20 $(CC) -c $(CFLAGS) -o $@ $<
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
21
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
22 $(LIBNAME): $(OBJS)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
23 $(CC) -shared -o $(LIBNAME) $(OBJS)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
24 ln -sf $(LIBNAME) $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
25
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
26 all: $(LIBNAME) $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
27
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
28 pci_names.c:
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
29 gzip -d -c oth/pci.db.gz >pci.db
4110
54528d9dad53 gawk -> awk
alex
parents: 4106
diff changeset
30 awk -f pci_db2c.awk pci.db
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
31
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
32 test:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
33 $(CC) test.c -o test $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
34
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
35 clean:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
36 rm -f *.o *.so *~
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
37
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
38 distclean:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
39 rm -f Makefile.bak *.o *.so test *~ .depend
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
40 rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
41
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
42 dep: depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
43
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
44 depend:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
45 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
46
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
47 install:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
48 cp $(LIBNAME) $(prefix)/lib/$(LIBNAME)
4030
922241968c63 Embedding vidix
nick
parents: 3973
diff changeset
49 rm -f $(prefix)/lib/libdha.so
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
50 ln -sf $(LIBNAME) $(prefix)/lib/libdha.so
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
51 ldconfig
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
52
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
53 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
54 # include dependency files if they exist
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
55 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
56 ifneq ($(wildcard .depend),)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
57 include .depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
58 endif