Mercurial > libavcodec.hg
comparison Makefile @ 1046:a717c451cf1b libavcodec
dependencies are only build with make depend
author | bellard |
---|---|
date | Sat, 01 Feb 2003 20:57:37 +0000 |
parents | a78f6f72d54e |
children | f874e2122d45 |
comparison
equal
deleted
inserted
replaced
1045:c8b438ecf8f4 | 1046:a717c451cf1b |
---|---|
111 | 111 |
112 all: $(LIB) $(SLIB) | 112 all: $(LIB) $(SLIB) |
113 | 113 |
114 tests: apiexample cpuid_test $(TESTS) | 114 tests: apiexample cpuid_test $(TESTS) |
115 | 115 |
116 $(LIB): .depend $(OBJS) | 116 $(LIB): $(OBJS) |
117 rm -f $@ | 117 rm -f $@ |
118 $(AR) rc $@ $(OBJS) | 118 $(AR) rc $@ $(OBJS) |
119 ifneq ($(CONFIG_OS2),yes) | 119 ifneq ($(CONFIG_OS2),yes) |
120 $(RANLIB) $@ | 120 $(RANLIB) $@ |
121 endif | 121 endif |
122 | 122 |
123 $(SLIB): .depend $(OBJS) | 123 $(SLIB): $(OBJS) |
124 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) | 124 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) |
125 | 125 |
126 dsputil.o: dsputil.c dsputil.h | 126 dsputil.o: dsputil.c dsputil.h |
127 | 127 |
128 %.o: %.c | 128 %.o: %.c |
140 case x"$$cpu" in x|xev[45]*) newcpu=pca56;; *) newcpu=$$cpu;; esac; \ | 140 case x"$$cpu" in x|xev[45]*) newcpu=pca56;; *) newcpu=$$cpu;; esac; \ |
141 echo $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<;\ | 141 echo $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<;\ |
142 $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< | 142 $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< |
143 endif | 143 endif |
144 | 144 |
145 .depend: $(SRCS) | 145 depend: $(SRCS) |
146 $(CC) -MM $(CFLAGS) $^ 1>.depend | 146 $(CC) -MM $(CFLAGS) $^ 1>.depend |
147 | 147 |
148 dep: depend | 148 dep: depend |
149 | |
150 depend: .depend | |
151 | 149 |
152 clean: | 150 clean: |
153 rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ | 151 rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ |
154 armv4l/*.o armv4l/*~ \ | 152 armv4l/*.o armv4l/*~ \ |
155 mlib/*.o mlib/*~ \ | 153 mlib/*.o mlib/*~ \ |