Changeset 3140 for trunk/src/kmk/makefile.com
- Timestamp:
- Mar 14, 2018, 10:28:10 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
-
Property svn:mergeinfo
set to
/vendor/gnumake/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/kmk/makefile.com
r2591 r3140 2 2 $! Makefile.com - builds GNU Make for VMS 3 3 $! 4 $! P1 is non-empty if you want to link with the VAXCRTL library instead 5 $! of the shareable executable 4 $! P1 = LIST will provide compiler listings. 6 5 $! P2 = DEBUG will build an image with debug information 7 6 $! P3 = WALL will enable all warning messages (some are suppressed since … … 51 50 $ endif 52 51 $! 52 $! 53 $ if (p1 .eqs. "LIST") 54 $ then 55 $ ccopt = ccopt + "/list/show=(expan,inclu)" 56 $ endif 57 $! 53 58 $! Should we build a debug image 54 59 $! … … 68 73 $ endif 69 74 $ filelist = "alloca ar arscan commands default dir expand file function " + - 70 "hash implicit job main misc read remake remote-stub rule " + - 71 "signame variable version vmsfunctions vmsify vpath " + - 72 "[.glob]glob [.glob]fnmatch getopt1 getopt strcache" 75 "guile hash implicit job load main misc read remake " + - 76 "remote-stub rule output signame variable version " + - 77 "vmsfunctions vmsify vpath vms_progname vms_exit " + - 78 "vms_export_symbol [.glob]glob [.glob]fnmatch getopt1 " + - 79 "getopt strcache" 80 $! 73 81 $ copy config.h-vms config.h 74 82 $ n=0 … … 78 86 $ if cfile .eqs. " " then goto linkit 79 87 $ write sys$output "Compiling ''cfile'..." 80 $ call compileit 'cfile' 'p1'88 $ call compileit 'cfile' 81 89 $ n = n + 1 82 90 $ goto loop 83 91 $ linkit: 84 92 $ close optf 85 $ if p1 .nes. "" then goto link_using_library86 93 $ link/exe=make make.opt/opt'lopt 87 94 $ goto cleanup 88 $89 $ link_using_library:90 $ link/exe=make make.opt/opt,sys$library:vaxcrtl/lib'lopt91 95 $ 92 96 $ cleanup: … … 129 133 $ compileit : subroutine 130 134 $ ploc = f$locate("]",p1) 131 $ filnam = p1 132 $ if ploc .lt. f$length(p1) then filnam=f$extract(ploc+1,100,p1) 133 $ write optf "''filnam'" 134 $ cc'ccopt'/include=([],[.glob]) - 135 /define=("allocated_variable_expand_for_file=alloc_var_expand_for_file","unlink=remove","HAVE_CONFIG_H","VMS") - 135 $! filnam = p1 136 $ if ploc .lt. f$length(p1) 137 $ then 138 $ objdir = f$extract(0, ploc+1, p1) 139 $ write optf p1 140 $ else 141 $ objdir := [] 142 $ write optf objdir+p1 143 $ endif 144 $ cc'ccopt'/nested=none/include=([],[.glob])/obj='objdir' - 145 /define=("allocated_variable_expand_for_file=alloc_var_expand_for_file",- 146 "unlink=remove","HAVE_CONFIG_H","VMS") - 136 147 'p1' 137 148 $ exit … … 139 150 $! 140 151 $!----------------------------------------------------------------------------- 141 $!Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 142 $!2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 152 $!Copyright (C) 1996-2016 Free Software Foundation, Inc. 143 153 $!This file is part of GNU Make. 144 154 $!
Note:
See TracChangeset
for help on using the changeset viewer.