summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-13 09:55:24 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-13 09:55:24 +0100
commit9ef73e44ebbe9ee63bb364fe5afe530077687df5 (patch)
treed236875060320fe41ae38f336f3fdcae611bc635 /src/Makefile
parente98457cea9e3c1b7603ef928c293bacdefb3124d (diff)
downloadadvtime-9ef73e44ebbe9ee63bb364fe5afe530077687df5.tar.gz
advtime-9ef73e44ebbe9ee63bb364fe5afe530077687df5.tar.bz2
advtime-9ef73e44ebbe9ee63bb364fe5afe530077687df5.zip
Add very simple abstraction [video_decode.c] of libav
..and an example program using it: frame_to_pgm.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 29ffd29..fbdb424 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,11 +1,14 @@
-CFLAGS=-std=c99 -Wall
+CFLAGS=-std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter
LibAV=`pkg-config --cflags --libs libavcodec`
LIBAV_DECODE_FLAGS=$(shell pkg-config --libs --cflags libavformat libavcodec libavutil libswscale)
-all: advtime decode_frame
+all: advtime decode_frame frame_to_pgm
advtime: advtime.c
gcc ${LibAV} advtime.c -o $@
decode_frame: decode_frame.c
gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) decode_frame.c -o $@
+
+frame_to_pgm: frame_to_pgm.c video_decode.c
+ gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) frame_to_pgm.c video_decode.c -o $@