mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix building of test programs (make tests)
Originally committed as revision 12867 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
54381d7557
commit
b153c68b8a
11
common.mak
11
common.mak
@ -70,11 +70,14 @@ LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a *.exp *.map
|
|||||||
DISTCLEANSUFFIXES = *.d
|
DISTCLEANSUFFIXES = *.d
|
||||||
|
|
||||||
define RULES
|
define RULES
|
||||||
$(SUBDIR)%: $(SUBDIR)%.o $(LIBNAME)
|
$(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
|
||||||
$(CC) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS)
|
$(CC) $(FFLDFLAGS) -o $$@ $$^ $(SUBDIR)$(LIBNAME) $(FFEXTRALIBS)
|
||||||
|
|
||||||
$(SUBDIR)%-test$(EXESUF): $(SUBDIR)%.c $(LIBNAME)
|
$(SUBDIR)%-test.o: $(SUBDIR)%.c
|
||||||
$(CC) $(CFLAGS) $(FFLDFLAGS) -DTEST -o $$@ $$^ $(FFEXTRALIBS)
|
$(CC) $(CFLAGS) -DTEST -c -o $$@ $$^
|
||||||
|
|
||||||
|
$(SUBDIR)%-test.o: $(SUBDIR)%-test.c
|
||||||
|
$(CC) $(CFLAGS) -DTEST -c -o $$@ $$^
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
|
rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
|
||||||
|
@ -473,8 +473,6 @@ DIRS = alpha armv4l bfin i386 mlib ppc ps2 sh4 sparc
|
|||||||
|
|
||||||
include $(SUBDIR)../subdir.mak
|
include $(SUBDIR)../subdir.mak
|
||||||
|
|
||||||
$(SUBDIR)cpuid-test$(EXESUF): $(SUBDIR)i386/cputest.c
|
$(SUBDIR)cpuid-test$(EXESUF): $(SUBDIR)i386/cputest.o
|
||||||
$(SUBDIR)apiexample$(EXESUF): $(SUBDIR)apiexample.o $(SUBDIR)$(LIBNAME)
|
$(SUBDIR)apiexample$(EXESUF): $(SUBDIR)apiexample.o $(SUBDIR)$(LIBNAME)
|
||||||
$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dct-test.o fdctref.o $(SUBDIR)$(LIBNAME)
|
$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)fdctref.o
|
||||||
$(SUBDIR)fft-test$(EXESUF): $(SUBDIR)fft-test.o $(SUBDIR)$(LIBNAME)
|
|
||||||
$(SUBDIR)motion-test$(EXESUF): $(SUBDIR)motion-test.o $(SUBDIR)$(LIBNAME)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user