Changeset 1890 for trunk/makefile_pre.mk


Ignore:
Timestamp:
Jan 30, 2020, 7:39:42 AM (6 years ago)
Author:
Steven Levine
Message:

Add PMPRINTF enable support to makefiles.
Correct PMPRINTF debug macro enables in sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile_pre.mk

    r1661 r1890  
    33
    44# Copyright (c) 1993-98 M. Kimes
    5 # Copyright (c) 2002, 2012 Steven H. Levine
     5# Copyright (c) 2002-2020 Steven H. Levine
    66
    77# 03 Jan 08 SHL Switch to wrc.exe default; support USE_RC from environment
     
    1515# 07 Jan 11 SHL sort map
    1616# 25 Jan 12 SHL Comments
     17# 14 Aug 15 SHL Test hll debug - FIXME to be gone
     18# 25 Jan 20 SHL Add PMPRINTF support - PMPRINTF_OPT CFLAGS
    1719
    1820# Environment: see dll\makefile
     
    6163!endif
    6264
     65!ifdef PMPRINTF                         # if defined on wmake command line
     66PMPRINTF_OPT = PMPRINTF=$(PMPRINTF)     # set in case needed by sub-make
     67!else
     68!ifdef %PMPRINTF                        # if defined in environment
     69PMPRINTF = $(%PMPRINTF)                 # use value from environment
     70PMPRINTF_OPT = PMPRINTF=$(PMPRINTF)     # set in case needed by sub-make
     71!endif
     72!endif
     73
    6374SYMS = $(BASE).sym                      # target for building SYM files
    6475
     
    94105
    95106# We always compile with debug info to avoid needing a full rebuild just to debug
     107# 2015-08-14 SHL HLL debug testing
     108# CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zp4 -zq -hc
    96109CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zp4 -zq -hd
    97110
     
    106119!endif
    107120
     121!ifdef PMPRINTF
     122CFLAGS += -dPMPRINTF
     123!endif
     124
    108125LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map sort global
    109126!ifdef DEBUG
    110127CFLAGS += -d$DEBUG_OPT
     128# 2015-08-14 SHL HLL debug testing
     129# LFLAGS += debug hll all
    111130LFLAGS += debug dwarf all
    112131!endif
     
    144163  $(CC) $(CFLAGS) $*.c
    145164
    146 # The end
     165# eof
Note: See TracChangeset for help on using the changeset viewer.