summaryrefslogtreecommitdiffstats
path: root/src/mac/Makefile.initial
diff options
context:
space:
mode:
authorMiro Jurisic <meeroh@mit.edu>1998-10-21 21:51:20 +0000
committerMiro Jurisic <meeroh@mit.edu>1998-10-21 21:51:20 +0000
commitd4121fe6200a23cac8f3ba0037896a740634343c (patch)
tree771b071bd4542925f443b0b2b5643c6491f618de /src/mac/Makefile.initial
parent8c3395b6a09b6ec2e49d3926ee15471c2146b993 (diff)
Added CodeWarrior Pro4 projects and docs, updated the Mac makefile to automagically build CW projects, updated CCache lib files
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10976 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/mac/Makefile.initial')
-rw-r--r--src/mac/Makefile.initial34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/mac/Makefile.initial b/src/mac/Makefile.initial
index c5b0b7094..2b079f513 100644
--- a/src/mac/Makefile.initial
+++ b/src/mac/Makefile.initial
@@ -1,5 +1,23 @@
-all Ä build-makefile create-directories build-cw-projects
- echo # Open {TargDir}:mac:libraries:BeforeBuild.prj in CodeWarrior IDE 2.1 and build it
+################################################################################
+##
+## Figure out CodeWarrior version
+##
+################################################################################
+
+CodeWarrior_Linker_Version = ¶`mwlink68k -version | search /Runtime/ | streamedit -d -e "/([0-9.]*)¨1/ print ¨1"¶`
+CodeWarrior_Linker_Pro2 = "2.0"
+CodeWarrior_Linker_Pro4 = "2.2"
+CodeWarrior_Version = `if ({CodeWarrior_Linker_Version} == {CodeWarrior_Linker_Pro2}); ¶
+ echo Pro2; ¶
+ else if ({CodeWarrior_Linker_Version} == {CodeWarrior_Linker_Pro4}); ¶
+ echo Pro4; ¶
+ end;`
+CodeWarrior_IDE = "CodeWarrior "{CodeWarrior_Version}" IDE"
+CodeWarrior_Projects = :mac:Libraries:Metrowerks:{CodeWarrior_Version}:
+CodeWarrior_Project = "`Directory`mac:libraries:CodeWarrior Dependencies:{CodeWarrior_Version}.prj"
+
+
+all Ä create-directories build-cw-projects build-makefile
################################################################################
##
@@ -34,9 +52,9 @@ create-directories Ä
################################################################################
build-cw-projects Ä
- (Echo "with timeout of 1200 seconds"; ¶
- Echo "Tell application ¶"CodeWarrior IDE 2.1¶""; ¶
- Echo "Open ¶"{TargDir}:mac:libraries:BeforeBuild.prj¶" as alias"; ¶
- Echo "Make Project"; ¶
- Echo "end"; ¶
- Echo "end") | Catenate | perl :mac:RunAppleScript.pl \ No newline at end of file
+ (Echo "with timeout of 1200 seconds"; ¶
+ Echo "Tell application ¶"{CodeWarrior_IDE}¶""; ¶
+ Echo "Open ¶"{CodeWarrior_Project}¶" as alias"; ¶
+ Echo "Make Project"; ¶
+ Echo "end"; ¶
+ Echo "end") | Catenate | perl :mac:RunAppleScript.pl \ No newline at end of file