diff options
author | Todor Tomov <ttomov@mm-sol.com> | 2011-02-03 10:50:49 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-02-07 16:32:52 +0100 |
commit | 79bed4f42e9b9089eb0e0626f3accb762177edf6 (patch) | |
tree | f769ceb531bb02cf061b592b3dd7dcf3ec56f2ef | |
parent | d4968694e251f603e7c2b91608746cf4c382723a (diff) |
Build libmedia and libsubdev
Build media controller and v4l2 subdevice shared libraries.
Use libtool for building.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | m4/.gitignore | 0 | ||||
-rw-r--r-- | src/Makefile.am | 8 |
4 files changed, 10 insertions, 1 deletions
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 --- /dev/null +++ b/m4/.gitignore 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 |