Ignore:
Timestamp:
Apr 30, 2002, 8:19:13 AM (23 years ago)
Author:
bird
Message:

Build level info. Symbol files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/process.mak

    r8319 r8333  
    1 # $Id: process.mak,v 1.9 2002-04-29 12:04:37 bird Exp $
     1# $Id: process.mak,v 1.10 2002-04-30 06:19:13 bird Exp $
    22
    33#
     
    112112!endif
    113113
     114# Default target .sym file. (output)
     115!ifndef TARGET_SYM
     116TARGET_SYM  = $(PATH_TARGET)\$(TARGET_NAME).$(EXT_SYM)
     117!endif
    114118
    115119# Default object file. (output)
     
    128132!endif
    129133
     134# Default modified definition filename. (output)
     135!ifndef TARGET_DEF_LINK
     136TARGET_DEF_LINK = $(PATH_TARGET)\$(TARGET_NAME)_link.def
     137!endif
     138
    130139# Default definition file for generating the import library. (input)
    131140!ifndef TARGET_IDEF
     
    135144# Default map file. (output)
    136145!ifndef TARGET_MAP
    137 TARGET_MAP  = $(PATH_TARGET)\$(TARGET_NAME).map
     146TARGET_MAP  = $(PATH_TARGET)\$(TARGET_NAME).$(EXT_MAP)
    138147!endif
    139148
     
    516525    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_BIN)$(CLRRST)
    517526    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
    518     @if exist $(TARGET)     $(TOOL_COPY) $(TARGET) $(PATH_BIN)
     527    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_BIN)
     528    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_BIN)
    519529! endif
    520530! if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
    521531    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_DLL)$(CLRRST)
    522532    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
    523     @if exist $(TARGET)     $(TOOL_COPY) $(TARGET) $(PATH_DLL)
     533    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_DLL)
     534    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_DLL)
    524535! endif
    525536! if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS"
    526537    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_SYS)$(CLRRST)
    527538    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
    528     @if exist $(TARGET)     $(TOOL_COPY) $(TARGET) $(PATH_SYS)
     539    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_SYS)
     540    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_SYS)
    529541! endif
    530542!if 1 # these targets are either TARGET_PUBLIC or all private.
     
    532544    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_LIB)$(CLRRST)
    533545    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
    534     @if exist $(TARGET)     $(TOOL_COPY) $(TARGET) $(PATH_LIB)
     546    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_LIB)
     547    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_LIB)
    535548!  endif
    536549! endif
     
    624637        $(PATH_TARGET)\*.$(EXT_EXE) \
    625638        $(PATH_TARGET)\*.$(EXT_DLL) \
    626         $(PATH_TARGET)\*.$(EXT_RES) \
     639        $(PATH_TARGET)\*.$(EXT_RES)
     640    $(TOOL_RM) \
    627641        $(PATH_TARGET)\*.$(EXT_SYS) \
    628         $(PATH_TARGET)\*.$(EXT_LIB)
     642        $(PATH_TARGET)\*.$(EXT_LIB) \
     643        $(PATH_TARGET)\*.$(EXT_IFS) \
     644        $(PATH_TARGET)\*.$(EXT_MAP) \
     645        $(PATH_TARGET)\*.$(EXT_SYM)
    629646    $(TOOL_RM) \
    630         $(PATH_TARGET)\*.$(EXT_IFS) \
    631         $(PATH_TARGET)\*.map \
    632647        $(PATH_TARGET)\*.s \
    633648        $(PATH_TARGET)\*.lst \
     
    653668# -----------------------------------------------------------------------------
    654669!if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT" || "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "VDD"
    655 $(TARGET): $(TARGET_OBJS) $(TARGET_RES) $(TARGET_DEF) $(TARGET_LNK) $(TARGET_DEPS)
     670$(TARGET): $(TARGET_OBJS) $(TARGET_RES) $(TARGET_DEF_LINK) $(TARGET_LNK) $(TARGET_DEPS)
    656671    @$(ECHO) Linking $(TARGET_MODE) $(CLRFIL)$@ $(CLRRST)
    657672!ifndef BUILD_VERBOSE
     
    689704! endif
    690705    $(TOOL_DLLRNAME) $(TARGET) $(TARGET_DLLRNAME)
     706!endif
     707!if "$(TOOL_MAPSYM)" != "" && "$(TARGET_SYM)" != "" && "$(TARGET_MAP)" != ""
     708! ifndef BUILD_VERBOSE
     709    @ \
     710! endif
     711    $(TOOL_MAPSYM) $(TARGET_MAP) $(TARGET_SYM)
    691712!endif
    692713
     
    703724$(LINK_LNK5)
    704725<<KEEP
     726
     727
     728#
     729# Builddef modified definition file.
     730#
     731!if "$(TARGET_DEF_LINK)" != "$(TARGET_DEF)"
     732$(TARGET_DEF_LINK): $(TARGET_DEF)
     733! ifndef BUILD_QUIET
     734    @$(ECHO) Stamping deffile with build level info.$(CLRRST)
     735! endif
     736! ifndef BUILD_VERBOSE
     737    @ \
     738! endif
     739    $(TOOL_BLDLEVEL) $(BUILD_BLDLEVEL_FLAGS) $(TARGET_BLDLEVEL_FLAGS) -R$** $** $@
     740!endif
     741
    705742!endif
    706743
     
    745782!endif
    746783    $(TOOL_COPY) $** $@
     784    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(@R).sym
    747785!endif
    748786
Note: See TracChangeset for help on using the changeset viewer.