summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index f61114a..29ffd29 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,11 @@
CFLAGS=-std=c99 -Wall
LibAV=`pkg-config --cflags --libs libavcodec`
+LIBAV_DECODE_FLAGS=$(shell pkg-config --libs --cflags libavformat libavcodec libavutil libswscale)
+
+all: advtime decode_frame
advtime: advtime.c
gcc ${LibAV} advtime.c -o $@
+
+decode_frame: decode_frame.c
+ gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) decode_frame.c -o $@