Changeset 720
- Timestamp:
- Jul 5, 2007, 12:01:34 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/makefile
r719 r720 27 27 # 27 Jun 07 SHL Allow DEBUG set from command line or environment 28 28 # 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef 29 # 04 Jul 07 SHL Pass DEBUG settings to sub-make 29 30 30 31 # Environment: … … 55 56 56 57 # Keep this code in sync with makefile_pre.mk 57 !ifndef DEBUG # if not defined on wmake command line 58 !ifdef %DEBUG # if defined in environment 59 DEBUG = $(%DEBUG) # use environment setting 58 !ifdef DEBUG # if defined on wmake command line 59 DEBUG_OPT = DEBUG=$(DEBUG) # set in case needed by sub-make 60 !else 61 !ifdef %DEBUG # if defined in environment 62 DEBUG = $(%DEBUG) # use value from environment 63 DEBUG_OPT = DEBUG=$(DEBUG) # set in case needed by sub-make 60 64 !endif 61 65 !endif … … 186 190 res: 187 191 @echo Updating resources only 188 $(MAKE) $(__MAKEOPTS__) MAKERES=1192 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) MAKERES=1 189 193 190 194 internal\mkstr.exe: internal\mkstr.c version.h fm3str.h 191 195 cd internal 192 $(MAKE) $(__MAKEOPTS__) 196 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) 193 197 cd.. 194 198 … … 239 243 ipf\fm3.hlp: 240 244 cd ipf 241 $(MAKE) $(__MAKEOPTS__) fm3.hlp245 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) fm3.hlp 242 246 cd.. 243 247 … … 249 253 cleanobj: .symbolic 250 254 cd internal 251 $(MAKE) $(__MAKEOPTS__) cleanobj255 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) cleanobj 252 256 cd.. 253 257 -del *.obj … … 255 259 clean: .symbolic 256 260 cd internal 257 $(MAKE) $(__MAKEOPTS__) clean261 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) clean 258 262 cd ..\ipf 259 $(MAKE) $(__MAKEOPTS__) clean263 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) clean 260 264 cd.. 261 265 -del *.dll -
trunk/makefile
r719 r720 16 16 # file from warpin\makefile because of some 17 17 # differences in how Watcom handles macros. 18 # 04 Jul 07 SHL Pass DEBUG settings to sub-make 18 19 19 20 # Environment - see makefile_pre.mk … … 69 70 res: .symbolic 70 71 @echo Updating resources only 71 $(MAKE) $(__MAKEOPTS__) MAKERES=172 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) MAKERES=1 72 73 73 74 # make DLL components … … 75 76 dll: .symbolic 76 77 cd dll 77 $(MAKE) $(__MAKEOPTS__) 78 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) 78 79 cd .. 79 80 … … 87 88 88 89 allexe: *.mak .symbolic 89 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) 90 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) 90 91 91 92 wpi: .symbolic 92 93 cd warpin 93 $(MAKE) $(__MAKEOPTS__) FM2_VER=$(FM2_VER) FM2UTILS_VER=$(FM2UTILS_VER) BUILD_FM2UTILS=$(BUILD_FM2UTILS)94 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) FM2_VER=$(FM2_VER) FM2UTILS_VER=$(FM2UTILS_VER) BUILD_FM2UTILS=$(BUILD_FM2UTILS) 94 95 cd .. 95 96 … … 97 98 # Apply to each *.mak for other exes 98 99 lxlite:: *.mak .symbolic 99 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) lxlite100 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) lxlite 100 101 101 102 # Apply to dlls 102 103 lxlite:: .symbolic 103 104 cd dll 104 $(MAKE) $(__MAKEOPTS__) lxlite105 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) lxlite 105 106 cd .. 106 107 107 108 cleanobj: .symbolic 108 109 cd dll 109 $(MAKE) $(__MAKEOPTS__) cleanobj110 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) cleanobj 110 111 cd .. 111 112 -del *.obj … … 113 114 clean:: .symbolic 114 115 cd dll 115 $(MAKE) $(__MAKEOPTS__) clean116 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) clean 116 117 cd .. 117 118 -del *.exe … … 123 124 distclean: clean .symbolic 124 125 cd warpin 125 $(MAKE) $(__MAKEOPTS__) distclean126 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) distclean 126 127 cd .. 127 128 -
trunk/makefile_pre.mk
r719 r720 7 7 # 27 Jun 07 SHL Allow DEBUG set from command line or environment 8 8 # 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef 9 # 04 Jul 07 SHL Pass DEBUG settings to sub-make 9 10 10 11 CC = wcc386 … … 25 26 26 27 # Keep this code in sync with dll\makefile 27 !ifndef DEBUG # if not defined on wmake command line 28 !ifdef %DEBUG # if defined in environment 29 DEBUG = $(%DEBUG) # pass environment value 28 !ifdef DEBUG # if defined on wmake command line 29 DEBUG_OPT = DEBUG=$(DEBUG) # set in case needed by sub-make 30 !else 31 !ifdef %DEBUG # if defined in environment 32 DEBUG = $(%DEBUG) # use value from environment 33 DEBUG_OPT = DEBUG=$(DEBUG) # set in case needed by sub-make 30 34 !endif 31 35 !endif
Note:
See TracChangeset
for help on using the changeset viewer.