Changeset 719 for trunk/makefile_pre.mk


Ignore:
Timestamp:
Jul 4, 2007, 2:54:53 AM (18 years ago)
Author:
Steven Levine
Message:

Change DEBUG semantics to ifdef/ifndef

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile_pre.mk

    r714 r719  
    55# 02 Jun 07 SHL Convert to OpenWatcom
    66# 27 Jun 07 SHL Use same CFLAGS for all builds
     7# 27 Jun 07 SHL Allow DEBUG set from command line or environment
     8# 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef
    79
    810CC = wcc386
    911LINK = wlink
    1012
    11 # fixme for wrc to build working .res
    12 # fixme for wrc to not clobber bldlevel strings
     13# fixme use use wrc when wrc fixed (v1.7 maybe)
     14# wrc 1.6 is broken - does not copy resident name table
    1315
    1416!ifndef USE_WRC
     
    2022!else
    2123RC = rc
     24!endif
     25
     26# Keep this code in sync with dll\makefile
     27!ifndef DEBUG                  # if not defined on wmake command line
     28!ifdef %DEBUG                  # if defined in environment
     29DEBUG = $(%DEBUG)              # pass environment value
     30!endif
    2231!endif
    2332
     
    4655
    4756# We always compile with debug info to avoid needed a full rebuild just to debug
    48 CFLAGS =   -bt=os2 -mf -bm -d2 -olirs   -s -j -wx -zfp -zgp -zq -hd
     57CFLAGS = -bt=os2 -mf -bm -d2 -olirs   -s -j -wx -zfp -zgp -zq -hd
    4958
    50 !ifdef %DEBUG
    51 LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map debug dwarf all
    52 !else
    5359LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map
     60!ifdef DEBUG
     61LFLAGS += debug dwarf all
    5462!endif
    5563
Note: See TracChangeset for help on using the changeset viewer.