diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-01-25 18:59:27 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-01-25 18:59:27 +0000 |
commit | 6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb (patch) | |
tree | a953d7b4faf78aff1e8d30947908cd5567fb74d5 | |
parent | 7c805df0529c50b5022ae1c3cbf2e7313a975061 (diff) | |
download | gdb-6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb.zip gdb-6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb.tar.gz gdb-6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb.tar.bz2 |
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.
-rw-r--r-- | gas/.Sanitize | 4 | ||||
-rw-r--r-- | gas/ChangeLog.mpw | 8 | ||||
-rw-r--r-- | gas/mpw-build.in | 48 | ||||
-rw-r--r-- | gas/mpw-config.in | 17 | ||||
-rw-r--r-- | gas/mpw-make.in | 2 |
5 files changed, 60 insertions, 19 deletions
diff --git a/gas/.Sanitize b/gas/.Sanitize index 930d33c..dc3cfcf 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 c4e9a52..62d0f76 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 0000000..f35c93d --- /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 d598d17..1467c49 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 <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 diff --git a/gas/mpw-make.in b/gas/mpw-make.in index 1986507..3eb7df7 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}" |