From 9e443adaf679b071fb3319cfc3259e322dcb6e57 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 20 Mar 1996 14:57:41 +0000 Subject: Tue Mar 19 20:21:34 1996 Roland McGrath Merged VMS port from Klaus Kaempf . * make.h (PARAMS): New macro. * config.h-vms: New file. * makefile.com: New file. * makefile.vms: New file. * readme.vms: New file. * vmsdir.h: New file. * vmsfunctions.c: New file. * vmsify.c: New file. * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr. * ar.c: Added prototypes and changes for VMS. * commands.c: Likewise. * commands.h: Likewise. * default.c: Likewise. * dep.h: Likewise. * dir.c: Likewise. * expand.c: Likewise. * file.c: Likewise. * function.c: Likewise. * implicit.c: Likewise. * job.c: Likewise. * job.h: Likewise. * main.c: Likewise. * make.h: Likewise. * misc.c: Likewise. * read.c: Likewise. * remake.c: Likewise. * remote-stub.c: Likewise. * rule.c: Likewise. * rule.h: Likewise. * variable.c: Likewise. * variable.h: Likewise. * vpath.c: Likewise. * compatMakefile (srcs): Rename file.h to filedef.h. --- makefile.com | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 makefile.com (limited to 'makefile.com') diff --git a/makefile.com b/makefile.com new file mode 100644 index 0000000..cba8fda --- /dev/null +++ b/makefile.com @@ -0,0 +1,34 @@ +$! +$! 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 +$! +$ def/nolog sys sys$library: +$ filelist = "alloca 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 getopt getopt1" +$ copy config.h-vms config.h +$ n=0 +$ loop: +$ cfile = f$elem(n," ",filelist) +$ if cfile .eqs. " " then goto linkit +$ write sys$output "Compiling ''cfile'..." +$ call compileit 'cfile' 'p1' +$ n = n + 1 +$ goto loop +$ linkit: +$ if p1 .nes. "" then goto link_using_library +$ link/exe=make alloca,commands,default,dir,expand,file,function,- + implicit,job,main,misc,read,remake,remote-stub,rule,- + signame,variable,version,vmsfunctions,vmsify,vpath,- + glob,fnmatch,getopt,getopt1 +$ exit +$ link_using_library: +$ link/exe=make alloca,commands,default,dir,expand,file,function,- + implicit,job,main,misc,read,remake,remote-stub,rule,- + signame,variable,version,vmsfunctions,vmsfiy,vpath,- + glob,fnmatch,getopt,getopt1,sys$library:vaxcrtl/lib +$! +$ compileit : subroutine +$ cc/include=([],[.glob])/define=("allocated_variable_expand_for_file=alloc_var_expand_for_file","unlink=remove","HAVE_CONFIG_H","VMS","NO_ARCHIVES") 'p1' +$ exit +$ endsubroutine : compileit -- cgit v1.2.3