summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 9e6624a15abdf9f0cd02af0b7298c34e11ed3b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS=-ggdb -std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes \
	-Wno-unused-parameter -DDEBUG=0
LIBAV_DECODE_FLAGS=`pkg-config --libs --cflags libavformat libavcodec \
	 libavutil libswscale`

all: advtime decode_frame frame_to_pgm

advtime: advtime.c video_decode.c util.c
	gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) advtime.c video_decode.c util.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 $@

clean:
	rm -f advtime decode_frame frame_to_pgm