Ignore:
Timestamp:
Mar 14, 2018, 10:28:10 PM (7 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

  • trunk/src/kmk/makefile.com

    r2591 r3140  
    22$! Makefile.com - builds GNU Make for VMS
    33$!
    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.
    65$! P2 = DEBUG will build an image with debug information
    76$! P3 = WALL will enable all warning messages (some are suppressed since
     
    5150$ endif
    5251$!
     52$!
     53$ if (p1 .eqs. "LIST")
     54$ then
     55$   ccopt = ccopt + "/list/show=(expan,inclu)"
     56$ endif
     57$!
    5358$! Should we build a debug image
    5459$!
     
    6873$ endif
    6974$ 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$!
    7381$ copy config.h-vms config.h
    7482$ n=0
     
    7886$ if cfile .eqs. " " then goto linkit
    7987$ write sys$output "Compiling ''cfile'..."
    80 $ call compileit 'cfile' 'p1'
     88$ call compileit 'cfile'
    8189$ n = n + 1
    8290$ goto loop
    8391$ linkit:
    8492$ close optf
    85 $ if p1 .nes. "" then goto link_using_library
    8693$ link/exe=make make.opt/opt'lopt
    8794$ goto cleanup
    88 $
    89 $ link_using_library:
    90 $ link/exe=make make.opt/opt,sys$library:vaxcrtl/lib'lopt
    9195$
    9296$ cleanup:
     
    129133$ compileit : subroutine
    130134$ 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") -
    136147  'p1'
    137148$ exit
     
    139150$!
    140151$!-----------------------------------------------------------------------------
    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.
    143153$!This file is part of GNU Make.
    144154$!
Note: See TracChangeset for help on using the changeset viewer.