From e3d818c06bf103a6121e3f3198d70e60b60cd454 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 11 Sep 2014 17:01:26 -0400 Subject: Change the modules build process USe automake directives to directly invoke the apxs favored libtool, and use APXS only to perform the final install. Fixes #4 --- src/Makefile.am | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 9fac277..01a1220 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,18 @@ -EXTRA_DIST = mod_auth_gssapi.c sessions.c crypto.c mod_auth_gssapi.h sessions.h crypto.h +magdir = $(MAG_LIBDIR) +mag_LTLIBRARIES = \ + mod_auth_gssapi.la -all-local: - @APXS@ -c ${LIBS} mod_auth_gssapi.c sessions.c crypto.c +dist_noinst_HEADERS = \ + mod_auth_gssapi.h crypto.h sessions.h + +mod_auth_gssapi_la_SOURCES = \ + mod_auth_gssapi.c crypto.c sessions.c +mod_auth_gssapi_la_CFLAGS = \ + $(MAG_CFLAGS) +mod_auth_gssapi_la_LDFLAGS = \ + $(MAG_LIBS) \ + -avoid-version \ + -module install-exec-local: if test ! -d ${APXS_LIBEXECDIR}; then mkdir -p ${APXS_LIBEXECDIR}; fi -- cgit