summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2009-03-13 15:16:20 +0100
committerJan Safranek <jsafrane@redhat.com>2009-03-26 09:36:41 +0100
commit07ff50e0856fecd937fb6a5ce87871f19f20f004 (patch)
treed35b0a391af1bc48d0b9ec7e9cd7f138a2126f58 /src
parentb64a3c84e46550df4455ef4e46ec5d3b36486d65 (diff)
downloadlibcg-07ff50e0856fecd937fb6a5ce87871f19f20f004.tar.gz
libcg-07ff50e0856fecd937fb6a5ce87871f19f20f004.tar.xz
libcg-07ff50e0856fecd937fb6a5ce87871f19f20f004.zip
Add automake makefiles
Add automake makefiles and prepare everything to run, but don't actually run the automake - it would generate lot of noise, where my manual changes would get lots. Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am11
-rw-r--r--src/daemon/Makefile.am6
-rw-r--r--src/pam/Makefile.am6
-rw-r--r--src/tools/Makefile.am11
4 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..c30393a
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,11 @@
+SUBDIRS = . daemon pam tools
+
+# generate parse.h from parse.y
+AM_YFLAGS = -d
+
+INCLUDES = -I$(top_srcdir)/include
+lib_LTLIBRARIES = libcgroup.la
+libcgroup_la_SOURCES = parse.y lex.l api.c config.c libcgroup-internal.h libcgroup.map wrapper.c
+libcgroup_la_LIBADD = -lpthread
+libcgroup_la_LDFLAGS = -Wl,--version-script,libcgroup.map -version-number $(LIBRARY_VERSION)
+
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
new file mode 100644
index 0000000..17d31d9
--- /dev/null
+++ b/src/daemon/Makefile.am
@@ -0,0 +1,6 @@
+INCLUDES = -I $(top_srcdir)/include
+sbin_PROGRAMS = cgrulesengd
+
+cgrulesengd_SOURCES = cgrulesengd.c cgrulesengd.h
+cgrulesengd_LDADD = $(top_srcdir)/src/.libs/libcgroup.la
+cgrulesengd_LDFLAGS = -L$(top_srcdir)/src/.libs
diff --git a/src/pam/Makefile.am b/src/pam/Makefile.am
new file mode 100644
index 0000000..1a1e782
--- /dev/null
+++ b/src/pam/Makefile.am
@@ -0,0 +1,6 @@
+INCLUDES = -I $(top_srcdir)/include
+lib_LTLIBRARIES = pam_cgroup.la
+
+pam_cgroup_la_SOURCES = pam_cgroup.c
+pam_cgroup_la_LDFLAGS = -module
+pam_cgroup_la_LIBADD = $(top_srcdir)/src/.libs/libcgroup.la -lpam
diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am
new file mode 100644
index 0000000..b237744
--- /dev/null
+++ b/src/tools/Makefile.am
@@ -0,0 +1,11 @@
+INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include
+LDADD = $(top_srcdir)/src/.libs/libcgroup.la
+
+bin_PROGRAMS = cgexec cgclassify cgconfigparser
+
+cgexec_SOURCES = cgexec.c tools-common.c tools-common.h
+
+cgclassify_SOURCES = cgclassify.c tools-common.c tools-common.h
+
+cgconfigparser_SOURCES = cgconfig.c
+