Mercurial > libavcodec.hg
comparison Makefile @ 1010:3c110cba4b29 libavcodec
- removed nonsense *.d dependancy stuff, there was already a better 'make dep' support in it
- enabled .depend generation by default, so no need to 'make dep' then...
author | arpi_esp |
---|---|
date | Fri, 17 Jan 2003 22:40:00 +0000 |
parents | c331a07c0be2 |
children | a0a7149be543 |
comparison
equal
deleted
inserted
replaced
1009:3b7cc8e4b83f | 1010:3c110cba4b29 |
---|---|
87 OBJS += ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o ppc/idct_altivec.o \ | 87 OBJS += ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o ppc/idct_altivec.o \ |
88 ppc/fft_altivec.o ppc/gmc_altivec.o | 88 ppc/fft_altivec.o ppc/gmc_altivec.o |
89 endif | 89 endif |
90 | 90 |
91 SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) | 91 SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) |
92 DEPS := $(OBJS:.o=.d) | |
93 OBJS := $(OBJS) $(ASM_OBJS) | 92 OBJS := $(OBJS) $(ASM_OBJS) |
94 | 93 |
95 LIB= $(LIBPREF)avcodec$(LIBSUF) | 94 LIB= $(LIBPREF)avcodec$(LIBSUF) |
96 ifeq ($(BUILD_SHARED),yes) | 95 ifeq ($(BUILD_SHARED),yes) |
97 SLIB= $(SLIBPREF)avcodec$(SLIBSUF) | 96 SLIB= $(SLIBPREF)avcodec$(SLIBSUF) |
100 | 99 |
101 all: $(LIB) $(SLIB) | 100 all: $(LIB) $(SLIB) |
102 | 101 |
103 tests: apiexample cpuid_test $(TESTS) | 102 tests: apiexample cpuid_test $(TESTS) |
104 | 103 |
105 $(LIB): $(OBJS) | 104 $(LIB): .depend $(OBJS) |
106 rm -f $@ | 105 rm -f $@ |
107 $(AR) rc $@ $(OBJS) | 106 $(AR) rc $@ $(OBJS) |
108 ifneq ($(CONFIG_OS2),yes) | 107 ifneq ($(CONFIG_OS2),yes) |
109 $(RANLIB) $@ | 108 $(RANLIB) $@ |
110 endif | 109 endif |
111 | 110 |
112 $(SLIB): $(OBJS) | 111 $(SLIB): .depend $(OBJS) |
113 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) | 112 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) |
114 | 113 |
115 dsputil.o: dsputil.c dsputil.h | 114 dsputil.o: dsputil.c dsputil.h |
116 | 115 |
117 %.o: %.c | 116 %.o: %.c |
118 $(CC) $(CFLAGS) -c -o $@ $< | 117 $(CC) $(CFLAGS) -c -o $@ $< |
119 | |
120 %.d: %.c | |
121 @echo $@ \\ > $@ | |
122 $(CC) $(CFLAGS) -MM $< >> $@ | |
123 | |
124 -include $(DEPS) | |
125 | 118 |
126 %.o: %.S | 119 %.o: %.S |
127 $(CC) $(CFLAGS) -c -o $@ $< | 120 $(CC) $(CFLAGS) -c -o $@ $< |
128 | 121 |
129 # motion_est_alpha uses the MVI extension, which is not available with | 122 # motion_est_alpha uses the MVI extension, which is not available with |
135 case x"$$cpu" in x|xev[45]*) newcpu=pca56;; *) newcpu=$$cpu;; esac; \ | 128 case x"$$cpu" in x|xev[45]*) newcpu=pca56;; *) newcpu=$$cpu;; esac; \ |
136 echo $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<;\ | 129 echo $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $<;\ |
137 $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< | 130 $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< |
138 endif | 131 endif |
139 | 132 |
140 # depend only used by mplayer now | 133 .depend: $(SRCS) |
134 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
135 | |
141 dep: depend | 136 dep: depend |
142 | 137 |
143 depend: | 138 depend: .depend |
144 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
145 | 139 |
146 clean: | 140 clean: |
147 rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ | 141 rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ |
148 armv4l/*.o armv4l/*~ \ | 142 armv4l/*.o armv4l/*~ \ |
149 mlib/*.o mlib/*~ \ | 143 mlib/*.o mlib/*~ \ |