From: kouril Date: Fri, 5 Sep 2003 09:00:29 +0000 (+0000) Subject: Makefile stuff to build the whole zoo X-Git-Tag: v5.0-rc2~14 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.git;a=commitdiff_plain;h=8854baee6c648bd5bbb9f398de429da115f7ffdc Makefile stuff to build the whole zoo --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b44cc07 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +include makefile.include + +KRB5_CPPFLAGS = `$(KRB5_ROOT)/bin/krb5-config --cflags gssapi` +KRB5_LDFLAGS = `$(KRB5_ROOT)/bin/krb5-config --libs gssapi` + +KRB4_CPPFLAGS = -I$(KRB4_ROOT)/include -I$(KRB4_ROOT)/include/kerberosIV \ + -I$(KRB5_ROOT)/include/kerberosIV + +CPPFLAGS = $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) +LDFLAGS = $(KRB5_LDFLAGS) + +ifndef APXS + APXS = apxs +endif + +all: modauthkerb + +libspnegokrb5: + (cd spnegokrb5 && make) + +modauthkerb: libspnegokrb5 + $(APXS) -c -i $(CPPFLAGS) $(LDFLAGS) mod_auth_kerb.c + +clean: + (cd spnegokrb5 && make clean) + $(RM) *.o *.so *.a *.la *.lo *.slo core diff --git a/makefile.include b/makefile.include new file mode 100644 index 0000000..0b3f36a --- /dev/null +++ b/makefile.include @@ -0,0 +1,24 @@ +# +# Setting for apache. Uncomment following line if you're using apache 1.3.x, +# don't change if you're using apache 2.0.x. +#DEFS = -DAPXS1 + +#set path to the apxs command if it's not in reachable in standard $PATH +APXS = /software/apache-2.0.47/bin/apxs + +# +# Settings for Kerberos v5 enviroment +# +DEFS += -DKRB5 +KRB5_ROOT = /software/krb5-1.2.8 + +#Uncomment following line if you're using the Heimdal implementation of krb5 +#DEFS += -DHEIMDAL + +# +# Settings for Kerberos v4 enviroment +# +#Uncomment following line if you want to enable krb4 support +#DEFS += -DKRB4 +#Uncomment following line if your krb4 libraries aren't located in the krb5 tree +#KRB4_ROOT = /software/krb4-1.2.2