Logged a debug message saying if or not the client delegated his/her credential
[mod_auth_kerb.git] / Makefile.in
index dca9a12..9c40491 100644 (file)
@@ -6,24 +6,40 @@ KRB4_LDFLAGS = @KRB4_LDFLAGS@
 LIB_resolv = @LIB_resolv@
 SPNEGO_SRCS = @SPNEGO_SRCS@
 
-CPPFLAGS = $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) -I. -Ispnegokrb5
+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: src/mod_auth_kerb.so
 
 src/mod_auth_kerb.so: src/mod_auth_kerb.c $(SPNEGO_SRCS)
-       $(APXS) -c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) 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 $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/mod_auth_kerb.c $(SPNEGO_SRCS)
+       $(APXS) -c -i $(APXS_CPPFLAGS) $(APXS_CFLAGS) $(APXS_LDFLAGS) src/mod_auth_kerb.c $(SPNEGO_SRCS)
 
 clean:
-       $(RM) *.o *.so *.a *.la *.lo *.slo core
-       $(RM) src/*.{o,so,a,la,lo,slo}
+       for i in . src spnegokrb5; do \
+               $(RM) $$i/*.{o,so,a,la,lo,slo} core; \
+               $(RM) -rf $$i/.libs; \
+       done
 
 distclean: clean
-       $(RM) config.h config.status Makefile configure config.log
-       $(RM) -rf autom4te.cache src/.libs
+       $(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