Commit 784b3269 authored by diego's avatar diego

Simplify test program build.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6563 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf196968
...@@ -36,6 +36,9 @@ $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS) ...@@ -36,6 +36,9 @@ $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
%.o: %.cpp %.o: %.cpp
g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
%: %.o $(LIB)
$(CC) $(LDFLAGS) -o $@ $^ $(EXTRALIBS)
depend dep: $(SRCS) depend dep: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend $(CC) -MM $(CFLAGS) $^ 1>.depend
......
...@@ -429,26 +429,18 @@ clean:: ...@@ -429,26 +429,18 @@ clean::
-$(MAKE) -C amr clean -$(MAKE) -C amr clean
-$(MAKE) -C amrwb_float -f makefile.gcc clean -$(MAKE) -C amrwb_float -f makefile.gcc clean
# api example program apiexample: apiexample.o $(LIB)
apiexample: apiexample.c $(LIB)
$(CC) $(CFLAGS) -o $@ $^ $(EXTRALIBS)
# cpuid test
cpuid_test: i386/cputest.c cpuid_test: i386/cputest.c
$(CC) $(CFLAGS) -D__TEST__ -o $@ $< $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
# testing progs
imgresample-test: imgresample.c $(LIB) imgresample-test: imgresample.c $(LIB)
$(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
dct-test: dct-test.o fdctref.o $(LIB) dct-test: dct-test.o fdctref.o $(LIB)
$(CC) -o $@ $^ $(EXTRALIBS)
motion-test: motion_test.o $(LIB) motion-test: motion_test.o $(LIB)
$(CC) -o $@ $^ -lm
fft-test: fft-test.o $(LIB) fft-test: fft-test.o $(LIB)
$(CC) -o $@ $^ $(EXTRALIBS)
.PHONY: amrlibs tests .PHONY: amrlibs tests
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment