Added the -c switch to apxs when doing installation. This enforce a new
authorkouril <kouril>
Wed, 17 Dec 2003 13:57:44 +0000 (13:57 +0000)
committerkouril <kouril>
Wed, 17 Dec 2003 13:57:44 +0000 (13:57 +0000)
compilation of the module itself but (hopefuly) prevents problems with libtool
and different target names generated by libtool on different platforms.

Makefile.in

index d19e541..b85fc3b 100644 (file)
@@ -14,6 +14,8 @@ else
 endif
 CFLAGS = -Wc-g
 
+.PHONY: all install clean distclean
+
 all: src/mod_auth_kerb.so
 
 spnegokrb5/libspnegokrb5.a:
@@ -22,8 +24,8 @@ spnegokrb5/libspnegokrb5.a:
 src/mod_auth_kerb.so: spnegokrb5/libspnegokrb5.a src/mod_auth_kerb.c
        $(APXS) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/mod_auth_kerb.c
 
-install: $(TARGET)
-       $(APXS) -i src/mod_auth_kerb.so
+install:
+       $(APXS) -c -i $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/mod_auth_kerb.c
 
 clean:
        (cd spnegokrb5 && make clean)