Changeset 719 for trunk/dll


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

Change DEBUG semantics to ifdef/ifndef

Location:
trunk/dll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/internal/makefile

    r716 r719  
    3131CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zq -hd
    3232
    33 # fixme
    34 #LFLAGS = /EXEPACK:2 /MAP /PMTYPE:VIO
    35 
    3633all: $(BASE).exe .symbolic
    3734
     
    4845   @%write $^@ option cache
    4946   @%write $^@ option caseexact
    50 !if $(DEBUG)
     47!ifdef DEBUG
    5148    @%write $^@ debug dwarf all
    5249!endif
  • trunk/dll/makefile

    r706 r719  
    2525# 12 May 07 SHL Drop obsolete macros
    2626# 02 Jun 07 SHL Convert to OpenWatcom
    27 
    28 # Warning - may still be missing some *.h dependencies
     27# 27 Jun 07 SHL Allow DEBUG set from command line or environment
     28# 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef
    2929
    3030# Environment:
    3131
    32 #   DEBUG       0 = release build, 1 = debug build
    33 #   WARN        define for verbose compile time warnings
     32#   DEBUG - not defined = release build, defined = debug build
    3433
    3534BASE = fm3dll
     
    4443# fixme for wrc to build working .res
    4544# fixme for wrc to not clobber bldlevel strings
     45
     46!ifndef USE_WRC
    4647USE_WRC = 0
     48!endif
    4749
    4850!if $(USE_WRC)
     
    5052!else
    5153RC = rc
     54!endif
     55
     56# Keep this code in sync with makefile_pre.mk
     57!ifndef DEBUG                  # if not defined on wmake command line
     58!ifdef %DEBUG                  # if defined in environment
     59DEBUG = $(%DEBUG)              # use environment setting
     60!endif
    5261!endif
    5362
     
    7584# -zq           quiet
    7685
    77 !ifdef %DEBUG
     86!ifdef DEBUG
    7887CFLAGS =   -bt=os2 -mf -bd -bm -d2 -olirs   -s -sg -j -wx -zfp -zgp -zq -hd
    7988!else
     
    8493CFLAGSR = -bt=os2 -mf -bd -bm     -olirs   -s -j -wx -zfp -zgp
    8594
    86 !ifdef %DEBUG
     95!ifdef DEBUG
    8796LFLAGS = sys os2v2_dll initinstance terminstance op quiet op verbose op cache &
    8897         op caseexact op implib op map debug dwarf all
Note: See TracChangeset for help on using the changeset viewer.