Changeset 808 for trunk/dll


Ignore:
Timestamp:
Aug 26, 2007, 6:11:49 PM (18 years ago)
Author:
Steven Levine
Message:

Tweak CFLAGS for DEBUG builds
Clean *.lrf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/makefile

    r734 r808  
    2929# 04 Jul 07 SHL Pass DEBUG settings to sub-make
    3030# 04 Jul 07 SHL Add missing .AUTODEPEND
     31# 06 Aug 07 SHL Tweak CFLAGS for DEBUG builds
     32# 26 Aug 07 SHL Clean *.lrf
    3133
    3234# Environment:
    3335
    34 #   DEBUG - not defined = release build, defined = debug build
     36# DEBUG - not defined = release build, defined = debug build
    3537
    3638BASE = fm3dll
     
    5759
    5860# Keep this code in sync with makefile_pre.mk
    59 !ifdef DEBUG                    # if defined on wmake command line
     61!ifdef DEBUG                    # if defined on wmake command line
    6062DEBUG_OPT = DEBUG=$(DEBUG)      # set in case needed by sub-make
    6163!else
    62 !ifdef %DEBUG                  # if defined in environment
    63 DEBUG = $(%DEBUG)              # use value from environment
     64!ifdef %DEBUG                   # if defined in environment
     65DEBUG = $(%DEBUG)               # use value from environment
    6466DEBUG_OPT = DEBUG=$(DEBUG)      # set in case needed by sub-make
    6567!endif
     
    7274# -bm           multithread libs
    7375# -bt=os2       target
    74 #  d1           line number debugging information
     76# -d1           line number debugging information
    7577# -d2           full symbolic debugging information
    7678# -d3           full debug w/unref
     
    7880# -j            signed char
    7981# -mf           flat
     82# -of           generate traceable stack frames
    8083# -olinars      optimze loops, inline, e(n)able fp recip, relax (a)lias, reordering, space
    8184# -s            disable stack checks
     
    9194
    9295!ifdef DEBUG
    93 CFLAGS =   -bt=os2 -mf -bd -bm -d2 -olirs   -s -sg -j -wx -zfp -zgp -zq -hd
    94 !else
    95 CFLAGS =   -bt=os2 -mf -bd -bm -d1 -olirs   -s -sg -j -wx -zfp -zgp -zq -hd
     96CFLAGS =  -bt=os2 -mf -bd -bm -hd -d2 -olirs -s -sg -j -wx -zfp -zgp -zq
     97CFLAGS =  -bt=os2 -mf -bd -bm -hd -d2        -s -sg -j -wx -zfp -zgp -zq
     98!else
     99CFLAGS =  -bt=os2 -mf -bd -bm -hd -d1 -olirs -s -sg -j -wx -zfp -zgp -zq
    96100!endif
    97101
    98102# for fm3res only
    99 CFLAGSR = -bt=os2 -mf -bd -bm     -olirs   -s -j -wx -zfp -zgp
     103CFLAGSR = -bt=os2 -mf -bd -bm         -olirs -s     -j -wx -zfp -zgp -zq
    100104
    101105!ifdef DEBUG
     
    266270  -del *.dll
    267271  -del *.lib
     272  -del *.lrf
    268273  -del *.map
    269274  -del *.obj
Note: See TracChangeset for help on using the changeset viewer.