summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-05-18 23:11:25 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-05-18 23:11:25 +0000
commitdd9ca370a1a8a80450d27efd2f302312ecd483bc (patch)
tree3ec9c5df6540c16a4f0a20493af2516317dc8dc8 /Makefile
parent1ea4f593658c8b161a0a725252058b49c16a6b29 (diff)
added VPATH support - added regression targets
Originally committed as revision 529 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a4f8d579df..425fedca69 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
# Main ffmpeg Makefile
-# (c) 2000, 2001 Gerard Lantau
+# (c) 2000, 2001, 2002 Gerard Lantau
#
include config.mak
-CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
+VPATH=$(SRC_PATH)
+
+CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libav
LDFLAGS= -g
ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p
@@ -63,6 +65,7 @@ depend:
clean:
$(MAKE) -C libavcodec clean
$(MAKE) -C libav clean
+ $(MAKE) -C tests clean
rm -f *.o *~ .depend gmon.out TAGS $(PROG)
distclean: clean
@@ -72,6 +75,11 @@ distclean: clean
TAGS:
etags *.[ch] libav/*.[ch] libavcodec/*.[ch]
+# regression tests
+
+test mpeg4 mpeg: ffmpeg$(EXE)
+ make -C tests $@
+
ifneq ($(wildcard .depend),)
include .depend
endif