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

all: cuttime overlap findcut decode_frame frame_to_pgm

cuttime: cuttime.c video_decode.c util.c
	gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) cuttime.c video_decode.c util.c -o $@

overlap: overlap.c video_decode.c util.c
	gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) overlap.c video_decode.c util.c -o $@

findcut: findcut.c video_decode.c util.c
	gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) findcut.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 cuttime overlap findcut decode_frame frame_to_pgm