1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Simplify test program build.

Originally committed as revision 6563 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2006-10-05 17:10:33 +00:00
parent 885e691aaf
commit c6c4651138
2 changed files with 4 additions and 9 deletions

View File

@ -36,6 +36,9 @@ $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
%.o: %.cpp
g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
%: %.o $(LIB)
$(CC) $(LDFLAGS) -o $@ $^ $(EXTRALIBS)
depend dep: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend

View File

@ -429,26 +429,18 @@ clean::
-$(MAKE) -C amr clean
-$(MAKE) -C amrwb_float -f makefile.gcc clean
# api example program
apiexample: apiexample.c $(LIB)
$(CC) $(CFLAGS) -o $@ $^ $(EXTRALIBS)
apiexample: apiexample.o $(LIB)
# cpuid test
cpuid_test: i386/cputest.c
$(CC) $(CFLAGS) -D__TEST__ -o $@ $<
# testing progs
imgresample-test: imgresample.c $(LIB)
$(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
dct-test: dct-test.o fdctref.o $(LIB)
$(CC) -o $@ $^ $(EXTRALIBS)
motion-test: motion_test.o $(LIB)
$(CC) -o $@ $^ -lm
fft-test: fft-test.o $(LIB)
$(CC) -o $@ $^ $(EXTRALIBS)
.PHONY: amrlibs tests