aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorno author <devnull@mit.edu>2004-06-14 15:10:18 +0000
committerno author <devnull@mit.edu>2004-06-14 15:10:18 +0000
commit8aa4bfc380e1aeb52dc95a7aac128d3f05c4d422 (patch)
tree314030303bea303322c2e66a7dffb27ed02d623e /src
parent4809d910a59686372c06cb18f33b3bc348f17012 (diff)
downloadkrb5-8aa4bfc380e1aeb52dc95a7aac128d3f05c4d422.zip
krb5-8aa4bfc380e1aeb52dc95a7aac128d3f05c4d422.tar.gz
krb5-8aa4bfc380e1aeb52dc95a7aac128d3f05c4d422.tar.bz2
This commit was manufactured by cvs2svn to create branch 'krb5-1-3'
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-3@16442 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/mac/MacOSX/Scripts/Kerberos5BuildSystem.jam76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/mac/MacOSX/Scripts/Kerberos5BuildSystem.jam b/src/mac/MacOSX/Scripts/Kerberos5BuildSystem.jam
new file mode 100644
index 0000000..72d3485
--- /dev/null
+++ b/src/mac/MacOSX/Scripts/Kerberos5BuildSystem.jam
@@ -0,0 +1,76 @@
+Intermediates = "$(BUILT_PRODUCTS_DIR)/Kerberos5.intermediates" ;
+IntermediateBuild = "$(Intermediates)/build" ;
+Sources = "$(SRCROOT)/../../Kerberos5/Sources" ;
+
+Reconf = "$(Sources)/util/reconf" ;
+Configure = "$(Sources)/configure" ;
+Makefile = "$(IntermediateBuild)/Makefile" ;
+MakefileET = "$(IntermediateBuild)/util/et/Makefile" ;
+MakefileInclude = "$(IntermediateBuild)/include/Makefile" ;
+
+
+# Assemble CFLAGS
+CONFIGURE_CFLAGS = "-fno-common -include /usr/include/TargetConditionals.h -DUSE_PASSWORD_SERVER" ;
+if $(RC_CFLAGS) != "" { CONFIGURE_CFLAGS = "$(CONFIGURE_CFLAGS) $(RC_CFLAGS)" ; }
+if $(CFLAGS) != "" { CONFIGURE_CFLAGS = "$(CONFIGURE_CFLAGS) $(CFLAGS)" ; }
+if $(OTHER_CFLAGS) != "" { CONFIGURE_CFLAGS = "$(CONFIGURE_CFLAGS) $(OTHER_CFLAGS)" ; }
+if $(WARNING_CFLAGS) != "" { CONFIGURE_CFLAGS = "$(CONFIGURE_CFLAGS) $(WARNING_CFLAGS)" ; }
+CONFIGURE_CFLAGS = "CFLAGS=$(CONFIGURE_CFLAGS)" ;
+
+# Assemble LDFLAGS
+CONFIGURE_LDFLAGS = "-Wl,-search_paths_first" ;
+if $(LDFLAGS) != "" { CONFIGURE_LDFLAGS = "$(LDFLAGS) $(CONFIGURE_LDFLAGS)" ; }
+CONFIGURE_LDFLAGS = "LDFLAGS=$(CONFIGURE_LDFLAGS:)" ;
+
+#
+# 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 --localstatedir=/var/db "$(CONFIGURE_CFLAGS)" "$(CONFIGURE_LDFLAGS)" || rm -f "$(1)"
+}
+
+# MakeInclude <stamp file>
+rule MakeInclude
+{
+ DEPENDS "$(1)" : "$(Makefile)" ;
+ Configure "$(Makefile)" : "$(Configure)" ;
+ Clean.Remove clean "$(1)" ;
+}
+actions MakeInclude
+{
+ cd "$(1:D)/util/et" && make && cd "$(1:D)/include" && make && touch "$(1)" && echo "### HAPPINESS ###"
+}
+
+# Make <stamp file>
+rule Make
+{
+ DEPENDS "$(1)" : "$(Makefile)" ;
+ Configure "$(Makefile)" : "$(Configure)" ;
+ Clean.Remove clean "$(1)" ;
+}
+actions Make
+{
+ cd "$(1:D)" && make && touch "$(1)" && echo "### HAPPINESS ###"
+}