From 6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 25 Jan 1994 18:59:27 +0000 Subject: [PATCH] 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. --- gas/.Sanitize | 4 ++-- gas/ChangeLog.mpw | 8 ++++++++ gas/mpw-build.in | 48 +++++++++++++++++++++++++++++++++++++++++++++++ gas/mpw-config.in | 17 +---------------- gas/mpw-make.in | 2 +- 5 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 gas/mpw-build.in diff --git a/gas/.Sanitize b/gas/.Sanitize index 930d33ce398..dc3cfcf0ad1 100644 --- a/gas/.Sanitize +++ b/gas/.Sanitize @@ -16,9 +16,9 @@ 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 diff --git a/gas/ChangeLog.mpw b/gas/ChangeLog.mpw index c4e9a5228e0..62d0f76258c 100644 --- a/gas/ChangeLog.mpw +++ b/gas/ChangeLog.mpw @@ -1,3 +1,11 @@ +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. diff --git a/gas/mpw-build.in b/gas/mpw-build.in new file mode 100644 index 00000000000..f35c93d10c8 --- /dev/null +++ b/gas/mpw-build.in @@ -0,0 +1,48 @@ +# 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 diff --git a/gas/mpw-config.in b/gas/mpw-config.in index d598d17229d..1467c49afa9 100644 --- a/gas/mpw-config.in +++ b/gas/mpw-config.in @@ -1,18 +1,3 @@ # 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 ' >'sys/time.h' -echo '#include ' >'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 diff --git a/gas/mpw-make.in b/gas/mpw-make.in index 19865074caf..3eb7df72955 100644 --- a/gas/mpw-make.in +++ b/gas/mpw-make.in @@ -8,7 +8,7 @@ C = C -d MPW_C 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}" -- 2.30.2