summaryrefslogtreecommitdiff
path: root/v4l2-apps/test/Makefile
blob: 13eebf377ab43f42c62a42b2cfd4919337fa4725 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Makefile for linuxtv.org v4l2-apps/test

CPPFLAGS += -I../include

binaries = ioctl-test 		\
	   sliced-vbi-test 	\
	   sliced-vbi-detect 	\
	   vbi-test 		\
	   v4lgrab		\
	   v4l2grab		\
	   driver-test		\
	   pixfmt-test		\
	   stress-buffer	\
	   capture-example

.PHONY: all clean install

all: $(binaries)

clean::
	rm -f $(binaries)

install:

../libv4l2util/libv4l2util.a: ../libv4l2util/v4l2_driver.c ../libv4l2util/frequencies.c
	make -C ../libv4l2util libv4l2util.a

../libv4l/libv4l2/libv4l2.so:
	make -C ../libv4l/

driver-test: driver-test.o ../libv4l2util/libv4l2util.a

pixfmt-test: pixfmt-test.o
	$(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lX11

v4l2grab: v4l2grab.o
	$(CC) $(LDFLAGS) $^ -o $@ -L ../libv4l/libv4l2 -L ../libv4l/libv4lconvert -lv4l2 -lv4lconvert

include ../Make.rules