Changeset 1661 for trunk


Ignore:
Timestamp:
Jan 26, 2012, 1:00:12 AM (14 years ago)
Author:
Steven Levine
Message:

Rework makefiles to allow highmem suppress from command line
See NOHIGHMEM

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/makefile

    r1620 r1661  
    33
    44# Copyright (c) 1993-98 M. Kimes
    5 # Copyright (c) 2002, 2009 Steven H. Levine
     5# Copyright (c) 2002, 2012 Steven H. Levine
    66
    77# 22 May 03 SHL Correct icon dependencies
     
    4343# 04 Jul 11 GKY Add eFTE backup files (*~) to clean target
    4444# 13 Aug 11 GKY Build xqs and sym files as part of dll and all targets
    45 
    46 # Environment: see makefile_pre.mk
     45# 25 Jan 12 SHL Allow NOHIGHMEM set from enviroment
     46
     47# Environment: see makefile_pre.mk and makefile_post.mk
    4748
    4849# DEBUG - debug build if defined, release build if not defined
     
    5051# FORTIFY - enable FORTIFY heap checking if defined, omit FORITY support if not defined
    5152# USE_RC - use rc.exe if defined, use wrc.exe if not defined
     53# NOHIGHMEM - support high memory use (i.e exehdir /highmem)
    5254
    5355BASE = fm3dll
     
    8890!ifdef %FORTIFY                 # if defined in environment
    8991FORTIFY = $(%FORTIFY)           # use value from environment
     92!endif
     93
     94# Keep this code in sync with makefile_post.mk
     95!ifndef NOHIGHMEM
     96!ifdef %NOHIGHMEM
     97NOHIGHMEM=$(%NOHIGHMEM)
     98!endif
    9099!endif
    91100
     
    201210     $(BASERES).res &
    202211     $(BASERES).dll &
     212!ifndef NOHIGHMEM
    203213     loadhigh &
     214!endif
    204215     $(SYMS) &
    205216     ipf\fm3.hlp
    206      
     217
    207218syms: $(SYMS) .symbolic
    208219
     
    264275   @echo Processing: $?
    265276   -perl ..\debugtools\mapsymw.pl $?
    266    
     277
    267278$(BASE).xqs: $(BASE).map .explicit
    268279   @echo Processing: $?
    269    -mapxqs $?   
     280   -mapxqs $?
    270281
    271282$(BASERES).sym: $(BASERES).map .explicit
    272283   @echo Processing: $?
    273284   -perl ..\debugtools\mapsymw.pl $?
    274    
     285
    275286$(BASERES).xqs: $(BASERES).map .explicit
    276287   @echo Processing: $?
    277    -mapxqs $?   
     288   -mapxqs $?
    278289
    279290!else # MAKERES defined
     
    314325!endif
    315326
     327!ifndef NOHIGHMEM
    316328# Run for each dependent
    317329loadhigh: $(BASE).dll $(BASERES).dll .symbolic
    318330  @for %f in ($(BASE).dll $(BASERES).dll) do !exehdr /hi %f
     331!endif
    319332
    320333cleanobj: .symbolic
     
    331344  -del *.obj
    332345  -del *.res
    333   -del *.sym 
     346  -del *.sym
    334347  -del *.xqs
    335348  -del *~
    336  
     349
  • trunk/eas.mak

    r1624 r1661  
    11# $Id$
    22
    3 # Copyright (c) 2002, 2007 Steven H. Levine
     3# Copyright (c) 2002, 2012 Steven H. Levine
    44
    55# 16 Jun 07 GKY Convert to OpenWatcom
    66# 23 Feb 08 JBS Add support for building SYM files
    77# 04 Jul 11 GKY Make xqs files an explicit target so they will be rebuild if lost somehow.
     8# 25 Jan 12 SHL Renamae LOW -> NOHIGHMEM
    89
    910BASE=eas
    10 LOW=1
     11NOHIGHMEM=1     # Avoid system traps
    1112
    1213!include makefile_pre.mk
  • trunk/makefile_post.mk

    r1624 r1661  
    22# $Id$
    33
    4 # Copyright (c) 2002, 2009 Steven H. Levine
     4# Copyright (c) 2002, 2012 Steven H. Levine
    55
    66# 16 Aug 05 SHL Clean up
     
    1616# 21 Jun 11 GKY Make high memory builds the default resources only for exes
    1717# 04 Jul 11 GKY Make xqs files an explicit target so they will be rebuild if lost somehow.
     18# 25 Jan 12 SHL Renamae LOW -> NOHIGHMEM and allow set from enviroment
    1819
    1920!ifndef MAKERES
     
    2223# Common parameters go in .lrf
    2324# Executable specific paramters go in .def
     25# Put 32-bit data in high memoryt unless overridden
     26
     27!ifndef NOHIGHMEM
     28!ifdef %NOHIGHMEM
     29NOHIGHMEM=$(%NOHIGHMEM)
     30!endif
     31!endif
    2432
    2533$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
     
    3038  @echo.
    3139  $(RC) $(RCFLAGS2) $(BASE).res $@
    32 !ifndef LOW
    33   !exehdr /hi:3 $@
     40!ifndef NOHIGHMEM
     41  !exehdr /highmem:3 $@
    3442!endif
    3543
    36 LOW =
     44# 2012-01-25 SHL fixme to be gone - does not undefine
     45# NOHIGHMEM =
    3746
    3847$(BASE).lrf: $(__MAKEFILES__) .explicit
     
    4958$(BASE).sym: $(BASE).map .explicit
    5059   @echo Processing: $?
    51    -perl debugtools\mapsymw.pl $?   
     60   -perl debugtools\mapsymw.pl $?
    5261
    5362!else
  • trunk/makefile_pre.mk

    r1613 r1661  
    33
    44# Copyright (c) 1993-98 M. Kimes
    5 # Copyright (c) 2002, 2011 Steven H. Levine
     5# Copyright (c) 2002, 2012 Steven H. Levine
    66
    77# 03 Jan 08 SHL Switch to wrc.exe default; support USE_RC from environment
     
    1111# 06 Oct 08 SHL Pass DEBUG in CFLAGS; clean up USE_RC usage
    1212# 18 Nov 08 JBS Ticket 297: Various build improvements/corrections
    13 # 12 Jul 09 GKY Allow FM/2 to load in high memory call exehdr /hi
    1413# 13 Apr 10 SHL Drop HIMEM support
    1514# 21 Jun 11 GKY Add exceptq .xqs support
    16 # 2011-07-01 SHL sort map
     15# 07 Jan 11 SHL sort map
     16# 25 Jan 12 SHL Comments
    1717
    1818# Environment: see dll\makefile
     
    3939
    4040# Keep this code in sync with dll\makefile
    41 !ifdef DEBUG                    # if defined on wmake command line
     41!ifdef DEBUG                    # if defined on wmake command line
    4242DEBUG_OPT = DEBUG=$(DEBUG)      # set in case needed by sub-make
    4343!else
    44 !ifdef %DEBUG                  # if defined in environment
    45 DEBUG = $(%DEBUG)              # use value from environment
     44!ifdef %DEBUG                   # if defined in environment
     45DEBUG = $(%DEBUG)               # use value from environment
    4646DEBUG_OPT = DEBUG=$(DEBUG)      # set in case needed by sub-make
    4747!endif
     
    5555FORTIFY_OPT = FORTIFY=$(FORTIFY)        # set in case needed by sub-make
    5656!else
    57 !ifdef %FORTIFY                         # if defined in environment
    58 FORTIFY = $(%FORTIFY)                   # use value from environment
     57!ifdef %FORTIFY                         # if defined in environment
     58FORTIFY = $(%FORTIFY)                   # use value from environment
    5959FORTIFY_OPT = FORTIFY=$(FORTIFY)        # set in case needed by sub-make
    6060!endif
    6161!endif
    6262
    63 SYMS = $(BASE).sym              #set a target for building SYM files
     63SYMS = $(BASE).sym                      # target for building SYM files
    6464
    6565# Some flags are order dependent - see OpenWatcom docs
     
    9494
    9595# We always compile with debug info to avoid needing a full rebuild just to debug
    96 CFLAGS = -bt=os2 -mf -bm -d2 -olirs   -s -j -wx -zfp -zgp -zp4 -zq -hd
     96CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zp4 -zq -hd
    9797
    9898!ifdef WARNALL
Note: See TracChangeset for help on using the changeset viewer.