summaryrefslogtreecommitdiff
path: root/makefile.com
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-21 16:06:18 +0000
committerPaul Smith <psmith@gnu.org>1999-07-21 16:06:18 +0000
commitc69d4c95bf2027252e13e4dec3fb2dcfd10fc4e7 (patch)
treed27151a5249aad92d389f8da736210d33ee4ddc4 /makefile.com
parent588da9812e055fbceb900c350ab406f97eccbf37 (diff)
downloadgunmake-c69d4c95bf2027252e13e4dec3fb2dcfd10fc4e7.tar.gz
* Installed VMS fixes.
Diffstat (limited to 'makefile.com')
-rw-r--r--makefile.com25
1 files changed, 18 insertions, 7 deletions
diff --git a/makefile.com b/makefile.com
index b7bb65c..f180df2 100644
--- a/makefile.com
+++ b/makefile.com
@@ -3,9 +3,10 @@ $! Makefile.com - builds GNU Make for VMS
$!
$! P1 is non-empty if you want to link with the VAXCRTL library instead
$! of the shareable executable
+$! P2 = DEBUG will build an image with debug information
$!
-$! In case of problems with the install you might contact me at
-$! zinser@decus.decus.de (preferred) or eurmpz@eur.sas.com
+$! In case of problems with the install you might contact me at
+$! zinser@decus.decus.de (preferred) or martin_zinser@exchange.de
$!
$! Look for the compiler used
$!
@@ -18,8 +19,8 @@ $ else
$ ccopt = "/decc/prefix=all"
$ if f$trnlnm("SYS").eqs.""
$ then
-$ if f$trnlnm("DECC$LIBRARY_INCLUDE").nes.""
-$ then
+$ if f$trnlnm("DECC$LIBRARY_INCLUDE").nes.""
+$ then
$ define sys decc$library_include:
$ else
$ if f$search("SYS$COMMON:[DECC$LIB.REFERENCE]DECC$RTLDEF.DIR").nes."" -
@@ -27,10 +28,20 @@ $ if f$search("SYS$COMMON:[DECC$LIB.REFERENCE]DECC$RTLDEF.DIR").nes."" -
$ if f$search("SYS$COMMON:[DECC$LIB.REFERENCE]SYS$STARLET_C.DIR").nes."" -
then lval = lval+"SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C],"
$ lval=lval+"SYS$LIBRARY:"
-$ define sys 'lval
+$ define sys 'lval
$ endif
$ endif
$ endif
+$!
+$! Should we build a debug image
+$!
+$ if (p2.eqs."DEBUG")
+$ then
+$ ccopt = ccopt + "/noopt/debug"
+$ lopt = "/debug"
+$ else
+$ lopt = ""
+$ endif
$ filelist = "alloca ar arscan commands default dir expand file function implicit job main misc read remake remote-stub rule signame variable version vmsfunctions vmsify vpath [.glob]glob [.glob]fnmatch getopt1 getopt"
$ copy config.h-vms config.h
$ n=0
@@ -45,10 +56,10 @@ $ goto loop
$ linkit:
$ close optf
$ if p1 .nes. "" then goto link_using_library
-$ link/exe=make make.opt/opt
+$ link/exe=make make.opt/opt'lopt
$ exit
$ link_using_library:
-$ link/exe=make make.opt/opt,sys$library:vaxcrtl/lib
+$ link/exe=make make.opt/opt,sys$library:vaxcrtl/lib'lopt
$!
$ compileit : subroutine
$ ploc = f$locate("]",p1)