annotate libdha/Makefile @ 5508:53ce50ac2ce2

vf_next_uninit was Wrong Thing - thx to Fredrik Kuivinen
author arpi
date Sat, 06 Apr 2002 22:46:20 +0000
parents 0d9a096cfd46
children 31e465fda59c
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
4167
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
7 ifeq ($(TARGET_OS),CYGWIN)
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
8 SHORTNAME = libdha.dll
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
9 else
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
10 SHORTNAME = libdha.so
4167
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
11 endif
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
12 LIBNAME = libdha-$(VERSION).so
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
13
4476
0d9a096cfd46 MTRR configuring
nick
parents: 4215
diff changeset
14 SRCS=libdha.c mtrr.c pci.c pci_names.c
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
15 OBJS=$(SRCS:.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 CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
18
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
19 .SUFFIXES: .c .o
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
20
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
21 # .PHONY: all clean
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
22
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
23 .c.o:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
24 $(CC) -c $(CFLAGS) -o $@ $<
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
25
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
26 $(LIBNAME): $(OBJS)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
27 $(CC) -shared -o $(LIBNAME) $(OBJS)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
28 ln -sf $(LIBNAME) $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
29
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
30 all: $(LIBNAME) $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
31
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
32 pci_names.c:
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
33 gzip -d -c oth/pci.db.gz >pci.db
4172
8c17f26ec41a *awk detection
atmos4
parents: 4167
diff changeset
34 $(AWK) -f pci_db2c.awk pci.db
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
35
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
36 test:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
37 $(CC) test.c -o test $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
38
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
39 clean:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
40 rm -f *.o *.so *~
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
41
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
42 distclean:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
43 rm -f Makefile.bak *.o *.so test *~ .depend
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
44 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
45
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
46 dep: depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
47
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
48 depend:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
49 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
50
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
51 install:
4215
14b8bc735bf5 Use 'install' instead of 'cp'
nick
parents: 4172
diff changeset
52 mkdir -p $(prefix)/lib
14b8bc735bf5 Use 'install' instead of 'cp'
nick
parents: 4172
diff changeset
53 install -m 755 -s -p $(LIBNAME) $(prefix)/lib/$(LIBNAME)
4030
922241968c63 Embedding vidix
nick
parents: 3973
diff changeset
54 rm -f $(prefix)/lib/libdha.so
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
55 ln -sf $(LIBNAME) $(prefix)/lib/libdha.so
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
56 ldconfig
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
57
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
58 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
59 # include dependency files if they exist
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
60 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
61 ifneq ($(wildcard .depend),)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
62 include .depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
63 endif