Statistics
| Branch: | Revision:

ffmpeg / Makefile @ 43f60eba

History | View | Annotate | Download (11.9 KB)

1 bde51e6a Justin Ruggles
include config.mak
2
3
SRC_DIR = $(SRC_PATH_BARE)
4
5
vpath %.texi $(SRC_PATH_BARE)
6
7
PROGS-$(CONFIG_FFMPEG)   += ffmpeg
8
PROGS-$(CONFIG_FFPLAY)   += ffplay
9 336ce917 Stefano Sabatini
PROGS-$(CONFIG_FFPROBE)  += ffprobe
10 bde51e6a Justin Ruggles
PROGS-$(CONFIG_FFSERVER) += ffserver
11
12 00962aba Måns Rullgård
PROGS      := $(addsuffix   $(EXESUF), $(PROGS-yes))
13 bde51e6a Justin Ruggles
PROGS_G     = $(addsuffix _g$(EXESUF), $(PROGS-yes))
14
OBJS        = $(addsuffix .o,          $(PROGS-yes)) cmdutils.o
15
MANPAGES    = $(addprefix doc/, $(addsuffix .1, $(PROGS-yes)))
16 94f3c0e5 Diego Biurrun
TOOLS       = $(addprefix tools/, $(addsuffix $(EXESUF), cws2fws pktdumper probetest qt-faststart trasher))
17 de4070b5 Måns Rullgård
HOSTPROGS   = $(addprefix tests/, audiogen videogen rotozoom tiny_psnr)
18 bde51e6a Justin Ruggles
19 336ce917 Stefano Sabatini
BASENAMES   = ffmpeg ffplay ffprobe ffserver
20 bde51e6a Justin Ruggles
ALLPROGS    = $(addsuffix   $(EXESUF), $(BASENAMES))
21
ALLPROGS_G  = $(addsuffix _g$(EXESUF), $(BASENAMES))
22
ALLMANPAGES = $(addsuffix .1, $(BASENAMES))
23
24 5a0f7131 Måns Rullgård
FFLIBS-$(CONFIG_AVDEVICE) += avdevice
25 bde51e6a Justin Ruggles
FFLIBS-$(CONFIG_AVFILTER) += avfilter
26 5a0f7131 Måns Rullgård
FFLIBS-$(CONFIG_AVFORMAT) += avformat
27 97d5fa38 Måns Rullgård
FFLIBS-$(CONFIG_AVCODEC)  += avcodec
28 bde51e6a Justin Ruggles
FFLIBS-$(CONFIG_POSTPROC) += postproc
29 5a0f7131 Måns Rullgård
FFLIBS-$(CONFIG_SWSCALE)  += swscale
30 bde51e6a Justin Ruggles
31 5a0f7131 Måns Rullgård
FFLIBS := avutil
32 bde51e6a Justin Ruggles
33 a1a84f69 Robert Swain
DATA_FILES := $(wildcard $(SRC_DIR)/ffpresets/*.ffpreset)
34
35 9b55e2e7 Måns Rullgård
SKIPHEADERS = cmdutils_common_opts.h
36
37 bde51e6a Justin Ruggles
include common.mak
38
39
FF_LDFLAGS   := $(FFLDFLAGS)
40
FF_EXTRALIBS := $(FFEXTRALIBS)
41
FF_DEP_LIBS  := $(DEP_LIBS)
42
43 c73f65d9 Måns Rullgård
ALL_TARGETS-$(CONFIG_DOC)       += documentation
44 bde51e6a Justin Ruggles
45 a48289c7 Måns Rullgård
ifdef PROGS
46 a1a84f69 Robert Swain
INSTALL_TARGETS-yes             += install-progs install-data
47 c73f65d9 Måns Rullgård
INSTALL_TARGETS-$(CONFIG_DOC)   += install-man
48 bde51e6a Justin Ruggles
endif
49 bea81a52 Måns Rullgård
INSTALL_PROGS_TARGETS-$(CONFIG_SHARED) = install-libs
50 bde51e6a Justin Ruggles
51
all: $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes)
52
53
$(PROGS): %$(EXESUF): %_g$(EXESUF)
54 4335125c Måns Rullgård
	$(CP) $< $@
55 bde51e6a Justin Ruggles
	$(STRIP) $@
56
57 95f2c769 Måns Rullgård
SUBDIR_VARS := OBJS FFLIBS CLEANFILES DIRS TESTPROGS EXAMPLES SKIPHEADERS \
58 de4070b5 Måns Rullgård
               ALTIVEC-OBJS MMX-OBJS NEON-OBJS X86-OBJS YASM-OBJS-FFT YASM-OBJS \
59 f89c1402 Måns Rullgård
               HOSTPROGS BUILT_HEADERS TESTOBJS ARCH_HEADERS
60 bde51e6a Justin Ruggles
61
define RESET
62
$(1) :=
63
$(1)-yes :=
64
endef
65
66
define DOSUBDIR
67
$(foreach V,$(SUBDIR_VARS),$(eval $(call RESET,$(V))))
68
SUBDIR := $(1)/
69
include $(1)/Makefile
70
endef
71
72
$(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D))))
73
74
ffplay_g$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
75
ffserver_g$(EXESUF): FF_LDFLAGS += $(FFSERVERLDFLAGS)
76
77
%_g$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
78 684b28e0 Måns Rullgård
	$(LD) $(FF_LDFLAGS) -o $@ $< cmdutils.o $(FF_EXTRALIBS)
79 bde51e6a Justin Ruggles
80 2dfa3054 Måns Rullgård
tools/%$(EXESUF): tools/%.o
81
	$(LD) $(FF_LDFLAGS) -o $@ $< $(FF_EXTRALIBS)
82
83 2205da0d Diego Biurrun
tools/%.o: tools/%.c
84 2dfa3054 Måns Rullgård
	$(CC) $(CPPFLAGS) $(CFLAGS) $(CC_O) $<
85 bde51e6a Justin Ruggles
86
ffplay.o ffplay.d: CFLAGS += $(SDL_CFLAGS)
87
88 6a53fffd Måns Rullgård
VERSION_SH  = $(SRC_PATH_BARE)/version.sh
89 f82bf850 Måns Rullgård
GIT_LOG     = $(SRC_PATH_BARE)/.git/logs/HEAD
90 6a53fffd Måns Rullgård
SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
91
92 f82bf850 Måns Rullgård
.version: $(wildcard $(GIT_LOG) $(SVN_ENTRIES)) $(VERSION_SH) config.mak
93 6a53fffd Måns Rullgård
.version: M=@
94
95
version.h .version:
96 0853a2b4 Måns Rullgård
	$(M)$(VERSION_SH) $(SRC_PATH) version.h $(EXTRA_VERSION)
97 6a53fffd Måns Rullgård
	$(Q)touch .version
98
99
# force version.sh to run whenever version might have changed
100
-include .version
101 36798f1b Måns Rullgård
102 13b1c80b Diego Biurrun
alltools: $(TOOLS)
103 9bce82fa Diego Biurrun
104 15674f12 Diego Biurrun
documentation: $(addprefix doc/, developer.html faq.html ffmpeg-doc.html \
105 336ce917 Stefano Sabatini
                                 ffplay-doc.html ffprobe-doc.html ffserver-doc.html \
106 dba755fa Stefano Sabatini
                                 general.html libavfilter.html $(ALLMANPAGES))
107 bde51e6a Justin Ruggles
108 7732f641 Måns Rullgård
doc/%.html: TAG = HTML
109 bde51e6a Justin Ruggles
doc/%.html: doc/%.texi
110 86be2bc3 Måns Rullgård
	$(M)cd doc && texi2html -monolithic -number $(<:doc/%=%)
111 bde51e6a Justin Ruggles
112 7732f641 Måns Rullgård
doc/%.pod: TAG = POD
113 bde51e6a Justin Ruggles
doc/%.pod: doc/%-doc.texi
114 86be2bc3 Måns Rullgård
	$(M)doc/texi2pod.pl $< $@
115 bde51e6a Justin Ruggles
116 7732f641 Måns Rullgård
doc/%.1: TAG = MAN
117 bde51e6a Justin Ruggles
doc/%.1: doc/%.pod
118 86be2bc3 Måns Rullgård
	$(M)pod2man --section=1 --center=" " --release=" " $< > $@
119 bde51e6a Justin Ruggles
120
install: $(INSTALL_TARGETS-yes)
121
122
install-progs: $(PROGS) $(INSTALL_PROGS_TARGETS-yes)
123 63611f31 Måns Rullgård
	$(Q)mkdir -p "$(BINDIR)"
124 fd676deb Måns Rullgård
	$(INSTALL) -c -m 755 $(PROGS) "$(BINDIR)"
125 bde51e6a Justin Ruggles
126 a1a84f69 Robert Swain
install-data: $(DATA_FILES)
127 63611f31 Måns Rullgård
	$(Q)mkdir -p "$(DATADIR)"
128 fd676deb Måns Rullgård
	$(INSTALL) -m 644 $(DATA_FILES) "$(DATADIR)"
129 a1a84f69 Robert Swain
130 bde51e6a Justin Ruggles
install-man: $(MANPAGES)
131 63611f31 Måns Rullgård
	$(Q)mkdir -p "$(MANDIR)/man1"
132 fd676deb Måns Rullgård
	$(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
133 bde51e6a Justin Ruggles
134 d3cb93b3 Ramiro Polla
uninstall: uninstall-progs uninstall-data uninstall-man
135
136
uninstall-progs:
137 50e10cbd Måns Rullgård
	$(RM) $(addprefix "$(BINDIR)/", $(ALLPROGS))
138 d3cb93b3 Ramiro Polla
139
uninstall-data:
140 50e10cbd Måns Rullgård
	$(RM) -r "$(DATADIR)"
141 d3cb93b3 Ramiro Polla
142
uninstall-man:
143 50e10cbd Måns Rullgård
	$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
144 bde51e6a Justin Ruggles
145 250dd6f0 Francesco Cosoleto
testclean:
146 50e10cbd Måns Rullgård
	$(RM) -r tests/vsynth1 tests/vsynth2 tests/data
147
	$(RM) $(addprefix tests/,$(CLEANSUFFIXES))
148
	$(RM) tests/seek_test$(EXESUF) tests/seek_test.o
149
	$(RM) $(addprefix tests/,$(addsuffix $(HOSTEXESUF),audiogen videogen rotozoom tiny_psnr))
150 250dd6f0 Francesco Cosoleto
151
clean:: testclean
152 50e10cbd Måns Rullgård
	$(RM) $(ALLPROGS) $(ALLPROGS_G)
153
	$(RM) $(CLEANSUFFIXES)
154
	$(RM) doc/*.html doc/*.pod doc/*.1
155
	$(RM) $(TOOLS)
156 bde51e6a Justin Ruggles
157
distclean::
158 50e10cbd Måns Rullgård
	$(RM) $(DISTCLEANSUFFIXES)
159
	$(RM) version.h config.* libavutil/avconfig.h
160 bde51e6a Justin Ruggles
161 0c3b2d65 Måns Rullgård
config:
162
	$(SRC_PATH)/configure $(value FFMPEG_CONFIGURATION)
163
164 bde51e6a Justin Ruggles
# regression tests
165
166 5bab8536 Diego Biurrun
check: test checkheaders
167
168 1cde611d Diego Biurrun
fulltest test: codectest lavftest seektest
169 bde51e6a Justin Ruggles
170
FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref
171
SEEK_REFFILE     = $(SRC_PATH)/tests/seek.regression.ref
172
173 05e24fa8 Måns Rullgård
ENCDEC = $(and $(CONFIG_$(1)_ENCODER),$(CONFIG_$(1)_DECODER))
174
MUXDEM = $(and $(CONFIG_$(1)_MUXER),$(CONFIG_$(or $(2),$(1))_DEMUXER))
175
176 c676895f Måns Rullgård
VCODEC_TESTS =
177
VCODEC_TESTS-$(call ENCDEC,ASV1)             += asv1
178
VCODEC_TESTS-$(call ENCDEC,ASV2)             += asv2
179
VCODEC_TESTS-$(call ENCDEC,DNXHD)            += dnxhd_1080i dnxhd_720p dnxhd_720p_rd
180
VCODEC_TESTS-$(call ENCDEC,DVVIDEO)          += dv dv50
181
VCODEC_TESTS-$(call ENCDEC,FFV1)             += ffv1
182
VCODEC_TESTS-$(call ENCDEC,FLASHSV)          += flashsv
183
VCODEC_TESTS-$(call ENCDEC,FLV)              += flv
184
VCODEC_TESTS-$(call ENCDEC,H261)             += h261
185
VCODEC_TESTS-$(call ENCDEC,H263)             += h263 h263p
186
VCODEC_TESTS-$(call ENCDEC,HUFFYUV)          += huffyuv
187
VCODEC_TESTS-$(call ENCDEC,JPEGLS)           += jpegls
188
VCODEC_TESTS-$(call ENCDEC,MJPEG)            += mjpeg ljpeg
189
VCODEC_TESTS-$(call ENCDEC,MPEG1VIDEO)       += mpeg mpeg1b
190
VCODEC_TESTS-$(call ENCDEC,MPEG2VIDEO)       += mpeg2 mpeg2thread
191
VCODEC_TESTS-$(call ENCDEC,MPEG4)            += mpeg4 mpeg4adv mpeg4nr mpeg4thread error rc
192
VCODEC_TESTS-$(call ENCDEC,MSMPEG4V1)        += msmpeg4
193
VCODEC_TESTS-$(call ENCDEC,MSMPEG4V2)        += msmpeg4v2
194
VCODEC_TESTS-$(call ENCDEC,ROQ)              += roq
195
VCODEC_TESTS-$(call ENCDEC,RV10)             += rv10
196
VCODEC_TESTS-$(call ENCDEC,RV20)             += rv20
197
VCODEC_TESTS-$(call ENCDEC,SNOW)             += snow snowll
198
VCODEC_TESTS-$(call ENCDEC,SVQ1)             += svq1
199
VCODEC_TESTS-$(call ENCDEC,WMV1)             += wmv1
200
VCODEC_TESTS-$(call ENCDEC,WMV2)             += wmv2
201
202
ACODEC_TESTS =
203
ACODEC_TESTS-$(call ENCDEC,AC3)              += ac3
204
ACODEC_TESTS-$(call ENCDEC,ADPCM_G726)       += g726
205
ACODEC_TESTS-$(call ENCDEC,ADPCM_IMA_QT)     += adpcm_ima_qt
206
ACODEC_TESTS-$(call ENCDEC,ADPCM_IMA_WAV)    += adpcm_ima_wav
207
ACODEC_TESTS-$(call ENCDEC,ADPCM_MS)         += adpcm_ms
208
ACODEC_TESTS-$(call ENCDEC,ADPCM_SWF)        += adpcm_swf
209
ACODEC_TESTS-$(call ENCDEC,ADPCM_YAMAHA)     += adpcm_yam
210
ACODEC_TESTS-$(call ENCDEC,ALAC)             += alac
211
ACODEC_TESTS-$(call ENCDEC,FLAC)             += flac
212
ACODEC_TESTS-$(call ENCDEC,MP2)              += mp2
213
ACODEC_TESTS-$(call ENCDEC,PCM_S16LE)        += pcm         # fixme
214
ACODEC_TESTS-$(call ENCDEC,WMAV1)            += wmav1
215
ACODEC_TESTS-$(call ENCDEC,WMAV1)            += wmav2
216 05e24fa8 Måns Rullgård
217
LAVF_TESTS =
218
LAVF_TESTS-$(call MUXDEM,AIFF)               += aiff
219
LAVF_TESTS-$(call MUXDEM,PCM_ALAW)           += alaw
220
LAVF_TESTS-$(call MUXDEM,ASF)                += asf
221
LAVF_TESTS-$(call MUXDEM,AU)                 += au
222
LAVF_TESTS-$(call MUXDEM,AVI)                += avi
223
LAVF_TESTS-$(call ENCDEC,BMP)                += bmp
224
LAVF_TESTS-$(call MUXDEM,DV)                 += dv_fmt
225
LAVF_TESTS-$(call MUXDEM,FFM)                += ffm
226
LAVF_TESTS-$(call MUXDEM,FLV)                += flv_fmt
227
LAVF_TESTS-$(call ENCDEC,GIF)                += gif
228
LAVF_TESTS-$(call MUXDEM,GXF)                += gxf
229
LAVF_TESTS-$(call ENCDEC,MJPEG)              += jpg
230
LAVF_TESTS-$(call MUXDEM,MATROSKA)           += mkv
231
LAVF_TESTS-$(call MUXDEM,MMF)                += mmf
232
LAVF_TESTS-$(call MUXDEM,MOV)                += mov
233
LAVF_TESTS-$(call MUXDEM,MPEG1SYSTEM,MPEGPS) += mpg
234
LAVF_TESTS-$(call MUXDEM,PCM_MULAW)          += mulaw
235
LAVF_TESTS-$(call MUXDEM,MXF)                += mxf
236
LAVF_TESTS-$(call MUXDEM,NUT)                += nut
237
LAVF_TESTS-$(call MUXDEM,OGG)                += ogg
238
LAVF_TESTS-$(call ENCDEC,PBM)                += pbmpipe
239
LAVF_TESTS-$(call ENCDEC,PCX)                += pcx
240
LAVF_TESTS-$(call ENCDEC,PGM)                += pgm pgmpipe
241
LAVF_TESTS-$(call MUXDEM,RAWVIDEO)           += pixfmt
242
LAVF_TESTS-$(call ENCDEC,PPM)                += ppm ppmpipe
243
LAVF_TESTS-$(call MUXDEM,RM)                 += rm
244
LAVF_TESTS-$(call ENCDEC,SGI)                += sgi
245
LAVF_TESTS-$(call MUXDEM,SWF)                += swf
246
LAVF_TESTS-$(call ENCDEC,TARGA)              += tga
247
LAVF_TESTS-$(call ENCDEC,TIFF)               += tiff
248
LAVF_TESTS-$(call MUXDEM,MPEGTS)             += ts
249
LAVF_TESTS-$(call MUXDEM,VOC)                += voc
250
LAVF_TESTS-$(call MUXDEM,WAV)                += wav
251
LAVF_TESTS-$(call MUXDEM,YUV4MPEGPIPE)       += yuv4mpeg
252
253
LAVFI_TESTS =
254
255 c676895f Måns Rullgård
ACODEC_TESTS := $(addprefix regtest-, $(ACODEC_TESTS) $(ACODEC_TESTS-yes))
256
VCODEC_TESTS := $(addprefix regtest-, $(VCODEC_TESTS) $(VCODEC_TESTS-yes))
257 05e24fa8 Måns Rullgård
LAVF_TESTS  := $(addprefix regtest-, $(LAVF_TESTS)  $(LAVF_TESTS-yes))
258
LAVFI_TESTS := $(addprefix regtest-, $(LAVFI_TESTS) $(LAVFI_TESTS-yes))
259 20a93972 Diego Biurrun
260 c676895f Måns Rullgård
CODEC_TESTS = $(VCODEC_TESTS) $(ACODEC_TESTS)
261
262 eca478c3 Måns Rullgård
codectest: $(CODEC_TESTS)
263
lavftest:  $(LAVF_TESTS)
264 bde51e6a Justin Ruggles
265 eca478c3 Måns Rullgård
# lavfitest: $(LAVFI_TESTS)
266 40e02409 Stefano Sabatini
267 c676895f Måns Rullgård
$(ACODEC_TESTS): regtest-aref
268
$(VCODEC_TESTS): regtest-vref
269
$(LAVF_TESTS) $(LAVFI_TESTS): regtest-ref
270 bde51e6a Justin Ruggles
271 eca478c3 Måns Rullgård
REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%)
272
RESFILE = tests/data/$(2:regtest-%=%).$(1).regression
273 bde51e6a Justin Ruggles
274 eca478c3 Måns Rullgård
define CODECTEST_CMD
275 801b571e Måns Rullgård
	$(SRC_PATH)/tests/codec-regression.sh $@ vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
276
	$(SRC_PATH)/tests/codec-regression.sh $@ vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)"
277 eca478c3 Måns Rullgård
endef
278 bde51e6a Justin Ruggles
279 c676895f Måns Rullgård
regtest-ref: regtest-aref regtest-vref
280
281
regtest-vref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
282 eca478c3 Måns Rullgård
	$(CODECTEST_CMD)
283 bde51e6a Justin Ruggles
284 c676895f Måns Rullgård
regtest-aref: ffmpeg$(EXESUF) tests/data/asynth1.sw
285 801b571e Måns Rullgård
	@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
286 c676895f Måns Rullgård
287
$(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
288
	@echo "TEST VCODEC $(@:regtest-%=%)"
289 eca478c3 Måns Rullgård
	@$(CODECTEST_CMD)
290
	@diff -u -w $(call REFFILE,vsynth1,$@) $(call RESFILE,vsynth1,$@)
291
	@diff -u -w $(call REFFILE,vsynth2,$@) $(call RESFILE,vsynth2,$@)
292 bde51e6a Justin Ruggles
293 c676895f Måns Rullgård
$(ACODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
294
	@echo "TEST ACODEC $(@:regtest-%=%)"
295 801b571e Måns Rullgård
	@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
296 c676895f Måns Rullgård
	@diff -u -w $(call REFFILE,acodec,$@) $(call RESFILE,acodec,$@)
297
298 bde51e6a Justin Ruggles
$(LAVF_TESTS):
299 eca478c3 Måns Rullgård
	@echo "TEST LAVF  $(@:regtest-%=%)"
300 801b571e Måns Rullgård
	@$(SRC_PATH)/tests/lavf-regression.sh $@ lavf tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
301 eca478c3 Måns Rullgård
	@diff -u -w $(call REFFILE,lavf,$@) $(call RESFILE,lavf,$@)
302 bde51e6a Justin Ruggles
303 40e02409 Stefano Sabatini
$(LAVFI_TESTS):
304 eca478c3 Måns Rullgård
	@echo "TEST LAVFI $(@:regtest-%=%)"
305 801b571e Måns Rullgård
	@$(SRC_PATH)/tests/lavfi-regression.sh $@ lavfi tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
306 eca478c3 Måns Rullgård
	@diff -u -w $(call REFFILE,lavfi,$@) $(call RESFILE,lavfi,$@)
307 40e02409 Stefano Sabatini
308 1cde611d Diego Biurrun
seektest: codectest lavftest tests/seek_test$(EXESUF)
309 d7096d6f Måns Rullgård
	$(SRC_PATH)/tests/seek-regression.sh $(SRC_PATH) "$(TARGET_EXEC)" "$(TARGET_PATH)"
310 bde51e6a Justin Ruggles
311 d7167f05 Diego Biurrun
ffservertest: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/data/asynth1.sw
312 bde51e6a Justin Ruggles
	@echo
313
	@echo "Unfortunately ffserver is broken and therefore its regression"
314
	@echo "test fails randomly. Treat the results accordingly."
315
	@echo
316 767e14c3 Diego Biurrun
	$(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf
317 bde51e6a Justin Ruggles
318 82bb3329 Måns Rullgård
tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF)
319 bde51e6a Justin Ruggles
	mkdir -p tests/vsynth1
320
	$(BUILD_ROOT)/$< 'tests/vsynth1/'
321
322 82bb3329 Måns Rullgård
tests/vsynth2/00.pgm: tests/rotozoom$(HOSTEXESUF)
323 bde51e6a Justin Ruggles
	mkdir -p tests/vsynth2
324
	$(BUILD_ROOT)/$< 'tests/vsynth2/' $(SRC_PATH)/tests/lena.pnm
325
326 d7167f05 Diego Biurrun
tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF)
327
	mkdir -p tests/data
328 bde51e6a Justin Ruggles
	$(BUILD_ROOT)/$< $@
329
330 684b28e0 Måns Rullgård
tests/seek_test$(EXESUF): tests/seek_test.o $(FF_DEP_LIBS)
331
	$(LD) $(FF_LDFLAGS) -o $@ $< $(FF_EXTRALIBS)
332 bde51e6a Justin Ruggles
333 2fad0977 Måns Rullgård
ifdef SAMPLES
334
include $(SRC_PATH_BARE)/tests/fate.mak
335
fate: $(FATE_TESTS)
336
$(FATE_TESTS):
337
	@echo "TEST FATE   $(@:fate-%=%)"
338
	@$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)'
339
else
340
fate:
341
	@echo "SAMPLES not specified, cannot run FATE"
342
endif
343 bde51e6a Justin Ruggles
344 0c3b2d65 Måns Rullgård
.PHONY: documentation *test regtest-* zlib-error alltools check config