aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: d6aea36c3adc6d847ddffd363803d6446a07b58a (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = \
	lib/libv4lconvert \
	lib/libv4l2 \
	lib/libv4l1 \
	lib/libdvbv5 \
	lib/libv4l2rds

if WITH_V4LUTILS
SUBDIRS += \
	utils/dvb \
	utils/libv4l2util \
	utils/libmedia_dev \
	utils/decode_tm6000 \
	utils/keytable \
	utils/v4l2-compliance \
	utils/v4l2-ctl \
	utils/v4l2-dbg \
	utils/v4l2-sysfs-path \
	utils/rds-ctl

if LINUX_OS
SUBDIRS += \
	utils/xc3028-firmware \
	contrib/test

if HAVE_LINUX_I2C_DEV
SUBDIRS += \
	utils/rds
endif
endif

if WITH_QV4L2
SUBDIRS += utils/qv4l2
endif
endif

EXTRA_DIST = contrib include README.lib README.lib-multi-threading

# custom targets

sync-with-kernel:
	@if [ ! -f $(KERNEL_DIR)/include/linux/videodev2.h -o \
	      ! -f $(KERNEL_DIR)/include/linux/v4l2-controls.h -o \
	      ! -f $(KERNEL_DIR)/include/linux/v4l2-common.h -o \
	      ! -f $(KERNEL_DIR)/include/linux/ivtv.h -o \
	      ! -f $(KERNEL_DIR)/include/media/v4l2-chip-ident.h ]; then \
	  echo "Error you must set KERNEL_DIR to point to an extracted kernel source dir"; \
	  exit 1; \
	fi
	cp -a $(KERNEL_DIR)/include/linux/videodev2.h $(top_srcdir)/include/linux
	cp -a $(KERNEL_DIR)/include/linux/v4l2-controls.h $(top_srcdir)/include/linux
	cp -a $(KERNEL_DIR)/include/linux/v4l2-common.h $(top_srcdir)/include/linux
	cp -a $(KERNEL_DIR)/include/linux/ivtv.h $(top_srcdir)/include/linux
	cp -a $(KERNEL_DIR)/include/media/v4l2-chip-ident.h $(top_srcdir)/include/media

	$(MAKE) -C utils/keytable $@
	$(MAKE) -C utils/v4l2-dbg $@
	$(MAKE) -C utils/xc3028-firmware $@
	$(MAKE) -C lib/libdvbv5 $@
	$(MAKE) -C contrib/freebsd $@

Privacy Policy