From 79bed4f42e9b9089eb0e0626f3accb762177edf6 Mon Sep 17 00:00:00 2001 From: Todor Tomov Date: Thu, 3 Feb 2011 10:50:49 +0200 Subject: Build libmedia and libsubdev Build media controller and v4l2 subdevice shared libraries. Use libtool for building. Signed-off-by: Todor Tomov --- Makefile.am | 1 + configure.in | 2 ++ m4/.gitignore | 0 src/Makefile.am | 8 +++++++- 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 m4/.gitignore diff --git a/Makefile.am b/Makefile.am index f268924..149e070 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,2 +1,3 @@ SUBDIRS = src +ACLOCAL_AMFLAGS = -I m4 diff --git a/configure.in b/configure.in index 1b627bc..16260dd 100644 --- a/configure.in +++ b/configure.in @@ -3,11 +3,13 @@ AC_INIT([media-ctl], [0.0.1], [laurent.pinchart@ideasonboard.com]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) # Checks for programs. AC_PROG_CC +AC_PROG_LIBTOOL # Checks for libraries. diff --git a/m4/.gitignore b/m4/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/src/Makefile.am b/src/Makefile.am index b112ba6..d811f08 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,9 @@ +lib_LTLIBRARIES = libmedia.la libsubdev.la +libmedia_la_SOURCES = media.c +libsubdev_la_SOURCES = subdev.c +include_HEADERS = media.h subdev.h + bin_PROGRAMS = media-ctl -media_ctl_SOURCES = main.c media.c media.h options.c options.h subdev.c subdev.h tools.h +media_ctl_SOURCES = main.c options.c options.h tools.h +media_ctl_LDADD = libmedia.la libsubdev.la -- cgit v1.2.3