comparison vidix/drivers/Makefile @ 19507:570dac445535

Simplify compilation commands with $< and $@.
author diego
date Wed, 23 Aug 2006 10:48:26 +0000
parents 564163b2c84c
children faf94e4b3a36
comparison
equal deleted inserted replaced
19506:564163b2c84c 19507:570dac445535
79 79
80 $(CYBERBLADE_OBJS): $(CYBERBLADE_SRCS) 80 $(CYBERBLADE_OBJS): $(CYBERBLADE_SRCS)
81 $(CC) -c $(CYBERBLADE_CFLAGS) -o $@ $< 81 $(CC) -c $(CYBERBLADE_CFLAGS) -o $@ $<
82 82
83 $(CYBERBLADE_VID): $(CYBERBLADE_OBJS) 83 $(CYBERBLADE_VID): $(CYBERBLADE_OBJS)
84 $(CC) -shared $(CYBERBLADE_OBJS) $(CYBERBLADE_LIBS) -Wl,-soname,$(CYBERBLADE_VID) -o $(CYBERBLADE_VID) 84 $(CC) -shared $< $(CYBERBLADE_LIBS) -Wl,-soname,$@ -o $@
85 85
86 $(PM3_OBJS): $(PM3_SRCS) 86 $(PM3_OBJS): $(PM3_SRCS)
87 $(CC) -c $(PM3_CFLAGS) -o $@ $< 87 $(CC) -c $(PM3_CFLAGS) -o $@ $<
88 88
89 $(PM3_VID): $(PM3_OBJS) 89 $(PM3_VID): $(PM3_OBJS)
90 $(CC) -shared $(PM3_OBJS) $(PM3_LIBS) -Wl,-soname,$(PM3_VID) -o $(PM3_VID) 90 $(CC) -shared $< $(PM3_LIBS) -Wl,-soname,$@ -o $@
91 91
92 $(RADEON_OBJS): $(RADEON_SRCS) 92 $(RADEON_OBJS): $(RADEON_SRCS)
93 $(CC) -c $(RADEON_CFLAGS) -o $@ $< 93 $(CC) -c $(RADEON_CFLAGS) -o $@ $<
94 94
95 $(RADEON_VID): $(RADEON_OBJS) 95 $(RADEON_VID): $(RADEON_OBJS)
96 $(CC) -shared $(RADEON_OBJS) $(RADEON_LIBS) -Wl,-soname,$(RADEON_VID) -o $(RADEON_VID) 96 $(CC) -shared $< $(RADEON_LIBS) -Wl,-soname,$@ -o $@
97 97
98 $(RAGE128_OBJS): $(RAGE128_SRCS) 98 $(RAGE128_OBJS): $(RAGE128_SRCS)
99 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< 99 $(CC) -c $(RAGE128_CFLAGS) -o $@ $<
100 100
101 $(RAGE128_VID): $(RAGE128_OBJS) 101 $(RAGE128_VID): $(RAGE128_OBJS)
102 $(CC) -shared $(RAGE128_OBJS) $(RAGE128_LIBS) -Wl,-soname,$(RAGE128_VID) -o $(RAGE128_VID) 102 $(CC) -shared $< $(RAGE128_LIBS) -Wl,-soname,$@ -o $@
103 103
104 $(MACH64_OBJS): $(MACH64_SRCS) 104 $(MACH64_OBJS): $(MACH64_SRCS)
105 $(CC) -c $(MACH64_CFLAGS) -o $@ $< 105 $(CC) -c $(MACH64_CFLAGS) -o $@ $<
106 106
107 $(MACH64_VID): $(MACH64_OBJS) 107 $(MACH64_VID): $(MACH64_OBJS)
108 $(CC) -shared $(MACH64_OBJS) $(MACH64_LIBS) -Wl,-soname,$(MACH64_VID) -o $(MACH64_VID) 108 $(CC) -shared $< $(MACH64_LIBS) -Wl,-soname,$@ -o $@
109 109
110 $(NVIDIA_OBJS): $(NVIDIA_SRCS) 110 $(NVIDIA_OBJS): $(NVIDIA_SRCS)
111 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $< 111 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $<
112 112
113 $(NVIDIA_VID): $(NVIDIA_OBJS) 113 $(NVIDIA_VID): $(NVIDIA_OBJS)
114 $(CC) -shared $(NVIDIA_OBJS) $(NVIDIA_LIBS) -Wl,-soname,$(NVIDIA_VID) -o $(NVIDIA_VID) 114 $(CC) -shared $< $(NVIDIA_LIBS) -Wl,-soname,$@ -o $@
115 115
116 $(MGA_OBJS): $(MGA_SRCS) 116 $(MGA_OBJS): $(MGA_SRCS)
117 $(CC) -c $(MGA_CFLAGS) -o $@ $< 117 $(CC) -c $(MGA_CFLAGS) -o $@ $<
118 118
119 $(MGA_VID): $(MGA_OBJS) 119 $(MGA_VID): $(MGA_OBJS)
120 $(CC) -shared $(MGA_OBJS) $(MGA_LIBS) -Wl,-soname,$(MGA_VID) -o $(MGA_VID) 120 $(CC) -shared $< $(MGA_LIBS) -Wl,-soname,$@ -o $@
121 121
122 $(MGA_CRTC2_OBJS): $(MGA_CRTC2_SRCS) 122 $(MGA_CRTC2_OBJS): $(MGA_CRTC2_SRCS)
123 $(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $< 123 $(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $<
124 124
125 $(MGA_CRTC2_VID): $(MGA_CRTC2_OBJS) 125 $(MGA_CRTC2_VID): $(MGA_CRTC2_OBJS)
126 $(CC) -shared $(MGA_CRTC2_OBJS) $(MGA_CRTC2_LIBS) -Wl,-soname,$(MGA_CRTC2_VID) -o $(MGA_CRTC2_VID) 126 $(CC) -shared $< $(MGA_CRTC2_LIBS) -Wl,-soname,$@ -o $@
127 127
128 $(SIS_OBJS): $(SIS_SRCS) 128 $(SIS_OBJS): $(SIS_SRCS)
129 $(CC) -c $(SIS_CFLAGS) -o $@ $(basename $@).c 129 $(CC) -c $(SIS_CFLAGS) -o $@ $(basename $@).c
130 130
131 $(SIS_VID): $(SIS_OBJS) 131 $(SIS_VID): $(SIS_OBJS)
132 $(CC) -shared $(SIS_OBJS) $(SIS_LIBS) -Wl,-soname,$(SIS_VID) -o $(SIS_VID) 132 $(CC) -shared $< $(SIS_LIBS) -Wl,-soname,$@ -o $@
133 133
134 $(UNICHROME_OBJS): $(UNICHROME_SRCS) 134 $(UNICHROME_OBJS): $(UNICHROME_SRCS)
135 $(CC) -c $(UNICHROME_CFLAGS) -o $@ $< 135 $(CC) -c $(UNICHROME_CFLAGS) -o $@ $<
136 136
137 $(UNICHROME_VID): $(UNICHROME_OBJS) 137 $(UNICHROME_VID): $(UNICHROME_OBJS)
138 $(CC) -shared $(UNICHROME_OBJS) $(UNICHROME_LIBS) -Wl,-soname,$(UNICHROME_VID) -o $(UNICHROME_VID) 138 $(CC) -shared $< $(UNICHROME_LIBS) -Wl,-soname,$@ -o $@
139 139
140 $(SAVAGE_OBJS): $(SAVAGE_SRCS) 140 $(SAVAGE_OBJS): $(SAVAGE_SRCS)
141 $(CC) -c $(SAVAGE_CFLAGS) -o $@ $< 141 $(CC) -c $(SAVAGE_CFLAGS) -o $@ $<
142 142
143 $(SAVAGE_VID): $(SAVAGE_OBJS) 143 $(SAVAGE_VID): $(SAVAGE_OBJS)
144 $(CC) -shared $(SAVAGE_OBJS) $(SAVAGE_LIBS) -Wl,-soname,$(SAVAGE_VID) -o $(SAVAGE_VID) 144 $(CC) -shared $< $(SAVAGE_LIBS) -Wl,-soname,$@ -o $@
145 145
146 clean: 146 clean:
147 rm -f *.o *.so *~ 147 rm -f *.o *.so *~
148 148
149 distclean: clean 149 distclean: clean