annotate libdha/Makefile @ 4030:922241968c63

Embedding vidix
author nick
date Mon, 07 Jan 2002 09:28:22 +0000
parents 138800dfbe22
children 64c1e79575df
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
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
10 SRCS=libdha.c pci.c
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
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
28 test:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
29 $(CC) test.c -o test $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
30
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
31 clean:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
32 rm -f *.o *.so *~
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
33
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
34 distclean:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
35 rm -f Makefile.bak *.o *.so test *~ .depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
36
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
37 dep: depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
38
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
39 depend:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
40 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
41
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
42 install:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
43 cp $(LIBNAME) $(prefix)/lib/$(LIBNAME)
4030
922241968c63 Embedding vidix
nick
parents: 3973
diff changeset
44 rm -f $(prefix)/lib/libdha.so
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
45 ln -sf $(LIBNAME) $(prefix)/lib/libdha.so
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
46 ldconfig
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
47
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
48 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
49 # include dependency files if they exist
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
50 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
51 ifneq ($(wildcard .depend),)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
52 include .depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
53 endif