Changeset 503 for trunk/src/gmake/makefile.com
- Timestamp:
- Sep 15, 2006, 7:09:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/makefile.com
r53 r503 13 13 $! hb 14 14 $! But don't ask Martin Zinser about the lines, I added/changed. 15 $! In case of an error do some cleanup 15 $! In case of an error do some cleanup 16 16 $ on error then $ goto cleanup 17 17 $! in case somebody set up her/his own symbol for cc … … 34 34 $ ccopt = "" 35 35 $ else 36 $ ccopt = "/decc/prefix= all"36 $ ccopt = "/decc/prefix=(all,except=(globfree,glob))" 37 37 $ if f$trnlnm("SYS").eqs."" 38 38 $ then … … 69 69 $ filelist = "alloca ar arscan commands default dir expand file function " + - 70 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 "71 "signame variable version vmsfunctions vmsify vpath " + - 72 "[.glob]glob [.glob]fnmatch getopt1 getopt strcache" 73 73 $ copy config.h-vms config.h 74 74 $ n=0 … … 96 96 $ exit 97 97 $! 98 $!----------------------------------------------------------------------------- -98 $!----------------------------------------------------------------------------- 99 99 $! 100 100 $! Check if this is a define relating to the properties of the C/C++ … … 102 102 $! 103 103 $CHECK_CC_QUAL: 104 $ open/write tmpc 'tc 104 $ open/write tmpc 'tc 105 105 $ ccqual = "/warn=(disable=questcompare)" 106 106 $ write tmpc "#include <stdio.h>" 107 107 $ write tmpc "unsigned int i = 1;" 108 108 $ write tmpc "int main(){" 109 $ write tmpc "if (i < 0){printf(""Mission impossible\n"");}}" 109 $ write tmpc "if (i < 0){printf(""Mission impossible\n"");}}" 110 110 $ close tmpc 111 111 $ gosub cc_qual_check 112 112 $ return 113 113 $! 114 $!----------------------------------------------------------------------------- -114 $!----------------------------------------------------------------------------- 115 115 $! 116 116 $! Check for properties of C/C++ compiler … … 123 123 $ set message/fac/ident/sever/text 124 124 $ delete/nolog 'tmpnam'.*;* 125 $ if cc_qual then ccopt = ccopt + ccqual 125 $ if cc_qual then ccopt = ccopt + ccqual 126 126 $ return 127 $!----------------------------------------------------------------------------- -127 $!----------------------------------------------------------------------------- 128 128 $! 129 129 $ compileit : subroutine … … 132 132 $ if ploc .lt. f$length(p1) then filnam=f$extract(ploc+1,100,p1) 133 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") - 134 $ cc'ccopt'/include=([],[.glob]) - 135 /define=("allocated_variable_expand_for_file=alloc_var_expand_for_file","unlink=remove","HAVE_CONFIG_H","VMS") - 136 136 'p1' 137 137 $ exit 138 138 $ endsubroutine : compileit 139 $! 140 $!----------------------------------------------------------------------------- 141 $!Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 142 $!2006 Free Software Foundation, Inc. 143 $!This file is part of GNU Make. 144 $! 145 $!GNU Make is free software; you can redistribute it and/or modify it under the 146 $!terms of the GNU General Public License as published by the Free Software 147 $!Foundation; either version 2, or (at your option) any later version. 148 $! 149 $!GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY 150 $!WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 151 $!A PARTICULAR PURPOSE. See the GNU General Public License for more details. 152 $! 153 $!You should have received a copy of the GNU General Public License along with 154 $!GNU Make; see the file COPYING. If not, write to the Free Software 155 $!Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Note:
See TracChangeset
for help on using the changeset viewer.