aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2012-01-14 17:09:36 +0100
committerGregor Jasny <gjasny@googlemail.com>2012-01-14 19:21:26 +0100
commit3773368c5d3b786f24aa5fc9639d54bf4025a308 (patch)
tree8d86067f312c3d22a21ff3327db358b09bf8d0fb /Makefile.am
parentbbeae3773f4f42e98fe0fa34f39b6dddfa96265a (diff)
buildsystem: Convert to autotools buildsystem
Use autoreconf -vfi to bootstrap Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am47
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 00000000..58a44dec
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,47 @@
+AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
+
+SUBDIRS = \
+ lib/libv4lconvert \
+ lib/libv4l2 \
+ lib/libv4l1
+
+if WITH_V4LUTILS
+SUBDIRS += \
+ utils/libv4l2util \
+ utils/libmedia_dev \
+ utils/decode_tm6000 \
+ utils/dvb \
+ utils/keytable \
+ utils/rds \
+ utils/v4l2-compliance \
+ utils/v4l2-ctl \
+ utils/v4l2-dbg \
+ utils/v4l2-sysfs-path \
+ utils/xc3028-firmware
+
+if BUILD_QT
+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/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/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 utils/dvb $@
+

Privacy Policy