* mpw-config.in (TDEFINES): Put empty definition into
authorStan Shebs <shebs@codesourcery.com>
Sat, 18 Mar 1995 00:50:51 +0000 (00:50 +0000)
committerStan Shebs <shebs@codesourcery.com>
Sat, 18 Mar 1995 00:50:51 +0000 (00:50 +0000)
makefile fragment.
* mpw-make.in (xmalloc.c.o): Remove.
(as.new): Depend on Version.r.
(Version.r): Generate from version info.

gas/ChangeLog.mpw
gas/mpw-config.in
gas/mpw-make.in

index a0840f7100e22cf0eb32e422fc60925219325acb..b6fe16dab8f8b01411910123d684851b610d4509 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar 17 16:48:12 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * mpw-config.in (TDEFINES): Put empty definition into
+       makefile fragment.
+       * mpw-make.in (xmalloc.c.o): Remove.
+       (as.new): Depend on Version.r.
+       (Version.r): Generate from version info.
+
 Thu Jan 12 18:03:03 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
 
        * mpw-make.in: Delete references to hex-value.c.
index a6819f6d05e3665c9ece2089eee575453b3de1f1..4005dc3c408f99559fe7c7a2dc560a1307eed5bc 100644 (file)
@@ -2,11 +2,11 @@
 
 Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
 
-# The following works for many configurations ...
+# The following works for many configurations, though not all.
 
 Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
 
-# ... but not all.
+Set TDEFINES ""
 
 If "{target_canonical}" =~ /m68k-apple-macos/
        Set obj_format "coff"
@@ -41,8 +41,9 @@ Else
        forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
 End If
 
-Echo '# From mpw-config.in'       > "{o}"mk.tmp
+Echo '# From mpw-config.in'      > "{o}"mk.tmp
 
 Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
+Echo "TDEFINES = " {TDEFINES}  >> "{o}"mk.tmp
 
-Echo '# End from mpw-config.in'  >> "{o}"mk.tmp
+Echo '# End from mpw-config.in'        >> "{o}"mk.tmp
index fc9a2b819ba09e3102fac63d232009e1ccf13fc0..7dc57895e5383bb26ee149159096e8f733eff88f 100644 (file)
@@ -42,8 +42,8 @@ OBJECTS = \Option-d
                "{o}"subsegs.c.o \Option-d
                "{o}"symbols.c.o \Option-d
                "{o}"write.c.o \Option-d
-               "{o}"ecoff.c.o \Option-d
-               "{o}"xmalloc.c.o \Option-d
+               "{o}"ecoff.c.o
+
 
 TARG_OBJECTS =  "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o
 
@@ -59,10 +59,10 @@ CLIBS = ::libiberty:libiberty.o     ::bfd:libbfd.o ::opcodes:libopcodes.o
 
 all \Option-f "{o}"config.h as.new
 
-as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
+as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS} "{o}"Version.r
+       Rez -rd -o as.new "{o}"Version.r -append
        Link {LDFLAGS} -o as.new {OBJECTS} {TARG_OBJECTS} {CLIBS} {EXTRALIBS}
 
-
 "{o}"config.h \Option-f "{o}"config-stamp
 
 "{o}"config-stamp \Option-f Makefile
@@ -104,10 +104,42 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
        Echo '#define HAVE_ERRNO_H'                     >> "{o}"config.new
        Echo '#define HAVE_STDARG_H'                    >> "{o}"config.new
        Echo '#define BFD_ASSEMBLER'                    >> "{o}"config.new
-    Echo '#endif /* GAS_VERSION */'                    >> "{o}"config.new
+       Echo '#endif /* GAS_VERSION */'                 >> "{o}"config.new
        MoveIfChange "{o}"config.new "{o}"config.h
        Echo ' ' >"{o}"config-stamp
 
+"{o}"Version.r \Option-f "{o}"version-stamp
+
+"{o}"version-stamp \Option-f Makefile
+       Delete -i -y "{o}"version.new "{o}"version-stamp
+       Set major 0
+       Set minor 0
+       Set release 0
+       Echo '/* Version resources. */'                  > "{o}"version.new
+       Echo '#include "SysTypes.r"'                    >> "{o}"version.new
+       Echo ''                                         >> "{o}"version.new
+       Echo "resource 'vers' (1) " `open-brace`        >> "{o}"version.new
+       Echo "  {major},"                               >> "{o}"version.new
+       Echo "  {minor},"                               >> "{o}"version.new
+       Echo "  {release},"                             >> "{o}"version.new
+       Echo '  0,'                                     >> "{o}"version.new
+       Echo '  verUs,'                                 >> "{o}"version.new
+       Echo '  "{VERSION}",'                           >> "{o}"version.new
+       Echo '  "{VERSION} (c) 1986-95 FSF, Inc. "'     >> "{o}"version.new
+       Echo '};'                                       >> "{o}"version.new
+       Echo ''                                         >> "{o}"version.new
+       Echo "resource 'vers' (2, purgeable) " `open-brace`  >> "{o}"version.new
+       Echo "  {major},"                               >> "{o}"version.new
+       Echo "  {minor},"                               >> "{o}"version.new
+       Echo "  {release},"                             >> "{o}"version.new
+       Echo '  0,'                                     >> "{o}"version.new
+       Echo '  verUs,'                                 >> "{o}"version.new
+       Echo '  "{VERSION}",'                           >> "{o}"version.new
+       Echo '  "GNU AS for MPW"'                       >> "{o}"version.new
+       Echo '};'                                       >> "{o}"version.new
+       MoveIfChange "{o}"version.new "{o}"Version.r
+       Echo ' ' > "{o}"version-stamp
+
 "{o}"app.c.o \Option-f "{s}"app.c {INCLUDES}
 "{o}"as.c.o \Option-f "{s}"as.c {INCLUDES}
 "{o}"atof-generic.c.o \Option-f "{s}"atof-generic.c {INCLUDES}
@@ -129,7 +161,6 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
 "{o}"symbols.c.o \Option-f "{s}"symbols.c {INCLUDES}
 "{o}"write.c.o \Option-f "{s}"write.c {INCLUDES}
 "{o}"ecoff.c.o \Option-f "{s}"ecoff.c {INCLUDES}
-"{o}"xmalloc.c.o \Option-f "{s}"xmalloc.c {INCLUDES}
 
 "{o}"targ-cpu.c.o \Option-f "{o}"targ-cpu.c {INCLUDES}
 "{o}"obj-format.c.o \Option-f "{o}"obj-format.c {INCLUDES}