2 $! Makefile.com - builds GNU Make for VMS
4 $! P1 is non-empty if you want to link with the VAXCRTL library instead
5 $! of the shareable executable
7 $ def/nolog sys sys$library:
8 $ 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"
9 $ copy config.h-vms config.h
12 $ cfile = f$elem(n," ",filelist)
13 $ if cfile .eqs. " " then goto linkit
14 $ write sys$output "Compiling ''cfile'..."
15 $ call compileit 'cfile' 'p1'
19 $ if p1 .nes. "" then goto link_using_library
20 $ link/exe=make alloca,commands,default,dir,expand,file,function,-
21 implicit,job,main,misc,read,remake,remote-stub,rule,-
22 signame,variable,version,vmsfunctions,vmsify,vpath,-
23 glob,fnmatch,getopt,getopt1
26 $ link/exe=make alloca,commands,default,dir,expand,file,function,-
27 implicit,job,main,misc,read,remake,remote-stub,rule,-
28 signame,variable,version,vmsfunctions,vmsify,vpath,-
29 glob,fnmatch,getopt,getopt1,sys$library:vaxcrtl/lib
31 $ compileit : subroutine
32 $ cc/include=([],[.glob])/define=("allocated_variable_expand_for_file=alloc_var_expand_for_file","unlink=remove","HAVE_CONFIG_H","VMS","NO_ARCHIVES") 'p1'
34 $ endsubroutine : compileit