Tue Jan 25 10:49:31 1994 Stan Shebs (shebs@andros.cygnus.com)
authorStan Shebs <shebs@codesourcery.com>
Tue, 25 Jan 1994 18:59:27 +0000 (18:59 +0000)
committerStan Shebs <shebs@codesourcery.com>
Tue, 25 Jan 1994 18:59:27 +0000 (18:59 +0000)
* 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
gas/ChangeLog.mpw
gas/mpw-build.in [new file with mode: 0644]
gas/mpw-config.in
gas/mpw-make.in

index 930d33ce3980d1f81a360bfb52400bc610c86e88..dc3cfcf0ad18597ace5a0c35b439c5f7f3becb77 100644 (file)
@@ -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
index c4e9a5228e0a43ec1e777064ee2f2adcd939369a..62d0f76258ccacebaa759f52193de40d733880ce 100644 (file)
@@ -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 (file)
index 0000000..f35c93d
--- /dev/null
@@ -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
index d598d17229dbdd5e93268b6cda8d5618d8e987c5..1467c49afa98abc7684f59c064c6c963a6567972 100644 (file)
@@ -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 
index 19865074caf75cb2d2c4d1318aa36f7351ae58bb..3eb7df7295577507d8c202a20666c6d4865c0038 100644 (file)
@@ -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}"