Add initial configure scripts
[mod_auth_gssapi.git] / src / Makefile.am
1 MAG_CFLAGS = @APR_CPPFLAGS@ @APXS_CPPFLAGS@ @APXS_CPPFLAGS_SHLIB@
2 MAG_INCLUDES = @INCLTDL@ @APR_INCLUDES@ @APXS_INCLUDES@
3 MAG_LIBS = @LIBLTDL@ @APR_LDFLAGS@ @APXS_LDFLAGS@ @APXS_LIBS@ @APXS_LD_SHLIB@
4 MAG_LIBEXECDIR = @APXS_LIBEXECDIR@
5
6 if HAVE_GCC
7     MAG_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
8                   -Wcast-qual -Wcast-align -Wwrite-strings \
9                   -Werror-implicit-function-declaration \
10                   -fno-strict-aliasing
11 endif
12
13 lib_LTLIBRARIES = mod_auth_gssapi.la
14
15 mod_auth_gssapi_la_LDFLAGS = -module
16
17 mod_auth_gssapi.la: mod_auth_gssapi.c
18         @APXS@ -c ${LIBS} -Wc,"${MAG_CFLAGS} ${MAG_INCLUDES}" -Wl,"${MAG_LIBS}" mod_auth_gssapi.c
19
20 install: mod_auth_gssapi.la
21         if test ! -d ${MAG_LIBEXECDIR}; then mkdir -p ${MAG_LIBEXECDIR}; fi
22         @APXS@ -i -S LIBEXECDIR=${MAG_LIBEXECDIR} mod_auth_gssapi.la
23
24 clean-local:
25         rm -f mod_auth_gssapi.slo mod_auth_gssapi.la mod_auth_gssapi.lo .libs