Ignore:
Timestamp:
May 16, 2002, 1:37:08 PM (23 years ago)
Author:
bird
Message:

Merged in latest changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/process.mak

    r8362 r8423  
    1 # $Id: process.mak,v 1.12 2002-05-01 04:00:17 bird Exp $
     1# $Id: process.mak,v 1.13 2002-05-16 11:37:00 bird Exp $
    22
    33#
     
    1818# -----------------------------------------------------------------------------
    1919!if "$(MAKE_SETUP_INCLUDED)" != "YES"
    20 !error Fatal error: You must include setup.mak before process.mak in the makefile.
     20! if [$(ECHO) $(CLRERR)Fatal error: You must include setup.mak before process.mak in the makefile.$(CLRRST)]
     21! endif
     22! error
    2123!endif
    2224!if "$(ENV_STATUS)" != "OK"
    23 !error Fatal error: The environment is not valid. Bad setup.mak?
    24 !endif
    25 
    26 !if "$(TARGET_NAME)" == ""
    27 !error Fatal error: TARGET_NAME is not defined! Should be set in the makefile.
     25! if [$(ECHO) $(CLRERR)Fatal error: The environment is not valid. Bad setup.mak?$(CLRRST)]
     26! endif
     27! error
     28!endif
     29
     30!if "$(TARGET_NAME)" == "" && "$(TARGET_MODE)" != "EMPTY"
     31! if [$(ECHO) $(CLRERR)Fatal error: TARGET_NAME is not defined! Should be set in the makefile.$(CLRRST)]
     32! endif
     33! error
    2834!endif
    2935
     
    3339# Dynamic Load Library target mode.
    3440!  if "$(TARGET_MODE)" != "DLL"
    35 # Dynamic Load Library target mode - Special variant for making custom C/C++ runtime DLL.
    36 !   if "$(TARGET_MODE)" != "CRT"
    3741# Drive (/ system software) target mode.
    38 !    if "$(TARGET_MODE)" != "SYS"
     42!   if "$(TARGET_MODE)" != "SYS"
    3943# Installable File System Drive target mode. (Also called FSD, File System Driver.)
    40 !     if "$(TARGET_MODE)" != "IFS"
     44!    if "$(TARGET_MODE)" != "IFS"
    4145# Virtual Device Driver target mode.
    42 !      if "$(TARGET_MODE)" != "VDD"
     46!     if "$(TARGET_MODE)" != "VDD"
    4347# Object Library target mode.
    44 !       if "$(TARGET_MODE)" != "LIB"
     48!      if "$(TARGET_MODE)" != "LIB"
    4549# Object Library target mode - Special variant which is to be linked with a SYS target.
    46 !        if "$(TARGET_MODE)" != "SYSLIB"
     50!       if "$(TARGET_MODE)" != "SYSLIB"
    4751# Object Library target mode - Special variant which is to be linked with an IFS target.
    48 !         if "$(TARGET_MODE)" != "IFSLIB"
     52!        if "$(TARGET_MODE)" != "IFSLIB"
    4953# Dummy/Hub/TopLevel empty makefile. This has no target.
    50 !          if "$(TARGET_MODE)" != "EMPTY"
    51 !           error Error: Bad TARGET_MODE="$(TARGET_MODE)". Valid ones are: EXE, DLL, CRT, EXE, SYS, IFS, VDD, LIB, SYSLIB, IFSLIB and EMPTY.
     54!         if "$(TARGET_MODE)" != "EMPTY"
     55!          if [$(ECHO) $(CLRERR)Fatal Error: Bad TARGET_MODE="$(TARGET_MODE)". Valid ones are: EXE, DLL, SYS, IFS, VDD, LIB, SYSLIB, IFSLIB and EMPTY.$(CLRRST)]
    5256!          endif
     57!          error
    5358!         endif
    5459!        endif
     
    7479# Default extension corresponds to the target mode.
    7580!ifndef TARGET_EXT
    76 ! if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
     81! if "$(TARGET_MODE)" == "DLL"
    7782TARGET_EXT  = $(EXT_DLL)
    7883! endif
     
    96101! endif
    97102! ifndef TARGET_EXT
    98 !error Internal Error: TARGET_EXT not set. Probably invalid TARGET_MODE. (TARGET_MODE="$(TARGET_MODE)")
     103!  if [$(ECHO) $(CLRERR)Internal Error: TARGET_EXT not set. Probably invalid TARGET_MODE. (TARGET_MODE="$(TARGET_MODE)")$(CLRRST)]
     104!  endif
     105!  error
    99106! endif
    100107!endif
     
    154161# Default import library file. (output)
    155162!ifndef TARGET_ILIB
    156 ! if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
     163! if "$(TARGET_MODE)" == "DLL"
    157164TARGET_ILIB =$(PATH_LIB)\$(TARGET_NAME).$(EXT_ILIB)
    158165! endif
     
    169176TARGET_PUBNAME=$(PATH_EXE)\$(TARGET_NAME).$(TARGET_EXT)
    170177!  endif
    171 !  if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
     178!  if "$(TARGET_MODE)" == "DLL"
    172179TARGET_PUBNAME=$(PATH_DLL)\$(TARGET_NAME).$(TARGET_EXT)
    173180!  endif
     
    186193!endif
    187194
     195# Default makefile names.
     196!ifndef BUILD_MAKEFILE
     197BUILD_MAKEFILE = Makefile
     198!endif
     199
    188200# Default makefile name.
    189201!ifndef MAKEFILE
    190 MAKEFILE = makefile
     202MAKEFILE = $(BUILD_MAKEFILE)
    191203!endif
    192204
    193205# Ignore linker warnings for some target modes.
    194206!ifndef TARGET_IGNORE_LINKER_WARNINGS
    195 ! if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
     207! if "$(TARGET_MODE)" == "DLL"
    196208TARGET_IGNORE_LINKER_WARNINGS = 1
    197209! endif
     
    233245!   endif
    234246!   if [$(TOOL_CREATEPATH) $(PATH_TARGET)]
    235 !    error Could not create $(PATH_TARGET)
     247!    if [$(ECHO) $(CLRERR)Error: Could not create $(CLRFIL)$(PATH_TARGET)$(CLRRST)]
     248!    endif
     249!    error
    236250!   endif
    237251!  endif
     
    252266# Assembling assembly source.
    253267.asm{$(PATH_TARGET)}.$(EXT_OBJ):
    254     @$(ECHO) Assembling $(CLRFIL)$< $(CLRRST)
    255 !ifndef BUILD_VERBOSE
    256     @ \
    257 !endif
     268    @$(ECHO) Assembling $(CLRFIL)$< $(CLRTXT)$(TOOL_JOB_SUB_MSG) $(CLRRST)
     269! ifndef BUILD_VERBOSE
     270    @ \
     271! endif
    258272!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
    259     $(AS) $(AS_FLAGS_SYS) $< $(AS_OBJ_OUT)$@
     273    $(TOOL_JOB_SUB) $(AS) $(AS_FLAGS_SYS) $< $(AS_OBJ_OUT)$@
    260274!else
    261     $(AS) $(AS_FLAGS) $< $(AS_OBJ_OUT)$@
     275    $(TOOL_JOB_SUB) $(AS) $(AS_FLAGS) $< $(AS_OBJ_OUT)$@
    262276!endif
    263277
     
    276290# Compiling C++ source.
    277291.cpp{$(PATH_TARGET)}.$(EXT_OBJ):
     292    @$(ECHO) C++ Compiler $(CLRFIL)$< $(CLRTXT)$(TOOL_JOB_SUB_MSG) $(CLRRST)
     293!ifndef BUILD_VERBOSE
     294    @ \
     295!endif
     296    $(TOOL_JOB_SUB) $(CXX) \
     297!if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "LIB"
     298        $(CXX_FLAGS_EXE) \
     299!endif
     300!if "$(TARGET_MODE)" == "DLL"
     301        $(CXX_FLAGS_DLL) \
     302!endif
     303!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
     304        $(CXX_FLAGS_SYS) \
     305!endif
     306!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     307        $(CXX_FLAGS_IFS) \
     308!endif
     309!if "$(CXX_LST_OUT)" != ""
     310        $(CXX_LST_OUT)$(PATH_TARGET)\$(@B).s \
     311!endif
     312        $(CXX_OBJ_OUT)$@ $<
     313
     314.cpp.$(EXT_OBJ):
    278315    @$(ECHO) C++ Compiler $(CLRFIL)$< $(CLRRST)
    279316!ifndef BUILD_VERBOSE
     
    284321        $(CXX_FLAGS_EXE) \
    285322!endif
    286 !if "$(TARGET_MODE)" == "CRT"
    287         $(CXX_FLAGS_CRT) \
    288 !endif
    289323!if "$(TARGET_MODE)" == "DLL"
    290324        $(CXX_FLAGS_DLL) \
     
    299333        $(CXX_LST_OUT)$(PATH_TARGET)\$(@B).s \
    300334!endif
    301         $(CXX_OBJ_OUT)$@ $<
    302 
    303 .cpp.$(EXT_OBJ):
     335        $(CXX_OBJ_OUT)$(PATH_TARGET)\$(@F) $<
     336
     337
     338# Pre-Compiling C++ source.
     339.cpp.pre-cpp:
    304340    @$(ECHO) C++ Compiler $(CLRFIL)$< $(CLRRST)
    305341!ifndef BUILD_VERBOSE
     
    310346        $(CXX_FLAGS_EXE) \
    311347!endif
    312 !if "$(TARGET_MODE)" == "CRT"
    313         $(CXX_FLAGS_CRT) \
    314 !endif
    315348!if "$(TARGET_MODE)" == "DLL"
    316349        $(CXX_FLAGS_DLL) \
     
    322355        $(CXX_FLAGS_IFS) \
    323356!endif
    324 !if "$(CXX_LST_OUT)" != ""
    325         $(CXX_LST_OUT)$(PATH_TARGET)\$(@B).s \
    326 !endif
    327         $(CXX_OBJ_OUT)$(PATH_TARGET)\$(@F) $<
    328 
    329 
    330 # Pre-Compiling C++ source.
    331 .cpp.pre-cpp:
    332     @$(ECHO) C++ Compiler $(CLRFIL)$< $(CLRRST)
    333 !ifndef BUILD_VERBOSE
    334     @ \
    335 !endif
    336     $(CXX) \
    337 !if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "LIB"
    338         $(CXX_FLAGS_EXE) \
    339 !endif
    340 !if "$(TARGET_MODE)" == "CRT"
    341         $(CXX_FLAGS_CRT) \
    342 !endif
    343 !if "$(TARGET_MODE)" == "DLL"
    344         $(CXX_FLAGS_DLL) \
    345 !endif
    346 !if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
    347         $(CXX_FLAGS_SYS) \
    348 !endif
    349 !if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
    350         $(CXX_FLAGS_IFS) \
    351 !endif
    352357        $(CXX_PC_2_STDOUT) $< > $@
    353358
     
    355360# Compiling C source.
    356361.c{$(PATH_TARGET)}.$(EXT_OBJ):
     362    @$(ECHO) C Compiler $(CLRFIL)$< $(CLRTXT)$(TOOL_JOB_SUB_MSG) $(CLRRST)
     363!ifndef BUILD_VERBOSE
     364    @ \
     365!endif
     366    $(TOOL_JOB_SUB) $(CC) \
     367!if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "LIB"
     368        $(CC_FLAGS_EXE) \
     369!endif
     370!if "$(TARGET_MODE)" == "DLL"
     371        $(CC_FLAGS_DLL) \
     372!endif
     373!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
     374        $(CC_FLAGS_SYS) \
     375!endif
     376!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     377        $(CC_FLAGS_IFS) \
     378!endif
     379!if "$(CC_LST_OUT)" != ""
     380        $(CC_LST_OUT)$(PATH_TARGET)\$(@B).s \
     381!endif
     382        $(CC_OBJ_OUT)$@ $<
     383
     384.c.$(EXT_OBJ):
    357385    @$(ECHO) C Compiler $(CLRFIL)$< $(CLRRST)
    358386!ifndef BUILD_VERBOSE
     
    363391        $(CC_FLAGS_EXE) \
    364392!endif
    365 !if "$(TARGET_MODE)" == "CRT"
    366         $(CC_FLAGS_CRT) \
    367 !endif
    368393!if "$(TARGET_MODE)" == "DLL"
    369394        $(CC_FLAGS_DLL) \
     
    378403        $(CC_LST_OUT)$(PATH_TARGET)\$(@B).s \
    379404!endif
    380         $(CC_OBJ_OUT)$@ $<
    381 
    382 .c.$(EXT_OBJ):
    383     @$(ECHO) C Compiler $(CLRFIL)$< $(CLRRST)
     405        $(CC_OBJ_OUT)$(PATH_TARGET)\$(@F) $<
     406
     407
     408# Pre-Compiling C source.
     409.c.pre-c:
     410    @$(ECHO) C PreCompiler $(CLRFIL)$< $(CLRRST)
    384411!ifndef BUILD_VERBOSE
    385412    @ \
     
    389416        $(CC_FLAGS_EXE) \
    390417!endif
    391 !if "$(TARGET_MODE)" == "CRT"
    392         $(CC_FLAGS_CRT) \
    393 !endif
    394418!if "$(TARGET_MODE)" == "DLL"
    395419        $(CC_FLAGS_DLL) \
     
    401425        $(CC_FLAGS_IFS) \
    402426!endif
    403 !if "$(CC_LST_OUT)" != ""
    404         $(CC_LST_OUT)$(PATH_TARGET)\$(@B).s \
    405 !endif
    406         $(CC_OBJ_OUT)$(PATH_TARGET)\$(@F) $<
    407 
    408 
    409 # Pre-Compiling C source.
    410 .c.pre-c:
    411     @$(ECHO) C PreCompiler $(CLRFIL)$< $(CLRRST)
    412 !ifndef BUILD_VERBOSE
    413     @ \
    414 !endif
    415     $(CC) \
    416 !if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "LIB"
    417         $(CC_FLAGS_EXE) \
    418 !endif
    419 !if "$(TARGET_MODE)" == "CRT"
    420         $(CC_FLAGS_CRT) \
    421 !endif
    422 !if "$(TARGET_MODE)" == "DLL"
    423         $(CC_FLAGS_DLL) \
    424 !endif
    425 !if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
    426         $(CC_FLAGS_SYS) \
    427 !endif
    428 !if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
    429         $(CC_FLAGS_IFS) \
    430 !endif
    431427        $(CC_PC_2_STDOUT) $< > $@
    432428
     
    434430# Compiling resources.
    435431.rc{$(PATH_TARGET)}.res:
    436     @$(ECHO) RC Compiler $(CLRFIL)$< $(CLRRST)
    437 !ifndef BUILD_VERBOSE
    438     @ \
    439 !endif
    440     $(RC) $(RC_FLAGS) $< $@
     432    @$(ECHO) RC Compiler $(CLRFIL)$< $(CLRTXT)$(TOOL_JOB_SUB_MSG)$(CLRRST)
     433!ifndef BUILD_VERBOSE
     434    @ \
     435!endif
     436    $(TOOL_JOB_SUB) $(RC) $(RC_FLAGS) $< $@
    441437
    442438.rc.res:
     
    466462SUBDIRS_BUILD = subbuild
    467463$(SUBDIRS_BUILD):
    468     @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) build
     464    @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) build
    469465!endif
    470466
     
    491487SUBDIRS_LIB = subdir_lib
    492488$(SUBDIRS_LIB):
    493     @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) lib
     489    @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) lib
    494490!endif
    495491
     
    500496!endif
    501497
    502 !if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
     498!if "$(TARGET_PUBLIC_PART)" != "" && ("$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB")
    503499lib: $(SUBDIRS_LIB) $(TARGET_ILIB) $(TARGET) $(TARGET_PUBNAME)
    504500!else
     
    521517    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_BIN)$(CLRRST)
    522518    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
     519    @if not exist $(PATH_BIN) $(TOOL_CREATEPATH)       $(PATH_BIN)
    523520    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_BIN)
    524521    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_BIN)
    525522! endif
    526 ! if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
     523! if "$(TARGET_MODE)" == "DLL"
    527524    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_DLL)$(CLRRST)
    528525    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
     526    @if not exist $(PATH_DLL) $(TOOL_CREATEPATH)       $(PATH_DLL)
    529527    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_DLL)
    530528    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_DLL)
     
    533531    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_SYS)$(CLRRST)
    534532    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
     533    @if not exist $(PATH_SYS) $(TOOL_CREATEPATH)       $(PATH_SYS)
    535534    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_SYS)
    536535    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_SYS)
    537536! endif
    538 !if 1 # these targets are either TARGET_PUBLIC or all private.
     537!if 0 # these targets are either TARGET_PUBLIC or all private.
    539538!  if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
    540539    @$(ECHO) Installing $(CLRFIL)$(TARGET)$(CLRTXT) in directory $(CLRFIL)$(PATH_LIB)$(CLRRST)
    541540    @if not exist $(TARGET) $(ECHO) $(CLRERR)WARNING: $(CLRFIL)$(TARGET)$(CLRERR) doesn't exist. $(CLRRST)
     541    @if not exist $(PATH_LIB) $(TOOL_CREATEPATH)       $(PATH_LIB)
    542542    @if exist $(TARGET)     $(TOOL_COPY) $(TARGET)     $(PATH_LIB)
    543543    @if exist $(TARGET_SYM) $(TOOL_COPY) $(TARGET_SYM) $(PATH_LIB)
     
    549549!endif
    550550!ifdef SUBDIRS
    551     @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) $@
     551    @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) $@
    552552!endif
    553553!ifdef PREMAKEFILES
     
    567567testcase:
    568568!if [$(TOOL_EXISTS) testcase] == 0
    569     @$(TOOL_DODIRS) "testcase" $(TOOL_MAKE) $@
     569    @$(TOOL_DODIRS) "testcase" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) $@
    570570!endif
    571571!if [$(TOOL_EXISTS) testcase.mak] == 0
     
    573573!endif
    574574!ifdef SUBDIRS
    575     @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) $@
     575    @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) $@
    576576!endif
    577577!ifdef PREMAKEFILES
     
    611611        $(TOOL_DEP_FILES)
    612612!ifdef SUBDIRS
    613     @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) NODEP=1 $@
     613    @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) NODEP=1 $@
    614614!endif
    615615!ifdef PREMAKEFILES
     
    649649!endif
    650650!ifdef SUBDIRS
    651     @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) $@
     651    @$(TOOL_DODIRS) "$(SUBDIRS)" $(TOOL_MAKE) -f $(BUILD_MAKEFILE) $@
    652652!endif
    653653!ifdef PREMAKEFILES
     
    663663# The $(TARGET) rule - For EXE, DLL, SYS and IFS targets
    664664# -----------------------------------------------------------------------------
    665 !if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT" || "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "VDD"
     665!if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "VDD"
    666666$(TARGET): $(TARGET_OBJS) $(TARGET_RES) $(TARGET_DEF_LINK) $(TARGET_LNK) $(TARGET_DEPS)
     667!if "$(TOOL_JOB_WAIT)" != ""
     668! ifndef BUILD_QUIET
     669   @$(ECHO) Waiting for jobs to complete $(CLRRST)
     670! endif
     671! ifndef BUILD_VERBOSE
     672   @ \
     673! endif
     674   $(TOOL_JOB_WAIT)
     675!endif
    667676    @$(ECHO) Linking $(TARGET_MODE) $(CLRFIL)$@ $(CLRRST)
    668677!ifndef BUILD_VERBOSE
     
    675684    $(LINK_CMD_EXE)
    676685!endif
    677 !if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
     686!if "$(TARGET_MODE)" == "DLL"
    678687    $(LINK_CMD_DLL)
    679688!endif
     
    765774!if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
    766775$(TARGET): $(TARGET_OBJS) $(TARGET_LNK) $(TARGET_DEPS)
     776!if "$(TOOL_JOB_WAIT)" != ""
     777! ifndef BUILD_QUIET
     778   @$(ECHO) Waiting for jobs to complete $(CLRRST)
     779! endif
     780! ifndef BUILD_VERBOSE
     781   @ \
     782! endif
     783   $(TOOL_JOB_WAIT)
     784!endif
    767785    @$(ECHO) Creating Library $(CLRFIL)$@ $(CLRRST)
    768786!ifndef BUILD_VERBOSE
     
    786804$(AR_LNK5)
    787805<<KEEP
     806!ifdef BUILD_VERBOSE
     807    @type $@
     808!endif
    788809!endif
    789810
     
    796817    @$(ECHO) Copying $(CLRFIL)$(TARGET)$(CLRTXT) to $(CLRFIL)$(@D)$(CLRRST)
    797818!ifndef BUILD_VERBOSE
     819    @if not exist $(@D) $(ECHO) Target public path $(CLRFIL)$(@D)$(CLRTXT) does NOT exist. Creating. $(CLRRST)
     820!endif
     821    @if not exist $(@D) $(TOOL_CREATEPATH) $(@D)
     822!ifndef BUILD_VERBOSE
    798823    @ \
    799824!endif
     
    850875#
    851876!if [$(TOOL_EXISTS) $(TARGET_DEPEND)] == 0
    852 ! ifndef BUILD_QUIET
     877! ifdef BUILD_VERBOSE
    853878!  if [$(ECHO) Including dependency $(CLRFIL)$(TARGET_DEPEND)$(CLRRST)]
    854879!  endif
     
    868893!ifdef BUILD_DEPEND1
    869894! if [$(TOOL_EXISTS) $(BUILD_DEPEND1)] == 0
    870 !  ifndef BUILD_QUIET
     895!  ifdef BUILD_VERBOSE
    871896!   if [$(ECHO) Including dependency $(CLRFIL)$(BUILD_DEPEND1)$(CLRRST)]
    872897!   endif
     
    883908!ifdef BUILD_DEPEND2
    884909! if [$(TOOL_EXISTS) $(BUILD_DEPEND2)] == 0
    885 !  ifndef BUILD_QUIET
     910!  ifdef BUILD_VERBOSE
    886911!   if [$(ECHO) Including dependency $(CLRFIL)$(BUILD_DEPEND2)$(CLRRST)]
    887912!   endif
     
    899924!ifdef BUILD_DEPEND3
    900925! if [$(TOOL_EXISTS) $(BUILD_DEPEND3)] == 0
    901 !  ifndef BUILD_QUIET
     926!  ifdef BUILD_VERBOSE
    902927!   if [$(ECHO) Including dependency $(CLRFIL)$(BUILD_DEPEND3)$(CLRRST)]
    903928!   endif
     
    915940!endif
    916941
     942
     943#
     944# If BUILD_MULTIJOBS is nonempty make sure the job daemon is up running.
     945#
     946!if "$(BUILD_MULTIJOBS)" != ""
     947! if [$(TOOL_JOB_UP)] != 0
     948!  if "$(BUILD_QUITE)" == ""
     949!   if [$(ECHO) Starting Job Daemon With $(TOOL_JOB_WORKERS) Workers...$(CLRRST)]
     950!   endif
     951!  endif
     952!  if [$(TOOL_JOB_INIT) $(TOOL_JOB_WORKERS)] != 0
     953!   if [$(ECHO) $(CLRERR)Fatal error: Failed to start job daemon.$(CLRRST)]
     954!   endif
     955!   error
     956!  endif
     957! endif
     958!endif
     959
Note: See TracChangeset for help on using the changeset viewer.