Mercurial > mplayer.hg
comparison vidix/drivers/Makefile @ 3996:872781fef1b3
preliminary version
author | nick |
---|---|
date | Sat, 05 Jan 2002 18:18:19 +0000 |
parents | |
children | 922241968c63 |
comparison
equal
deleted
inserted
replaced
3995:0d9de811e312 | 3996:872781fef1b3 |
---|---|
1 # makefile | |
2 | |
3 include ../../config.mak | |
4 | |
5 | |
6 RADEON_VID=radeon_vid.so | |
7 RADEON_SRCS=radeon_vid.c | |
8 RADEON_OBJS=radeon_vid.o | |
9 RADEON_LIBS=-L../../libdha -ldha -lm | |
10 RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
11 | |
12 RAGE128_VID=rage128_vid.so | |
13 RAGE128_SRCS=radeon_vid.c | |
14 RAGE128_OBJS=rage128_vid.o | |
15 RAGE128_LIBS=-L../../libdha -ldha | |
16 RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128 | |
17 | |
18 all: $(RADEON_VID) $(RAGE128_VID) | |
19 | |
20 | |
21 .SUFFIXES: .c .o | |
22 | |
23 # .PHONY: all clean | |
24 | |
25 $(RADEON_OBJS): $(RADEON_SRCS) | |
26 $(CC) -c $(RADEON_CFLAGS) -o $@ $< | |
27 | |
28 $(RADEON_VID): $(RADEON_OBJS) | |
29 $(CC) $(RADEON_LIBS) -shared -o $(RADEON_VID) $(RADEON_OBJS) | |
30 | |
31 $(RAGE128_OBJS): $(RAGE128_SRCS) | |
32 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | |
33 | |
34 $(RAGE128_VID): $(RAGE128_OBJS) | |
35 $(CC) $(RAGE128_LIBS) -shared -o $(RAGE128_VID) $(RAGE128_OBJS) | |
36 | |
37 clean: | |
38 rm -f *.o *.so *~ | |
39 | |
40 distclean: | |
41 rm -f Makefile.bak *.o *.so test *~ .depend | |
42 | |
43 dep: depend | |
44 | |
45 depend: | |
46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
47 | |
48 install: | |
49 | |
50 # | |
51 # include dependency files if they exist | |
52 # | |
53 ifneq ($(wildcard .depend),) | |
54 include .depend | |
55 endif |