Description of delegation support in Win AD (thanks Rob Sessink)
[mod_auth_kerb.cvs/.git] / Makefile.in
index e3012b1..b15509c 100644 (file)
@@ -1,23 +1,31 @@
-###
-# 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 =
 
-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 $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/mod_auth_kerb.c $(SPNEGO_SRCS)
 
 install:
-       $(APXS) -c -i ${CFLAGS} ${LDFLAGS} ${LIBS} mod_auth_kerb.c
+       $(APXS) -c -i $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/mod_auth_kerb.c $(SPNEGO_SRCS)
 
 clean:
-       /bin/rm -rf core *.o *.la *.lo *.slo *.so .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
+
+.PHONY: all install clean distclean