Changeset 10438 for trunk/make


Ignore:
Timestamp:
Feb 2, 2004, 11:26:57 PM (22 years ago)
Author:
bird
Message:

PUB2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/process.mak

    r10324 r10438  
    1 # $Id: process.mak,v 1.38 2003-11-14 22:02:33 bird Exp $
     1# $Id: process.mak,v 1.39 2004-02-02 22:26:57 bird Exp $
    22#
    33# Generic Buildsystem
     
    319319!endif
    320320
     321# Target publish no.2
     322
     323!if defined(TARGET_PUB2_BASE) || defined(TARGET_PUB2_BASE_DEB) || defined(TARGET_PUB2_SUB) \
     324 || defined(TARGET_PUB2_DIR) || defined(TARGET_PUB2_DIR_DEB) || defined(TARGET_PUB2_NAME) \
     325 || defined(TARGET_PUB2_EXT) || defined(TARGET_PUB2)
     326
     327# Default public base directory. (publish)
     328! ifndef TARGET_PUB2_BASE
     329!  if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
     330TARGET_PUB2_BASE = $(PATH_LIB)
     331!  else
     332TARGET_PUB2_BASE = $(PATH_PUB)
     333!  endif
     334! endif
     335
     336# Default public base directory for unstripped release version.
     337! ifndef TARGET_PUB2_BASE_DEB
     338!  if "$(BUILD_MODE)" == "RELEASE" && "$(TARGET_MODE:LIB=...)" == "$(TARGET_MODE)"
     339!   if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "VDD"
     340TARGET_PUB2_BASE_DEB = $(PATH_PUB2_DEB)
     341!   endif
     342!  endif
     343! endif
     344
     345# Default sub directory.
     346! ifndef TARGET_PUB2_SUB
     347!  if "$(TARGET_SUB)" ! = ""
     348TARGET_PUB2_SUB  = $(TARGET_SUB)
     349!  else
     350!   if "$(TARGET_MODE)" == "EXE"
     351TARGET_PUB2_SUB  = $(PATH_SUB_BIN)
     352!   endif
     353!   if "$(TARGET_MODE)" == "DLL"
     354TARGET_PUB2_SUB  = $(PATH_SUB_DLL)
     355!   endif
     356!   if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
     357TARGET_PUB2_SUB  = .
     358!   endif
     359!   if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS"
     360TARGET_PUB2_SUB  = $(PATH_SUB_SYS)
     361!   endif
     362!   if "$(TARGET_MODE)" == "VDD"
     363TARGET_PUB2_SUB  = $(PATH_SUB_VDD)
     364!   endif
     365!  endif
     366! endif
     367
     368# Default public directory.
     369! ifndef TARGET_PUB2_DIR
     370TARGET_PUB2_DIR  = $(TARGET_PUB2_BASE)\$(TARGET_PUB2_SUB)
     371! endif
     372
     373# Default unstripped public directory.
     374! if ! defined(TARGET_PUB2_DIR_DEB) && "$(TARGET_PUB2_BASE_DEB)" != ""
     375TARGET_PUB2_DIR_DEB  = $(TARGET_PUB2_BASE_DEB)\$(TARGET_PUB2_SUB)
     376! endif
     377
     378# Default public name.
     379! ifndef TARGET_PUB2_NAME
     380TARGET_PUB2_NAME = $(TARGET_NAME)
     381! endif
     382
     383# Default public ext.
     384! ifndef TARGET_PUB2_EXT
     385TARGET_PUB2_EXT  = $(TARGET_EXT)
     386! endif
     387
     388# Default public full name.
     389! ifndef TARGET_PUB2
     390TARGET_PUB2      = $(TARGET_PUB2_DIR)\$(TARGET_PUB2_NAME).$(TARGET_PUB2_EXT)
     391! endif
     392
     393# Default public full name of unstripped version.
     394! if !defined(TARGET_PUB2_DEB) && "$(TARGET_PUB2_DIR_DEB)" != ""
     395TARGET_PUB2_DEB  = $(TARGET_PUB2_DIR_DEB)\$(TARGET_PUB2_NAME).$(TARGET_PUB2_EXT)
     396! endif
     397
     398!endif # pub2
     399
    321400# Default public book dirs
    322401!ifndef TARGET_BOOK_PUB_BASE
     
    12261305#
    12271306publish_target:
    1228 !if "$(_TARGET_EARLY_PUBLISH)" != "" || "$(TARGET_MODE:LIB=cute)" == "$(TARGET_MODE)"
     1307!if ( "$(_TARGET_EARLY_PUBLISH)" != "" || "$(TARGET_MODE:LIB=cute)" == "$(TARGET_MODE)" ) && "$(TARGET_PRIVATE)" == ""
    12291308! if "$(TARGET_MODE)" != "EMPTY" && "$(TARGET_MODE)" != "TESTCASE" && "$(TARGET_MODE)" != "DEPEND"
    12301309    @$(ECHO) Publishing $(CLRFIL)$(TARGET)$(CLRTXT) to directory $(CLRFIL)$(TARGET_PUB_DIR)$(CLRRST)
     
    12441323!   ifdef PUBLISH_MAP
    12451324    @if exist "$(TARGET_MAP)"           $(TOOL_COPY) "$(TARGET_MAP)"  "$(TARGET_PUB_DIR_DEB)"
     1325!   endif
     1326!  endif
     1327!  if "$(TARGET_PUB2)" != ""
     1328    @$(ECHO) Publishing $(CLRFIL)$(TARGET)$(CLRTXT) to directory $(CLRFIL)$(TARGET_PUB2_DIR)$(CLRRST)
     1329    @if not exist "$(TARGET)"           $(TOOL_ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
     1330    @if not exist "$(TARGET_PUB2_DIR)"  $(TOOL_CREATEPATH) $(TARGET_PUB2_DIR)
     1331    @if exist "$(TARGET)"               $(TOOL_COPY) "$(TARGET)"      "$(TARGET_PUB2)"
     1332    @if exist "$(TARGET_SYM)"           $(TOOL_COPY) "$(TARGET_SYM)"  "$(TARGET_PUB2_DIR)"
     1333!   ifdef PUBLISH_MAP
     1334    @if exist "$(TARGET_MAP)"           $(TOOL_COPY) "$(TARGET_MAP)"  "$(TARGET_PUB2_DIR)"
     1335!   endif
     1336!   if "$(TARGET_PUB2_DEB)" != ""
     1337    @$(ECHO) Publishing unstripped $(CLRFIL)$(TARGET)$(CLRTXT) to directory $(CLRFIL)$(TARGET_PUB2_DIR_DEB)$(CLRRST)
     1338    @if not exist "$(_TARGET_DEB)"      $(TOOL_ECHO) $(CLRERR)WARNING: $(CLRFIL)$(_TARGET)$(CLRERR) doesn't exist. $(CLRRST)
     1339    @if not exist "$(TARGET_PUB2_DIR_DEB)" $(TOOL_CREATEPATH)  $(TARGET_PUB_DIR_DEB)
     1340    @if exist "$(_TARGET_DEB)"          $(TOOL_COPY) "$(_TARGET_DEB)" "$(TARGET_PUB2_DEB)"
     1341    @if exist "$(TARGET_SYM)"           $(TOOL_COPY) "$(TARGET_SYM)"  "$(TARGET_PUB2_DIR_DEB)"
     1342!    ifdef PUBLISH_MAP
     1343    @if exist "$(TARGET_MAP)"           $(TOOL_COPY) "$(TARGET_MAP)"  "$(TARGET_PUB2_DIR_DEB)"
     1344!    endif
    12461345!   endif
    12471346!  endif
Note: See TracChangeset for help on using the changeset viewer.