[FFmpeg-cvslog] r12867 - in trunk: common.mak libavcodec/Makefile
mru
subversion
Wed Apr 16 23:50:41 CEST 2008
Author: mru
Date: Wed Apr 16 23:50:41 2008
New Revision: 12867
Log:
fix building of test programs (make tests)
Modified:
trunk/common.mak
trunk/libavcodec/Makefile
Modified: trunk/common.mak
==============================================================================
--- trunk/common.mak (original)
+++ trunk/common.mak Wed Apr 16 23:50:41 2008
@@ -70,11 +70,14 @@ LIBSUFFIXES = *.a *.lib *.so *.so.* *.
DISTCLEANSUFFIXES = *.d
define RULES
-$(SUBDIR)%: $(SUBDIR)%.o $(LIBNAME)
- $(CC) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS)
+$(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
+ $(CC) $(FFLDFLAGS) -o $$@ $$^ $(SUBDIR)$(LIBNAME) $(FFEXTRALIBS)
-$(SUBDIR)%-test$(EXESUF): $(SUBDIR)%.c $(LIBNAME)
- $(CC) $(CFLAGS) $(FFLDFLAGS) -DTEST -o $$@ $$^ $(FFEXTRALIBS)
+$(SUBDIR)%-test.o: $(SUBDIR)%.c
+ $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^
+
+$(SUBDIR)%-test.o: $(SUBDIR)%-test.c
+ $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^
clean::
rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
Modified: trunk/libavcodec/Makefile
==============================================================================
--- trunk/libavcodec/Makefile (original)
+++ trunk/libavcodec/Makefile Wed Apr 16 23:50:41 2008
@@ -473,8 +473,6 @@ DIRS = alpha armv4l bfin i386 mlib ppc p
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)dct-test$(EXESUF): $(SUBDIR)dct-test.o fdctref.o $(SUBDIR)$(LIBNAME)
-$(SUBDIR)fft-test$(EXESUF): $(SUBDIR)fft-test.o $(SUBDIR)$(LIBNAME)
-$(SUBDIR)motion-test$(EXESUF): $(SUBDIR)motion-test.o $(SUBDIR)$(LIBNAME)
+$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)fdctref.o
More information about the ffmpeg-cvslog
mailing list