Changeset 703 for trunk/warpin/makefile


Ignore:
Timestamp:
Jun 23, 2007, 4:32:51 AM (13 years ago)
Author:
John Small
Message:
  • Watcom handles macros differently so some of the previous

warpin/makefile code has been broken since the conversion.
So the code was improved and moved to the base makefile to
make it work better.

  • fm2.wis was added as a dependant to the WPI target in the

warpin/makefile file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/makefile

    r699 r703  
    77# 08 Jun 07 JBS Corrected BUILD_FM2UTILS code so that it is actually
    88#               possible to disable the build of the FM2UTILS*.WPI file
     9# 22 Jun 07 JBS Reworked the code related to macros in both this file
     10#               and the base makefile. Also made the fm2.wis file a
     11#               dependant of the WPI target.
    912
    10 # Environment:
    11 
    12 # DEBUG  0 = release build, 1 = debug build
    13 
    14 # If BUILD_FM2UTILS defined, build FM2UTILS*.wpi and FM2*.wpi
    15 # Otherwise build just FM2*.wpi
    16 !ifndef BUILD_FM2UTILS
    17 BUILD_FM2UTILS=1
    18 !endif
    19 
    20 # FM2_VER defines fm/2 WPI file name suffix
    21 # e.g. FM2_VER=-3-5-9 results in FM2-3-5-9.wpi being built
    22 # If FM2_VER is empty, then FM2.wpi is built
    23 # NOTE: Start the variable with '-'
    24 
    25 !ifndef FM2_VER
    26 FM2_VER=-3-5-9
    27 !endif
    28 
    29 # FM2UTILS_VER defines the fm2utils WPI file name suffix.
    30 # e.g. FM2UTILS_VER=-1-0 results in FM2Utils-1.0.wpi being built
    31 # If FM2UTILS_VER is empty, then FM2UTILS.wpi is built
    32 # NOTE: Start the variable with '-'
    33 
    34 !ifndef FM2UTILS_VER
    35 FM2UTILS_VER=-1-0-1
    36 !endif
    3713
    3814all: wpi .symbolic
    3915
    40 !if $(BUILD_FM2UTILS) == 0
    41 wpi: checkfiles fm2$(FM2_VER).wpi .symbolic
     16!ifeq BUILD_FM2UTILS 0
     17wpi: checkfiles fm2.wis fm2$(FM2_VER).wpi .symbolic
    4218!else
    43 wpi: checkfiles fm2$(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi .symbolic
     19wpi: checkfiles fm2.wis fm2$(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi .symbolic
    4420!endif
    4521
Note: See TracChangeset for help on using the changeset viewer.