X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=Makefile.in;h=36f604640462e8a5a587c30356f777777c6fa6a8;hb=78cad3bfc8f62fc507c5051084978c1209074146;hp=7a0c276e0e3584af116d9398cb87ccbbee678935;hpb=1f9f0f20f94593b5aff06490d20baa6942f23f99;p=mod_auth_kerb.git diff --git a/Makefile.in b/Makefile.in index 7a0c276..36f6046 100644 --- a/Makefile.in +++ b/Makefile.in @@ -4,33 +4,35 @@ KRB5_LDFLAGS = @KRB5_LDFLAGS@ KRB4_CPPFLAGS = @KRB4_CPPFLAGS@ KRB4_LDFLAGS = @KRB4_LDFLAGS@ LIB_resolv = @LIB_resolv@ +SPNEGO_SRCS = @SPNEGO_SRCS@ -CPPFLAGS = $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) -I. -LDFLAGS = -Lspnegokrb5 -lspnegokrb5 $(KRB5_LDFLAGS) $(LIB_resolv) +CPPFLAGS = -I. -Ispnegokrb5 $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) +LDFLAGS = $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv) +CFLAGS = -ifdef SPNEGO_ONLY - TARGET = libspnegokrb5 -else - TARGET = modauthkerb -endif +all: src/mod_auth_kerb.so -all: $(TARGET) +src/mod_auth_kerb.so: src/mod_auth_kerb.c $(SPNEGO_SRCS) + ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c" "src/mod_auth_kerb.c" -libspnegokrb5: - (cd spnegokrb5 && make) - -modauthkerb: libspnegokrb5 - $(APXS) -c $(CPPFLAGS) $(LDFLAGS) src/mod_auth_kerb.c - -install: $(TARGET) - $(APXS) -i $(CPPFLAGS) $(LDFLAGS) src/mod_auth_kerb.so +install: + ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i" "src/mod_auth_kerb.c" clean: - (cd spnegokrb5 && make 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 - (cd spnegokrb5 && make distclean) - $(RM) config.h config.status Makefile configure autom4te.cache config.log - + $(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