Changeset 703
- Timestamp:
- Jun 23, 2007, 6:32:51 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makefile
r698 r703 13 13 # 26 Aug 06 SHL Add rest of lxlite support 14 14 # 14 Jun 07 SHL Convert to OpenWatcom 15 # 22 Jun 07 JBS Moved some macro-handling code to this 16 # file from warpin\makefile because of some 17 # differences in how Watcom handles macros. 15 18 16 19 # Environment: 17 20 18 # DEBUG 21 # DEBUG 0 = release build, 1 = debug build 19 22 20 23 BASE = fm3 24 25 # FM2_VER defines fm/2 WPI file name suffix 26 # e.g. FM2_VER=-3-5-9 results in FM2-3-5-9.wpi being built 27 # If FM2_VER is empty, then FM2.wpi is built 28 # NOTE: Start the variable with '-' 29 30 !ifndef FM2_VER # if defined on wmake command, use it 31 FM2_VER=-3-6-0 # default value 32 !ifdef %FM2_VER # if defined via env. var. 33 FM2_VER=$(%FM2_VER) # use the env. var. 34 !endif 35 !endif 36 37 # FM2UTILS_VER defines the fm2utils WPI file name suffix. 38 # e.g. FM2UTILS_VER=-1-0 results in FM2Utils-1.0.wpi being built 39 # If FM2UTILS_VER is empty, then FM2UTILS.wpi is built 40 # NOTE: Start the variable with '-' 41 42 !ifndef FM2UTILS_VER # if defined on wmake command, use it 43 FM2UTILS_VER=-1-1 # default value 44 !ifdef %FM2UTILS_VER # if defined via env. var. 45 FM2UTILS_VER=$(%FM2UTILS_VER) # use the env. var. 46 !endif 47 !endif 48 49 # If BUILD_FM2UTILS = 1, build FM2UTILS*.wpi and FM2*.wpi 50 # Otherwise build just FM2*.wpi 51 52 !ifndef BUILD_FM2UTILS # if defined on wmake command, use it 53 !ifdef %BUILD_FM2UTILS # else if defined via env. var. 54 !ifneq %BUILD_FM2UTILS 1 # if env. var. is anything but 1 55 BUILD_FM2UTILS=0 # use a value of 0 56 !else 57 BUILD_FM2UTILS=1 58 !endif 59 !else 60 BUILD_FM2UTILS=0 # use default value if not defined via env. or command line 61 !endif 62 !endif 21 63 22 64 !include makefile_pre.mk … … 51 93 wpi: .symbolic 52 94 cd warpin 53 $(MAKE) $(__MAKEOPTS__) 95 $(MAKE) $(__MAKEOPTS__) FM2_VER=$(FM2_VER) FM2UTILS_VER=$(FM2UTILS_VER) BUILD_FM2UTILS=$(BUILD_FM2UTILS) 54 96 cd .. 55 97 -
trunk/warpin/makefile
r699 r703 7 7 # 08 Jun 07 JBS Corrected BUILD_FM2UTILS code so that it is actually 8 8 # 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. 9 12 10 # Environment:11 12 # DEBUG 0 = release build, 1 = debug build13 14 # If BUILD_FM2UTILS defined, build FM2UTILS*.wpi and FM2*.wpi15 # Otherwise build just FM2*.wpi16 !ifndef BUILD_FM2UTILS17 BUILD_FM2UTILS=118 !endif19 20 # FM2_VER defines fm/2 WPI file name suffix21 # e.g. FM2_VER=-3-5-9 results in FM2-3-5-9.wpi being built22 # If FM2_VER is empty, then FM2.wpi is built23 # NOTE: Start the variable with '-'24 25 !ifndef FM2_VER26 FM2_VER=-3-5-927 !endif28 29 # FM2UTILS_VER defines the fm2utils WPI file name suffix.30 # e.g. FM2UTILS_VER=-1-0 results in FM2Utils-1.0.wpi being built31 # If FM2UTILS_VER is empty, then FM2UTILS.wpi is built32 # NOTE: Start the variable with '-'33 34 !ifndef FM2UTILS_VER35 FM2UTILS_VER=-1-0-136 !endif37 13 38 14 all: wpi .symbolic 39 15 40 !if $(BUILD_FM2UTILS) ==041 wpi: checkfiles fm2 $(FM2_VER).wpi .symbolic16 !ifeq BUILD_FM2UTILS 0 17 wpi: checkfiles fm2.wis fm2$(FM2_VER).wpi .symbolic 42 18 !else 43 wpi: checkfiles fm2 $(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi .symbolic19 wpi: checkfiles fm2.wis fm2$(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi .symbolic 44 20 !endif 45 21
Note:
See TracChangeset
for help on using the changeset viewer.