mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
motion_est.o imgconvert.o imgresample.o msmpeg4.o \
mpeg12.o h263dec.o svq1.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \
- ratecontrol.o adpcm.o eval.o dv.o error_resilience.o
+ ratecontrol.o adpcm.o eval.o dv.o error_resilience.o \
+ wmadec.o fft.o mdct.o
ASM_OBJS=
# currently using liba52 for ac3 decoding
ifeq ($(BUILD_SHARED),yes)
SLIB= libavcodec.so
endif
-TESTS= imgresample-test dct-test motion-test
+TESTS= imgresample-test dct-test motion-test fft-test
all: $(LIB) $(SLIB)
dsputil.o: dsputil.c dsputil.h
+# specific sse code
+%_sse.o : %_sse.c
+ $(CC) $(CFLAGS) -msse -c -o $@ $<
+
+# specific 3dnow code
+%_3dnow.o : %_3dnow.c
+ $(CC) $(CFLAGS) -m3dnow -c -o $@ $<
+
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
motion-test: motion_test.o $(LIB)
$(CC) -o $@ $^ -lm
+fft-test: fft-test.o fft.o mdct.o
+ $(CC) -o $@ $^ -lm
+
install: all
ifeq ($(BUILD_SHARED),yes)
install -d $(prefix)/lib