summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: fbdb4240624eb152c83828c1d459929ee5b2e716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 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 $@