diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-02-28 00:15:29 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-02-28 00:15:29 +0000 |
commit | aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace (patch) | |
tree | 251e526697b35fc3b015707a749caa1e69710baf /mpw-configure | |
parent | d63840d0163e42f202f4f1bdfce353a7b3fbbdda (diff) | |
download | gdb-aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace.zip gdb-aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace.tar.gz gdb-aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace.tar.bz2 |
Sun Feb 27 16:05:15 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-configure (prefix, mpw_prefix): Handle it.
(ARCHDEFS): Add to makefile editing.
(TDEPFILES, TM_FILE, XDEPFILES, XM_FILE, NAT_FILE): Add to
makefile if defined.
(mpw-edit-prefix): Use during makefile editing.
* mpw-config.in (mmalloc, readline): Don't configure.
* mpw-build.in (thisscript): Rename to ThisScript.
Use mpw-build instead of BuildProgram everywhere.
(mmalloc, readline): Don't build.
* mpw-README: New file, basic documentation about the MPW port.
Diffstat (limited to 'mpw-configure')
-rw-r--r-- | mpw-configure | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/mpw-configure b/mpw-configure index 2875247..ddac26e 100644 --- a/mpw-configure +++ b/mpw-configure @@ -6,7 +6,7 @@ Set savedir "`Directory`" #Set Echo 1 -Set thisscript "{0}" +Set ThisScript "{0}" Set srcroot "--------" @@ -14,10 +14,14 @@ Set srcdir ":" Set objdir ":" +Set prefix ":" + Set hostalias "m68k-apple-mpw" Set targetalias {hostalias} +Set prefix "{Boot}"Cygnus:latest: + Set verify 0 Set verifystr "" @@ -80,14 +84,32 @@ If "`Exists "{srcdir}"mpw-make.in`" != "" Echo "srcroot = " {srcroot} >> "{objdir}"Makefile.tem Echo "topsrcdir = " {srcroot} >> "{objdir}"Makefile.tem Echo "srcdir = " {srcdir} >> "{objdir}"Makefile.tem + Echo "mpw_prefix = " {prefix} >> "{objdir}"Makefile.tem Echo "target_canonical = " {target_canonical} >> "{objdir}"Makefile.tem Echo "mdname = " {mdname} >> "{objdir}"Makefile.tem Echo "EMUL = " {emulname} >> "{objdir}"Makefile.tem + Echo "ARCHDEFS = -d" {archname} >> "{objdir}"Makefile.tem + If "{tdepfiles}" != "" + Echo "TDEPFILES = " {tdepfiles} >> "{objdir}"Makefile.tem + End If + If "{tm_file}" != "" + Echo "TM_FILE = " {tm_file} >> "{objdir}"Makefile.tem + End If + If "{xdepfiles}" != "" + Echo "XDEPFILES = " {xdepfiles} >> "{objdir}"Makefile.tem + End If + If "{xm_file}" != "" + Echo "XM_FILE = " {xm_file} >> "{objdir}"Makefile.tem + End If + If "{nat_file}" != "" + Echo "NAT_FILE = " {nat_file} >> "{objdir}"Makefile.tem + End If Echo "host_makefile_frag = " >> "{objdir}"Makefile.tem Echo "target_makefile_frag = " >> "{objdir}"Makefile.tem mpw-7to8 "{srcroot}"config:mpw-mh-mpw >>"{objdir}"Makefile.tem mpw-7to8 "{srcdir}"mpw-make.in >>"{objdir}"Makefile.tem - MoveIfChange "{objdir}"Makefile.tem "{objdir}"Makefile + mpw-edit-prefix "{objdir}"Makefile.tem >"{objdir}"Makefile.tem2 + MoveIfChange "{objdir}"Makefile.tem2 "{objdir}"Makefile If {verify} == 1 Echo Created Makefile in "`Directory`" End If @@ -97,11 +119,14 @@ If "`Exists "{srcdir}"mpw-build.in`" != "" Echo "Set srcroot " {srcroot} > "{objdir}"mpw-build.tem Echo "Set srcdir " {srcdir} >> "{objdir}"mpw-build.tem Echo "Set target_canonical " {target_canonical} >> "{objdir}"mpw-build.tem + Echo "Set prefix " {prefix} >> "{objdir}"mpw-build.tem mpw-7to8 "{srcdir}"mpw-build.in >>"{objdir}"mpw-build.tem MoveIfChange "{objdir}"mpw-build.tem "{objdir}"mpw-build If {verify} == 1 Echo Created mpw-build in "`Directory`" End If +Else + Echo '::mpw-build {1}' >"{objdir}"mpw-build End If For subdir In {configdirs} @@ -117,7 +142,7 @@ For subdir In {configdirs} NewFolder "{objdir}{subdir}" End If SetDirectory "{objdir}{subdir}:" - "{thisscript}" --target "{target_canonical}" --srcdir "{srcdir}{subdir}:" --srcroot "{srcroot}" {verifystr} + "{ThisScript}" --target "{target_canonical}" --srcdir "{srcdir}{subdir}:" --srcroot "{srcroot}" --prefix "{prefix}" {verifystr} SetDirectory "{savedir}" End For |