Changeset 1661 for trunk/makefile_pre.mk


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.