From c69d4c95bf2027252e13e4dec3fb2dcfd10fc4e7 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 21 Jul 1999 16:06:18 +0000 Subject: * Installed VMS fixes. --- makefile.com | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'makefile.com') 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) -- cgit v1.2.3