1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
APXS = /usr/bin/apxs2
KRB5_CPPFLAGS = -I/include
KRB5_LDFLAGS = -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
KRB4_CPPFLAGS =
KRB4_LDFLAGS =
LIB_resolv = -lresolv
SPNEGO_SRCS =
CPPFLAGS = -I. -Ispnegokrb5 $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS)
LDFLAGS = $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv)
CFLAGS =
all: src/mod_auth_kerb.so
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"
install:
./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i" "src/mod_auth_kerb.c"
clean:
for i in . src spnegokrb5; do \
$(RM) $$i/*.o; \
$(RM) $$i/*.so; \
$(RM) $$i/*.a; \
$(RM) $$i/*.la; \
$(RM) $$i/*.lo; \
$(RM) $$i/*.slo; \
$(RM) -rf $$i/.libs; \
done
$(RM) core
distclean: clean
$(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
|