Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[make.git] / makefile.com
blob0bdbec16039f4cf6e59d69b752753094aff9e9b1
1 $!
2 $! Makefile.com - builds GNU Make for VMS
3 $!
4 $! P1 is non-empty if you want to link with the VAXCRTL library instead
5 $!    of the shareable executable
6 $!
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
10 $ n=0
11 $ loop:
12 $ cfile = f$elem(n," ",filelist)
13 $ if cfile .eqs. " " then goto linkit
14 $ write sys$output "Compiling ''cfile'..."
15 $ call compileit 'cfile' 'p1'
16 $ n = n + 1
17 $ goto loop
18 $ linkit:
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
24 $ exit
25 $ link_using_library:
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'
33 $ exit
34 $ endsubroutine : compileit