2 GSS_CPPFLAGS = @GSS_CPPFLAGS@
3 GSS_LDFLAGS = @GSS_LDFLAGS@ @LIBS@
4 SPNEGO_SRCS = @SPNEGO_SRCS@
7 exec_prefix=@exec_prefix@
8 libexecdir=@libexecdir@
9 sysconfdir=@sysconfdir@
13 CPPFLAGS = -I. -Ispnegokrb5 $(GSS_CPPFLAGS) $(DEFS)
14 LDFLAGS = $(GSS_LDFLAGS)
17 SRCS = mod_auth_gssapi.c gss.c $(SPNEGO_SRCS)
19 all: mod_auth_gssapi.la
21 mod_auth_gssapi.la: $(SRCS)
22 ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SRCS}" "${APXS} -c"
24 install: mod_auth_gssapi.la
25 $(INSTALL) -d $(DESTDIR)${libdir}/apache2/modules
26 $(INSTALL) -d $(DESTDIR)${sysconfdir}/apache2/mods-available
27 ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" $^ "${APXS} -i -A -S LIBEXECDIR=$(DESTDIR)${libdir}/apache2/modules -S SYSCONFDIR=$(DESTDIR)${sysconfdir}/apache2 -n auth_gssapi"
30 for i in . spnegokrb5; do \
31 (cd $$i && $(RM) *.o *.so *.a *.la *.lo *.slo); \
32 $(RM) -rf $$i/.libs; \
36 $(RM) config.h config.status Makefile config.log
37 $(RM) -rf autom4te.cache
40 git archive --prefix mod_auth_gssapi/ HEAD |gzip -9 >@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
42 .PHONY: all install clean distclean dist-gzip