Changeset 1890


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.

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r1878 r1890  
    174174#include "pathutil.h"                   // AddBackslashToPath
    175175#include "copyf.h"                      // ignorereadonly
    176 #if 0
    177 #define  __PMPRINTF__
     176
     177#ifdef PMPRINTF
     178#define  _PMPRINTF_                     // Enable debug macros
    178179#include "PMPRINTF.H"
    179180#endif
  • trunk/dll/filldir.c

    r1880 r1890  
    168168#include "pathutil.h"                   // AddBackslashToPath
    169169#include "tmrsvcs.h"                    // ITIMER_DESC
    170 #if 0
    171 #define  __PMPRINTF__
     170
     171#ifdef PMPRINTF
     172#define  _PMPRINTF_                     // Enable debug macros
    172173#include "PMPRINTF.H"
    173174#endif
  • trunk/dll/flesh.c

    r1882 r1890  
    7979#include "common.h"                     // IncrThreadUsage DecrThreadUsage
    8080#include "pathutil.h"
    81 #if 0
    82 #define  __PMPRINTF__
     81
     82#ifdef PMPRINTF
     83#define  _PMPRINTF_                     // Enable debug macros
    8384#include "PMPRINTF.H"
    8485#endif
     
    8889
    8990static PSZ pszSrcFile = __FILE__;
    90 
    9191
    9292static INT tidFleshWorkListThread = -1; // 2015-08-08 SHL
  • trunk/dll/makefile

    r1856 r1890  
    33
    44# Copyright (c) 1993-98 M. Kimes
    5 # Copyright (c) 2002, 2015 Steven H. Levine
     5# Copyright (c) 2002-2020 Steven H. Levine
    66
    77# 22 May 03 SHL Correct icon dependencies
     
    4848# 24 Feb 14 JBS Ticket #500: Suspended use of high memory by commenting out the calls to exehdr
    4949# 13 Aug 15 SHL Add listutil
     50# 25 Jan 20 SHL Add PMPRINTF support
    5051
    5152# Environment: see makefile_pre.mk and makefile_post.mk
     
    5455# WARNALL - add more warnings if defined, standard warnings if not defined
    5556# FORTIFY - enable FORTIFY heap checking if defined, omit FORITY support if not defined
     57# PMPRINTF - enable PMPRINTF support, omit PMPRINTF support if not defined
    5658# USE_RC - use rc.exe if defined, use wrc.exe if not defined
    5759# NOHIGHMEM - support high memory use (i.e exehdir /highmem)
     60
     61# PMPRINTF support assumes PMPRINTF.H in INCLUDE path
     62# PMPRINTF support assumes PMPRINTF.LIB in LIB path
    5863
    5964BASE = fm3dll
     
    159164!endif
    160165
     166!ifdef PMPRINTF
     167CFLAGS += -dPMPRINTF
     168!endif
     169
    161170# for fm3res only
    162171CFLAGSR = -bt=os2 -mf -bd -bm         -olirs -s     -j -we -wx -zfp -zgp -zp4 -zq
     
    362371  -del *~
    363372
     373# eof
  • trunk/dll/misc.c

    r1840 r1890  
    122122#include "fortify.h"
    123123#include "info.h"                       // driveflags
    124 #if 0
    125 #define  __PMPRINTF__
     124
     125#ifdef PMPRINTF
     126#define  _PMPRINTF_                     // Enable debug macros
    126127#include "PMPRINTF.H"
    127128#endif
  • trunk/dll/select.c

    r1883 r1890  
    7474#include "flesh.h"
    7575#include "treecnr.h"                    // fExpandAll
    76 #if 0
    77 #define  __PMPRINTF__
     76
     77#ifdef PMPRINTF
     78#define  _PMPRINTF_                     // Enable debug macros
    7879#include "PMPRINTF.H"
    7980#endif
  • trunk/dll/sortcnr.c

    r1851 r1890  
    2828#include "sortcnr.h"
    2929#include "valid.h"                      // TestCDates
    30 #if 0
    31 #define  __PMPRINTF__
     30
     31#ifdef PMPRINTF
     32#define  _PMPRINTF_                     // Enable debug macros
    3233#include "PMPRINTF.H"
    3334#endif
  • trunk/dll/update.c

    r1876 r1890  
    5151#include "misc.h"                       // PostMsg
    5252#include "fortify.h"
    53 #if 0
    54 #define  __PMPRINTF__
     53
     54#ifdef PMPRINTF
     55#define  _PMPRINTF_                     // Enable debug macros
    5556#include "PMPRINTF.H"
    5657#endif
  • trunk/dll/valid.c

    r1877 r1890  
    696696      }
    697697    }
    698      else if (*argv[x] == '`' && isalpha(argv[x][1])) {
     698    else if (*argv[x] == '`' && isalpha(argv[x][1])) {
    699699
    700700      CHAR *p = &argv[x][1];
  • trunk/makefile

    r1620 r1890  
    33
    44# Copyright (c) 1993-98 M. Kimes
    5 # Copyright (c) 2002, 2010 Steven H. Levine
     5# Copyright (c) 2002-2010 Steven H. Levine
    66
    77# 24 May 05 SHL Add clean and cleanobj target
     
    3232# 04 Jul 11 GKY Add eFTE backup files (*~) to clean target
    3333# 13 Aug 11 GKY Build xqs and sym files as part of dll and all targets
     34# 25 Jan 20 SHL Add PMPRINTF support - PMPRINTF_OPT
    3435
    3536# Environment - see makefile_pre.mk and dll\makefile
     
    7273dll: .symbolic
    7374  cd dll
    74   $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)
     75  $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT)
    7576  cd ..
    7677
    7778dllsyms: .symbolic
    7879  cd dll
    79   $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) syms
     80  $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) syms
    8081  cd ..
    8182
     
    8990
    9091allexe: *.mak .symbolic
    91   @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)
     92  @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT)
    9293
    9394# make SYM files
    9495
    9596exesyms: *.mak .symbolic
    96   @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym
     97  @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) sym
    9798
    9899# make WPI files
     
    109110lxliteexe: *.mak .symbolic
    110111!ifndef DEBUG
    111   @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite
     112  @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) lxlite
    112113!endif
    113114
     
    117118  cd dll
    118119  $(MAKE) -h lxlite
    119 #  $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite
     120# FIXME to be gone
     121# $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) lxlite
    120122  cd ..
    121123!endif
     
    147149!include makefile_post.mk
    148150
    149 # The end
     151# eof
  • trunk/makefile_post.mk

    r1730 r1890  
    22# $Id$
    33
    4 # Copyright (c) 2002, 2012 Steven H. Levine
     4# Copyright (c) 2002-2020 Steven H. Levine
    55
    66# 16 Aug 05 SHL Clean up
     
    1818# 25 Jan 12 SHL Renamae LOW -> NOHIGHMEM and allow set from enviroment
    1919# 17 Jan 14 JBS Ticket 500: Stop setting exe objects to high-memory
     20# 25 Jan 20 SHL Comments
    2021
    2122!ifndef MAKERES
     
    2425# Common parameters go in .lrf
    2526# Executable specific paramters go in .def
    26 # Put 32-bit data in high memoryt unless overridden
     27# Put 32-bit data in high memory unless overridden
    2728
    2829!ifndef NOHIGHMEM
  • 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.