Revision 2a5500b1

View differences:

Makefile
56 56

  
57 57
SUBDIR_VARS := OBJS FFLIBS CLEANFILES DIRS TESTPROGS EXAMPLES SKIPHEADERS \
58 58
               ALTIVEC-OBJS MMX-OBJS NEON-OBJS X86-OBJS YASM-OBJS-FFT YASM-OBJS \
59
               HOSTPROGS BUILT_HEADERS
59
               HOSTPROGS BUILT_HEADERS TESTOBJS
60 60

  
61 61
define RESET
62 62
$(1) :=
common.mak
84 84

  
85 85
EXAMPLES  := $(addprefix $(SUBDIR),$(addsuffix -example$(EXESUF),$(EXAMPLES)))
86 86
OBJS      := $(addprefix $(SUBDIR),$(OBJS))
87
TESTOBJS  := $(addprefix $(SUBDIR),$(TESTOBJS))
87 88
TESTPROGS := $(addprefix $(SUBDIR),$(addsuffix -test$(EXESUF),$(TESTPROGS)))
88 89
HOSTOBJS  := $(addprefix $(SUBDIR),$(addsuffix .o,$(HOSTPROGS)))
89 90
HOSTPROGS := $(addprefix $(SUBDIR),$(addsuffix $(HOSTEXESUF),$(HOSTPROGS)))
libavcodec/Makefile
720 720
TESTPROGS = cabac dct eval fft h264 iirfilter rangecoder snow
721 721
TESTPROGS-$(ARCH_X86) += x86/cpuid
722 722
TESTPROGS-$(HAVE_MMX) += motion
723
TESTOBJS = dctref.o
723 724

  
724 725
HOSTPROGS = costablegen
725 726

  
subdir.mak
5 5
LIBVERSION := $(lib$(NAME)_VERSION)
6 6
LIBMAJOR   := $(lib$(NAME)_VERSION_MAJOR)
7 7

  
8
$(OBJS) $(SUBDIR)%.ho $(SUBDIR)%-test.o: CPPFLAGS += -DHAVE_AV_CONFIG_H
8
$(OBJS) $(SUBDIR)%.ho $(SUBDIR)%-test.o $(TESTOBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
9 9

  
10 10
ifdef CONFIG_STATIC
11 11
all: $(SUBDIR)$(LIBNAME)

Also available in: Unified diff