X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=Makefile.in;h=9c40491b9b34618b5cefbfc97943d8a03cafe60a;hb=50472b1baa359201a3dc84c5e2cc8dc4009c2210;hp=d6c79cd21360641868200d7cb28f881656ca08eb;hpb=6b40087d9a92c1f02397e4498098489303a6f8b4;p=mod_auth_kerb.git diff --git a/Makefile.in b/Makefile.in index d6c79cd..9c40491 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,23 +1,45 @@ -### -# Makefile.in for mod_auth_kerb -### - APXS = @APXS@ -CFLAGS = -I. @CFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -INSTALL = @INSTALL@ +KRB5_CPPFLAGS = @KRB5_CPPFLAGS@ +KRB5_LDFLAGS = @KRB5_LDFLAGS@ +KRB4_CPPFLAGS = @KRB4_CPPFLAGS@ +KRB4_LDFLAGS = @KRB4_LDFLAGS@ +LIB_resolv = @LIB_resolv@ +SPNEGO_SRCS = @SPNEGO_SRCS@ + +CPPFLAGS = -I. -Ispnegokrb5 $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) +LDFLAGS = $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv) +CFLAGS = + +# Use these assignements instead of the default ones if your're building on BSD +# systems. A 'if' statemet would be better, of course. +#APXS_CPPFLAGS != [ -n "${CPPFLAGS}" ] && echo ${CPPFLAGS} | sed -e 's/\([^ ]*\)/-Wc,\1/g' +#APXS_LDFLAGS != [ -n "${LDFLAGS}" ] && echo ${LDFLAGS} | sed -e 's/\([^ ]*\)/-Wl,\1/g' +APXS_CPPFLAGS = ${shell [ -n "${CPPFLAGS}" ] && echo ${CPPFLAGS} | sed -e 's/\([^ ]*\)/-Wc,\1/g'} +APXS_LDFLAGS = ${shell [ -n "${LDFLAGS}" ] && echo ${LDFLAGS} | sed -e 's/\([^ ]*\)/-Wl,\1/g'} -all: mod_auth_kerb +all: src/mod_auth_kerb.so -mod_auth_kerb: mod_auth_kerb.c - $(APXS) -c ${CFLAGS} ${LDFLAGS} ${LIBS} mod_auth_kerb.c +src/mod_auth_kerb.so: src/mod_auth_kerb.c $(SPNEGO_SRCS) + $(APXS) -c $(APXS_CPPFLAGS) $(APXS_CFLAGS) $(APXS_LDFLAGS) src/mod_auth_kerb.c $(SPNEGO_SRCS) install: - $(APXS) -c -i ${CFLAGS} ${LDFLAGS} ${LIBS} mod_auth_kerb.c + $(APXS) -c -i $(APXS_CPPFLAGS) $(APXS_CFLAGS) $(APXS_LDFLAGS) src/mod_auth_kerb.c $(SPNEGO_SRCS) clean: - /bin/rm -rf core *.o *.la *.lo *.slo .libs + for i in . src spnegokrb5; do \ + $(RM) $$i/*.{o,so,a,la,lo,slo} core; \ + $(RM) -rf $$i/.libs; \ + done distclean: clean - /bin/rm -f Makefile config.h config.status config.cache config.log mod_auth_kerb.c + $(RM) config.h config.status Makefile config.log + $(RM) -rf autom4te.cache + +make_release: + echo "Did you increase version numbers?" + autoconf + $(RM) -rf autom4te.cache + $(RM) -rf .cvsignore spnegokrb5/.cvsignore src/.cvsignore + $(RM) -rf CVS spnegokrb5/CVS src/CVS + +.PHONY: all install clean distclean