-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
57 lines (50 loc) · 2.81 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = v4l-utils-po libdvbv5-po lib
if WITH_V4LUTILS
SUBDIRS += utils contrib
endif
EXTRA_DIST = android-config.h bootstrap.sh doxygen_libdvbv5.cfg include COPYING.libv4l \
COPYING.libdvbv5 README.libv4l README.lib-multi-threading TODO.libdvbv5 \
doc/libdvbv5-index.doc
include $(top_srcdir)/aminclude.am
# custom targets
sync-with-kernel:
@if [ ! -f $(KERNEL_DIR)/usr/include/linux/videodev2.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/fb.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/v4l2-controls.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/v4l2-common.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/v4l2-subdev.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/v4l2-mediabus.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/ivtv.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/dvb/frontend.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/dvb/dmx.h -o \
! -f $(KERNEL_DIR)/usr/include/linux/lirc.h ]; then \
echo "Error you must set KERNEL_DIR to point to an extracted kernel source dir"; \
echo "and run 'make headers_install' in \$$KERNEL_DIR."; \
exit 1; \
fi
cp -a $(KERNEL_DIR)/usr/include/linux/videodev2.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/fb.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/v4l2-controls.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/v4l2-common.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/v4l2-subdev.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/v4l2-mediabus.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/media-bus-format.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/media.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/ivtv.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/usr/include/linux/dvb/frontend.h $(top_srcdir)/include/linux/dvb
cp $(top_srcdir)/include/linux/dvb/frontend.h $(top_srcdir)/lib/include/libdvbv5/dvb-frontend.h
cp -a $(KERNEL_DIR)/usr/include/linux/dvb/dmx.h $(top_srcdir)/include/linux/dvb
cp -a $(KERNEL_DIR)/usr/include/linux/lirc.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c $(top_srcdir)/utils/common
cp -a $(KERNEL_DIR)/drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c $(top_srcdir)/utils/common
cp -a $(KERNEL_DIR)/include/media/tpg/v4l2-tpg* $(top_srcdir)/utils/common
patch -p0 <$(top_srcdir)/utils/common/v4l2-tpg.patch
cp -a $(KERNEL_DIR)/include/uapi/linux/cec.h $(top_srcdir)/include/linux
cp -a $(KERNEL_DIR)/include/uapi/linux/cec-funcs.h $(top_srcdir)/include/linux
$(MAKE) -C utils/keytable $@
$(MAKE) -C lib/libdvbv5 $@
$(MAKE) -C contrib/freebsd $@
$(MAKE) -C contrib/test $@
$(MAKE) -C contrib/xc3028-firmware $@