summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $@ $<