Mercurial > mplayer.hg
comparison vidix/drivers/Makefile @ 19514:5f48b21fb801
Redundancy removal part IV: Create pattern rules for .o and .so creation.
author | diego |
---|---|
date | Thu, 24 Aug 2006 00:50:17 +0000 |
parents | 9817edc04689 |
children | 38bbca382956 |
comparison
equal
deleted
inserted
replaced
19513:9817edc04689 | 19514:5f48b21fb801 |
---|---|
19 | 19 |
20 .SUFFIXES: .c .o | 20 .SUFFIXES: .c .o |
21 | 21 |
22 # .PHONY: all clean | 22 # .PHONY: all clean |
23 | 23 |
24 cyberblade_vid.o: cyberblade_vid.c | 24 %.o: %.c |
25 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | 25 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
26 | |
27 %.so: %.o | |
28 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ | |
26 | 29 |
27 cyberblade_vid.so: cyberblade_vid.o | 30 cyberblade_vid.so: cyberblade_vid.o |
28 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ | 31 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
29 | |
30 pm3_vid.o: pm3_vid.c | |
31 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
32 | |
33 pm3_vid.so: pm3_vid.o | |
34 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ | |
35 | |
36 radeon_vid.o: radeon_vid.c | |
37 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
38 | 32 |
39 radeon_vid.so: radeon_vid.o | 33 radeon_vid.so: radeon_vid.o |
40 $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ | 34 $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ |
41 | 35 |
42 rage128_vid.o: radeon_vid.c | 36 rage128_vid.o: radeon_vid.c |
43 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | 37 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< |
44 | 38 |
45 rage128_vid.so: rage128_vid.o | 39 rage128_vid.so: rage128_vid.o |
46 $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ | 40 $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ |
47 | 41 |
48 mach64_vid.o: mach64_vid.c | |
49 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
50 | |
51 mach64_vid.so: mach64_vid.o | |
52 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ | |
53 | |
54 nvidia_vid.o: nvidia_vid.c | |
55 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
56 | |
57 nvidia_vid.so: nvidia_vid.o | 42 nvidia_vid.so: nvidia_vid.o |
58 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ | 43 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
59 | |
60 mga_vid.o: mga_vid.c | |
61 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
62 | 44 |
63 mga_vid.so: mga_vid.o | 45 mga_vid.so: mga_vid.o |
64 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ | 46 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
65 | 47 |
66 mga_crtc2_vid.o: mga_vid.c | 48 mga_crtc2_vid.o: mga_vid.c |
67 $(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $< | 49 $(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $< |
68 | 50 |
69 mga_crtc2_vid.so: mga_crtc2_vid.o | 51 mga_crtc2_vid.so: mga_crtc2_vid.o |
70 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ | 52 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
71 | 53 |
72 sis_vid.o sis_bridge.o: sis_vid.c sis_bridge.c | |
73 $(CC) -c $(VIDIX_CFLAGS) -o $@ $(basename $@).c | |
74 | |
75 sis_vid.so: sis_vid.o sis_bridge.o | 54 sis_vid.so: sis_vid.o sis_bridge.o |
76 $(CC) -shared $^ $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ | 55 $(CC) -shared $^ $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ |
77 | 56 |
78 unichrome_vid.o: unichrome_vid.c | |
79 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
80 | |
81 unichrome_vid.so: unichrome_vid.o | 57 unichrome_vid.so: unichrome_vid.o |
82 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ | 58 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
83 | |
84 savage_vid.o: savage_vid.c | |
85 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< | |
86 | 59 |
87 savage_vid.so: savage_vid.o | 60 savage_vid.so: savage_vid.o |
88 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ | 61 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
89 | 62 |
90 clean: | 63 clean: |