Conf file is now in source tree
[mod_auth_kerb.git] / Makefile.in
1 APXS = @APXS@
2 GSS_CPPFLAGS = @GSS_CPPFLAGS@
3 GSS_LDFLAGS = @GSS_LDFLAGS@ @LIBS@
4 SPNEGO_SRCS = @SPNEGO_SRCS@
5 INSTALL=@INSTALL@
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 libexecdir=@libexecdir@
9 sysconfdir=@sysconfdir@
10 libdir=@libdir@
11
12
13 CPPFLAGS = -I. -Ispnegokrb5 $(GSS_CPPFLAGS) $(DEFS)
14 LDFLAGS = $(GSS_LDFLAGS)
15 CFLAGS =
16
17 SRCS = mod_auth_gssapi.c gss.c $(SPNEGO_SRCS)
18
19 all: mod_auth_gssapi.la
20
21 mod_auth_gssapi.la: $(SRCS)
22         ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SRCS}" "${APXS} -c"
23
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"
28
29 clean:
30         for i in . spnegokrb5; do \
31                 (cd $$i && $(RM) *.o *.so *.a *.la *.lo *.slo); \
32                 $(RM) -rf $$i/.libs; \
33         done
34
35 distclean: clean
36         $(RM) config.h config.status Makefile config.log
37         $(RM) -rf autom4te.cache
38
39 dist-gzip:
40         git archive  --prefix mod_auth_gssapi/ HEAD |gzip -9 >@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
41
42 .PHONY: all install clean distclean dist-gzip