summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--configure.in2
-rw-r--r--m4/.gitignore0
-rw-r--r--src/Makefile.am8
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