aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-make.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-02-26 21:25:10 +0000
committerStan Shebs <shebs@codesourcery.com>1994-02-26 21:25:10 +0000
commitedd9075caff5c19967ee23c38b8deef4c65e7969 (patch)
tree27230334255e8f67120ab24467fc71aab9db0d53 /gas/mpw-make.in
parentb495c3144236b906e6afed82b2507449bd962038 (diff)
downloadgdb-edd9075caff5c19967ee23c38b8deef4c65e7969.zip
gdb-edd9075caff5c19967ee23c38b8deef4c65e7969.tar.gz
gdb-edd9075caff5c19967ee23c38b8deef4c65e7969.tar.bz2
Sat Feb 26 13:23:06 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (install): Moved here from mpw-build.in. * mpw-build.in: Removed, functionality in mpw-make.in
Diffstat (limited to 'gas/mpw-make.in')
-rw-r--r--gas/mpw-make.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/mpw-make.in b/gas/mpw-make.in
index b22cddc..3a5f4b6 100644
--- a/gas/mpw-make.in
+++ b/gas/mpw-make.in
@@ -18,6 +18,10 @@ CFLAGS = -w -mc68020 -mc68881 -model far {CROSS} -d MPW -d TARGET_BYTES_BIG_ENDI
.c.o \Option-f .c
{C} {DepDir}{Default}.c {CFLAGS} {SymOptions} -s gas-{Default} -o {TargDir}{Default}.c.o
+prefix = usr:local:
+
+bindir = {prefix}bin:
+
OBJECTS = \Option-d
"{o}"app.c.o \Option-d
"{o}"as.c.o \Option-d
@@ -93,3 +97,13 @@ as.new \Option-f\Option-f {OBJECTS} "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"a
"{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}
+
+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