summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-07-22 12:46:15 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-07-22 12:46:15 +0000
commit8de65d4f1170e81da42060689bba8fedc184ddf5 (patch)
tree469d352df4b1adc0e3c117473fe81234775a4d85 /Makefile
parent6a6362f0885a2edfdfbe35aab178cf61cb1cfe7b (diff)
long awaited simple libavformat output API example
Originally committed as revision 2069 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eb09916a09..35155bcfbb 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ endif
endif
PROG=ffmpeg$(EXE)
+PROGTEST=output_example$(EXE)
ifeq ($(CONFIG_FFSERVER),yes)
PROG+=ffserver$(EXE)
@@ -75,7 +76,7 @@ OBJS = ffmpeg.o ffserver.o cmdutils.o ffplay.o
SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
FFLIBS = -L./libavformat -lavformat -L./libavcodec -lavcodec
-all: lib $(PROG) $(VHOOK)
+all: lib $(PROG) $(PROGTEST) $(VHOOK)
lib: $(AMRLIBS)
$(MAKE) -C libavcodec all
@@ -98,6 +99,9 @@ ffplay$(EXE): ffplay_g$(EXE)
cp -p $< $@
$(STRIP) $@
+output_example$(EXE): output_example.o .libs
+ $(CC) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)
+
ffplay.o: ffplay.c
$(CC) $(CFLAGS) $(SDL_CFLAGS) -c -o $@ $<