- the spnegokrb5 lib is not used if only krb4 is specified
[mod_auth_kerb.git] / spnegokrb5 / Makefile.in
index 337926a..5349f77 100644 (file)
@@ -1,8 +1,16 @@
-include ../makefile.include
+KRB5_CPPFLAGS = @KRB5_CPPFLAGS@
+KRB5_LDFLAGS = @KRB5_LDFLAGS@
+DO_KRB5 = @DO_KRB5@
 
-CPPFLAGS = -I. -I$(KRB5_ROOT)/include -I$(KRB5_ROOT)/include/gssapi
+CPPFLAGS = -I. -I.. $(KRB5_CPPFLAGS)
 CFLAGS = -Wall -g
 
+ifdef DO_KRB5
+       TARGET=libspnegokrb5.a
+else
+       TARGET=
+endif
+
 gen_files =                    \
        asn1_MechType.c         \
        asn1_MechTypeList.c     \
@@ -25,7 +33,7 @@ spnegokrb5_files =            \
        decapsulate.c           \
        external.c
 
-all: libspnegokrb5.a
+all: $(TARGET)
 
 libspnegokrb5.a: $(gen_files:.c=.o) $(asn1_files:.c=.o) $(spnegokrb5_files:.c=.o)
        ar -rscu libspnegokrb5.a $^
@@ -35,3 +43,6 @@ test:
        
 clean:
        $(RM) *.o core libspnegokrb5.a
+
+distclean: clean
+       $(RM) Makefile