diff options
| author | Alexandra Ellwood <lxs@mit.edu> | 2003-03-06 18:54:12 +0000 |
|---|---|---|
| committer | Alexandra Ellwood <lxs@mit.edu> | 2003-03-06 18:54:12 +0000 |
| commit | 70e0ffb03f3799121c4cb47eeea7037d17ea458d (patch) | |
| tree | 30d2708c41ae2cfc711385d783e64809abb484d0 /src/mac/MacOSX/Scripts/Kerberos5ServerBuild.jam | |
| parent | bcc8c2874f4d8c86cbd6503d4fe370bc8d6a5fc1 (diff) | |
| download | krb5-70e0ffb03f3799121c4cb47eeea7037d17ea458d.tar.gz krb5-70e0ffb03f3799121c4cb47eeea7037d17ea458d.tar.xz krb5-70e0ffb03f3799121c4cb47eeea7037d17ea458d.zip | |
Scripts to build KfM headers and error tables and a script to run the krb5 build system
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15241 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/mac/MacOSX/Scripts/Kerberos5ServerBuild.jam')
| -rw-r--r-- | src/mac/MacOSX/Scripts/Kerberos5ServerBuild.jam | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/mac/MacOSX/Scripts/Kerberos5ServerBuild.jam b/src/mac/MacOSX/Scripts/Kerberos5ServerBuild.jam new file mode 100644 index 000000000..9969720be --- /dev/null +++ b/src/mac/MacOSX/Scripts/Kerberos5ServerBuild.jam @@ -0,0 +1,55 @@ +Intermediates = "$(BUILT_PRODUCTS_DIR)/Kerberos5.intermediates" ; +IntermediateBuild = "$(Intermediates)/build" ; +Sources = "$(SRCROOT)/../Sources" ; + +Reconf = "$(Sources)/util/reconf" ; +Configure = "$(Sources)/configure" ; +Makefile = "$(IntermediateBuild)/Makefile" ; + +# +# Note: in this jam script we have separated the dependency tree from the +# actual scripts. This is so that CVS checkouts trigger a rebuild but the jam +# script doesn't need to know how the reconf and configure scripts work. +# + +# Reconf <configure> : <configure.in> +rule Reconf +{ + DEPENDS "$(1)" : "$(1).in" "$(Reconf)" ; +} +actions Reconf +{ + cd "$(Sources)" && /bin/sh "$(Reconf)" -f +} + +# Configure <makefile> : <configure> +rule Configure +{ + DEPENDS "$(1)" : "$(2)" ; + Reconf "$(2)" : "$(2).in" ; + Clean.Remove clean "$(1:D)" ; +} +actions Configure +{ + mkdir -p "$(1:D)" + cd "$(1:D)" && /bin/sh "$(2)" --prefix=/usr CFLAGS="-fno-common" || rm -f "$(1)" +} + +# Make <stamp file> <build dir> : <makefile> +rule Make +{ + DEPENDS "$(1)" : "$(2)" ; + Configure "$(2)" : "$(Configure)" ; + Clean.Remove clean "$(1)" ; +} +actions Make +{ + mkdir -p "$(1:D)" + cd "$(1:D)" && make && touch "$(1)" && echo "### HAPPINESS ###" +} + +Make "$(IntermediateBuild)/make.stamp" : "$(Makefile)" ; + +DEPENDS all : "$(IntermediateBuild)/make.stamp" ; +DEPENDS install : all ; +DEPENDS installhdrs : all ; |
