1994-01-04 21:14:04 +00:00
|
|
|
# Makefile fragment for GAS.
|
|
|
|
|
|
|
|
s = "{srcdir}"
|
|
|
|
|
|
|
|
o = :
|
|
|
|
|
|
|
|
CROSS = -d CROSS_COMPILE
|
|
|
|
|
1994-06-12 23:41:37 +00:00
|
|
|
ALL_CFLAGS = {CFLAGS} {CROSS} -d TARGET_BYTES_BIG_ENDIAN -d BFD_ASSEMBLER -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::bfd:,::extra-include,"{srcroot}"include:mpw:
|
1994-01-04 21:14:04 +00:00
|
|
|
# debug options: -mbg on -sym on
|
|
|
|
|
1994-01-07 19:22:15 +00:00
|
|
|
"{o}" \Option-f : "{s}"
|
1994-01-04 21:14:04 +00:00
|
|
|
|
|
|
|
# Default rule that puts each file into separate segment.
|
|
|
|
|
1994-01-07 19:22:15 +00:00
|
|
|
.c.o \Option-f .c
|
1994-06-12 23:41:37 +00:00
|
|
|
{CC} {DepDir}{Default}.c {ALL_CFLAGS} -s gas_{Default} -o {TargDir}{Default}.c.o
|
1994-01-04 21:14:04 +00:00
|
|
|
|
1994-02-26 21:25:10 +00:00
|
|
|
prefix = usr:local:
|
|
|
|
|
|
|
|
bindir = {prefix}bin:
|
|
|
|
|
1994-01-07 19:22:15 +00:00
|
|
|
OBJECTS = \Option-d
|
|
|
|
"{o}"app.c.o \Option-d
|
|
|
|
"{o}"as.c.o \Option-d
|
|
|
|
"{o}"atof-generic.c.o \Option-d
|
|
|
|
"{o}"bignum-copy.c.o \Option-d
|
|
|
|
"{o}"cond.c.o \Option-d
|
|
|
|
"{o}"expr.c.o \Option-d
|
|
|
|
"{o}"flonum-konst.c.o \Option-d
|
|
|
|
"{o}"flonum-copy.c.o \Option-d
|
|
|
|
"{o}"flonum-mult.c.o \Option-d
|
|
|
|
"{o}"frags.c.o \Option-d
|
|
|
|
"{o}"hash.c.o \Option-d
|
|
|
|
"{o}"hex-value.c.o \Option-d
|
|
|
|
"{o}"input-file.c.o \Option-d
|
|
|
|
"{o}"input-scrub.c.o \Option-d
|
|
|
|
"{o}"listing.c.o \Option-d
|
|
|
|
"{o}"messages.c.o \Option-d
|
|
|
|
"{o}"output-file.c.o \Option-d
|
|
|
|
"{o}"read.c.o \Option-d
|
|
|
|
"{o}"stabs.c.o \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
|
1994-01-04 21:14:04 +00:00
|
|
|
|
|
|
|
INCLUDES =
|
|
|
|
# host.h
|
|
|
|
#"{s}".h
|
|
|
|
|
1994-01-07 19:22:15 +00:00
|
|
|
all \Option-f as.new
|
1994-01-04 21:14:04 +00:00
|
|
|
|
1994-01-07 19:22:15 +00:00
|
|
|
as.new \Option-f\Option-f {OBJECTS} "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o \Option-d
|
|
|
|
::libiberty:libiberty.o \Option-d
|
|
|
|
::bfd:libbfd.o \Option-d
|
1994-01-04 21:14:04 +00:00
|
|
|
::opcodes:libopcodes.o
|
1994-01-07 19:22:15 +00:00
|
|
|
Link -d -model far -c 'MPS ' -t MPST \Option-d
|
|
|
|
{OBJECTS} \Option-d
|
|
|
|
"{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o \Option-d
|
|
|
|
::libiberty:libiberty.o \Option-d
|
|
|
|
::bfd:libbfd.o \Option-d
|
|
|
|
::opcodes:libopcodes.o \Option-d
|
|
|
|
#"{CLibraries}"CSANELib.o \Option-d
|
|
|
|
#"{CLibraries}"Math.o \Option-d
|
|
|
|
#"{CLibraries}"Complex.o \Option-d
|
|
|
|
"{CLibraries}"StdClib.o \Option-d
|
|
|
|
"{Libraries}"Stubs.o \Option-d
|
|
|
|
"{Libraries}"Runtime.o \Option-d
|
|
|
|
"{Libraries}"Interface.o \Option-d
|
|
|
|
#"{Libraries}"ToolLibs.o \Option-d
|
1994-01-04 21:14:04 +00:00
|
|
|
-o as.new
|
|
|
|
|
1994-01-07 19:22:15 +00:00
|
|
|
"{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}
|
|
|
|
"{o}"bifnum-copy.c.o \Option-f "{s}"bignum-copy.c {INCLUDES}
|
|
|
|
"{o}"cond.c.o \Option-f "{s}"cond.c {INCLUDES}
|
|
|
|
"{o}"expr.c.o \Option-f "{s}"expr.c {INCLUDES}
|
|
|
|
"{o}"flonum-konst.c.o \Option-f "{s}"flonum-konst.c {INCLUDES}
|
|
|
|
"{o}"flonum-copy.c.o \Option-f "{s}"flonum-copy.c {INCLUDES}
|
|
|
|
"{o}"flonum-mult.c.o \Option-f "{s}"flonum-mult.c {INCLUDES}
|
|
|
|
"{o}"frags.c.o \Option-f "{s}"frags.c {INCLUDES}
|
|
|
|
"{o}"hash.c.o \Option-f "{s}"hash.c {INCLUDES}
|
|
|
|
"{o}"hex-value.c.o \Option-f "{s}"hex-value.c {INCLUDES}
|
|
|
|
"{o}"input-file.c.o \Option-f "{s}"input-file.c {INCLUDES}
|
|
|
|
"{o}"input-scrub.c.o \Option-f "{s}"input-scrub.c {INCLUDES}
|
|
|
|
"{o}"listing.c.o \Option-f "{s}"listing.c {INCLUDES}
|
|
|
|
"{o}"messages.c.o \Option-f "{s}"messages.c {INCLUDES}
|
|
|
|
"{o}"output-file.c.o \Option-f "{s}"output-file.c {INCLUDES}
|
|
|
|
"{o}"read.c.o \Option-f "{s}"read.c {INCLUDES}
|
|
|
|
"{o}"subsegs.c.o \Option-f "{s}"subsegs.c {INCLUDES}
|
|
|
|
"{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}
|
1994-02-26 21:25:10 +00:00
|
|
|
|
|
|
|
install \Option-f
|
|
|
|
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
|