summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 0cd8c91..b5a6901 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,11 +1,10 @@
CFLAGS=-std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter
-LibAV=`pkg-config --cflags --libs libavcodec`
LIBAV_DECODE_FLAGS=`pkg-config --libs --cflags libavformat libavcodec libavutil libswscale`
all: advtime decode_frame frame_to_pgm
-advtime: advtime.c
- gcc ${LibAV} advtime.c -o $@
+advtime: advtime.c video_decode.c
+ gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) advtime.c video_decode.c -o $@
decode_frame: decode_frame.c
gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) decode_frame.c -o $@