increased version number before creating a new release
[mod_auth_kerb.git] / Makefile.in
index d6c79cd..7e3fe8c 100644 (file)
@@ -1,23 +1,36 @@
-###
-# 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@
+DO_KRB5 = @DO_KRB5@
+
+CPPFLAGS = $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) -I. -Ispnegokrb5
+ifdef DO_KRB5
+       LDFLAGS = -Lspnegokrb5 -lspnegokrb5 $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv)
+else
+       LDFLAGS = $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv)
+endif
+CFLAGS = -Wc-g
+
+all: modauthkerb
 
-all: mod_auth_kerb
+libspnegokrb5:
+       (cd spnegokrb5 && make)
 
-mod_auth_kerb: mod_auth_kerb.c
-       $(APXS) -c  ${CFLAGS} ${LDFLAGS} ${LIBS} mod_auth_kerb.c
+modauthkerb: libspnegokrb5
+       $(APXS) -c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/mod_auth_kerb.c
 
-install:
-       $(APXS) -c -i ${CFLAGS} ${LDFLAGS} ${LIBS} mod_auth_kerb.c
+install: $(TARGET)
+       $(APXS) -i src/mod_auth_kerb.so
 
 clean:
-       /bin/rm -rf core *.o *.la *.lo *.slo .libs
+       (cd spnegokrb5 && make clean)
+       $(RM) *.o *.so *.a *.la *.lo *.slo core
+       $(RM) src/*.{o,so,a,la,lo,slo}
 
 distclean: clean
-       /bin/rm -f Makefile config.h config.status config.cache config.log mod_auth_kerb.c
+       (cd spnegokrb5 && make distclean)
+       $(RM) config.h config.status Makefile configure config.log
+       $(RM) -rf autom4te.cache src/.libs