Ignore:
Timestamp:
Aug 20, 2002, 6:05:40 AM (23 years ago)
Author:
bird
Message:

Implemented structured make passes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/process.forwarder.mak

    r9028 r9031  
    1 # $Id: process.forwarder.mak,v 1.5 2002-08-19 15:00:25 bird Exp $
     1# $Id: process.forwarder.mak,v 1.6 2002-08-20 04:05:40 bird Exp $
    22
    33#
     
    179179
    180180# -----------------------------------------------------------------------------
    181 # The build rule - Build the target.
    182 # -----------------------------------------------------------------------------
    183 build:
    184     \
    185 !ifndef BUILD_VERBOSE
    186     @ \
    187 !endif
    188     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    189 
    190 
    191 
    192 # -----------------------------------------------------------------------------
    193 # The lib rule - Make Public libraries.
    194 # -----------------------------------------------------------------------------
    195 lib:
    196     \
    197 !ifndef BUILD_VERBOSE
    198     @ \
    199 !endif
    200     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    201 
    202 
    203 
    204 # -----------------------------------------------------------------------------
    205 # The install rule - Copies target to main binary directory.
    206 # -----------------------------------------------------------------------------
    207 install:
    208     \
    209 !ifndef BUILD_VERBOSE
    210     @ \
    211 !endif
    212     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    213 
    214 
    215 
    216 # -----------------------------------------------------------------------------
    217 # The testcase rule - Execute testcases when present.
    218 # -----------------------------------------------------------------------------
    219 testcase:
     181# Generic forwarder
     182# -----------------------------------------------------------------------------
     183build rebuild clean dep lib executables miscellaneous \
     184!if "$(TARGET_MODE)" == "DEPEND"
     185$(TARGET) \
     186!endif
     187$(TARGET_ILIB) \
     188install testcase nothing target:
    220189    \
    221190!ifndef BUILD_VERBOSE
     
    239208
    240209# -----------------------------------------------------------------------------
    241 # The dep rule - Make dependencies.
    242 # -----------------------------------------------------------------------------
    243 dep:
    244     \
    245 !ifndef BUILD_VERBOSE
    246     @ \
    247 !endif
    248     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    249 
    250 
    251 
    252 # -----------------------------------------------------------------------------
    253 # The clean rule - Clean up output files.
    254 #   The current setup doesn't clean the installed ones.
    255 # -----------------------------------------------------------------------------
    256 clean:
    257     \
    258 !ifndef BUILD_VERBOSE
    259     @ \
    260 !endif
    261     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    262 
    263 
    264 
    265 # -----------------------------------------------------------------------------
    266 # The nothing rule - Rule for testing the makefile structure.
    267 # -----------------------------------------------------------------------------
    268 nothing:
    269     \
    270 !ifndef BUILD_VERBOSE
    271     @ \
    272 !endif
    273     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    274 
    275 
    276 
    277 # -----------------------------------------------------------------------------
    278 # The $(TARGET) rule - For EXE, DLL, SYS and IFS targets
    279 # -----------------------------------------------------------------------------
    280 !if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "VDD"
    281 $(TARGET):
    282     \
    283 !ifndef BUILD_VERBOSE
    284     @ \
    285 !endif
    286     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    287 !endif
    288 
    289 
    290 
    291 # -----------------------------------------------------------------------------
    292 # The $(TARGET) rule - For LIB, SYSLIB, and IFSLIB targets.
    293 # -----------------------------------------------------------------------------
    294 !if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
    295 $(TARGET):
    296     \
    297 !ifndef BUILD_VERBOSE
    298     @ \
    299 !endif
    300     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    301 !endif
    302 
    303 
    304 
    305 # -----------------------------------------------------------------------------
    306210# The $(TARGET) rule - For EMPTY & DEPEND targets.
    307211# -----------------------------------------------------------------------------
    308 # this doesn't work as we don't have a target name. Hence not needed.
    309 #!if "$(TARGET_MODE)" == "EMPTY"
    310 #$(TARGET):
    311 #    @$(ECHO) .
    312 #!endif
    313212!if "$(TARGET_MODE)" == "DEPEND"
    314213$(TARGET):
     
    319218
    320219# -----------------------------------------------------------------------------
    321 # The $(TARGET_ILIB) rule - Make import library.
    322 # -----------------------------------------------------------------------------
    323 !ifdef TARGET_ILIB
    324 $(TARGET_ILIB):
    325     \
    326 !ifndef BUILD_VERBOSE
    327     @ \
    328 !endif
    329     $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
    330 
    331 !endif
    332 
    333 
    334 
    335 # -----------------------------------------------------------------------------
    336220# The .force rule - Force a remake of something everytime.
    337221# -----------------------------------------------------------------------------
     
    344228!endif
    345229
    346 
Note: See TracChangeset for help on using the changeset viewer.