From 9b52c0d4544b2ed0fba156f87b75632c75b2084c Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Mon, 24 Apr 2017 21:28:09 +0200 Subject: wrapper: Move 'wrap_env_path' to a new 'utils' module. * src/wrapper.c: Move 'wrap_env_path' to ... * src/utils.h: ... here. New module. * src/utils.c: New file. * configure.ac: Use AC_PROG_RANLIB and AM_PROG_AR. * Makefile.am (noinst_LIBRARIES, src_libmcron_a_SOURCES): New variables. (LDADD): Add 'src/libmcron.a'. --- Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7602341..e5a105f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,7 +36,7 @@ AM_CPPFLAGS = \ -D_GNU_SOURCE AM_CFLAGS = @GUILE_CFLAGS@ -LDADD = @GUILE_LIBS@ +LDADD = @GUILE_LIBS@ src/libmcron.a bin_mcron_SOURCES = src/wrapper.c bin_mcron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"mcron\"" @@ -53,6 +53,12 @@ bin_crontab_DEPENDENCIES = $(compiled_modules) # wrapper to be used in the build environment and for running tests. noinst_SCRIPTS = pre-inst-env +# local library. +noinst_LIBRARIES = src/libmcron.a +src_libmcron_a_SOURCES = \ + src/utils.c \ + src/utils.h + ## --------------- ## ## Guile modules. ## ## --------------- ## -- cgit v1.2.3