summaryrefslogtreecommitdiff
path: root/code/test/vid/Makefile
blob: 757429dbc77c3442a00fe9f4e92e622051a535fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LIBVPX_HOME=../libvpx
CFLAGS=-D_V4L2_KERNEL_ -I/usr/src/linux-headers-$(uname -r) -I$(LIBVPX_HOME)
LDFLAGS=-L$(LIBVPX_HOME)
deps=$(LIBVPX_HOME)/ivfenc.c.o $(LIBVPX_HOME)/video_writer.c.o

all: cap

%.o: %.c
	$(CC) $(CFLAGS) -c $<

cap: cap.o enc.o tools.o
	$(CC) -o $@ $< enc.o tools.o $(deps) -lvpx -lm -pthread $(LDFLAGS)
	
clean:
	rm -f *.o
	rm -f cap