Do-first:
if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw"
+ keep_these_too="mpw-config.in mpw-build.in mpw-make.in ChangeLog.mpw"
else
- lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw"
+ lose_these_too="mpw-config.in mpw-build.in mpw-make.in ChangeLog.mpw"
fi
if ( echo $* | grep keep\-gm > /dev/null ) ; then
+Tue Jan 25 10:49:31 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * mpw-config.in (varargs.h, sys/*.h): Don't create when
+ configuring.
+ (host.h): Create with forward-include.
+ * mpw-make.in (CFLAGS): Add -w flag.
+ * mpw-build.in: New file, build script fragment.
+
Fri Jan 7 11:18:48 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in: Replace 8-bit chars with their names.
--- /dev/null
+# Script fragment to build MPW GAS.
+
+Set BuildTarget "none"
+
+Loop
+ Break If {#} == 0
+ If "{1}" =~ /--srcdir/
+ Set srcdir "{2}"
+ Shift 1
+ Else If "{1}" =~ /--topdir/
+ Set topsrcdir "{2}"
+ Shift 1
+ Else If "{1}" =~ /--prefix/
+ Set prefix "{2}"
+ Shift 1
+ Else If "{1}" =~ /-v/
+ Set verify 1
+ Set verifystr "-v"
+ Shift 1
+ Else
+ If "{BuildTarget}" =~ /none/
+ Set BuildTarget "{1}"
+ Else
+ Echo Only one build target allowed, ignoring "{1}"
+ End If
+ End If
+ Shift 1
+End Loop
+
+Set libsubdir "{libdir}"gcc-lib:"{target_canonical}":"{version}":
+
+If "{BuildTarget}" =~ /all/
+ Echo "Set Echo 1" >all.makeout
+ Make >>all.makeout
+ all.makeout
+ Delete all.makeout
+Else If "{BuildTarget}" =~ /install/
+ If "`Exists "{prefix}"`" == ""
+ Echo "{prefix}" does not exist, cannot install anything
+ Exit 1
+ End If
+ If "`Exists "{bindir}"`" == ""
+ NewFolder "{bindir}"
+ End If
+ Duplicate -y :as.new "{bindir}"as
+Else
+ Echo {BuildTarget} not a valid build target
+End If
# Configuration fragment for GAS.
-DupIfChange {srcdir}config:ho-mpw.h host.h
-
-echo '/* empty */' >'sys/file.h'
-echo '/* empty */' >'sys/resource.h'
-echo '/* empty */' >'sys/stat.h'
-echo '#include <time.h>' >'sys/time.h'
-echo '#include <types.h>' >'sys/types.h'
-
-Echo "#ifndef __va_list__" >varargs.h
-Echo "#define __va_list__" >>varargs.h
-Echo "typedef char *va_list;" >>varargs.h
-Echo "#endif" >>varargs.h
-Echo "#define va_dcl int va_alist;" >>varargs.h
-Echo "#define va_start(list) list = (char *) &va_alist" >>varargs.h
-Echo "#define va_end(list)" >>varargs.h
-Echo "#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]" >>varargs.h
+forward-include {srcdir}config:ho-mpw.h host.h
CROSS = -d CROSS_COMPILE
-CFLAGS = -mc68020 -mc68881 -model far {CROSS} -d MPW -d TARGET_BYTES_BIG_ENDIAN -d BFD_ASSEMBLER -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::bfd:
+CFLAGS = -w -mc68020 -mc68881 -model far {CROSS} -d MPW -d TARGET_BYTES_BIG_ENDIAN -d BFD_ASSEMBLER -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::bfd:
# debug options: -mbg on -sym on
"{o}" \Option-f : "{s}"