Changeset 63 for trunk/tools/os2/setaboot/Makefile
- Timestamp:
- Oct 9, 2016, 10:53:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/os2/setaboot/Makefile
r60 r63 1 1 ############################################################################### 2 # Makefile :: Builds the 'set(a)boot' 'setboot' replacement for OS/2 [wmake] # 2 # Makefile :: Builds the 'set(a)boot' 'setboot' replacement for OS/2 [WMake] # 3 # --------------------------------------------------------------------------- # 4 # # 5 # This Makefile builds the 'set(a)boot' 'setboot' replacement for OS/2. # 6 # # 3 7 ############################################################################### 4 # rousseau@ecomstation.com 5 6 7 # 8 # This Makefile builds the 'set(a)boot' 'setboot' replacement for OS/2. 9 # 8 10 9 11 10 # … … 13 12 # This is used to compensate for the differences between the target platforms. 14 13 # 15 !include 14 !include ../../../include/makefile.mif 16 15 17 16 … … 70 69 # we are building on Linux. 71 70 # 72 !ifdef 71 !ifdef __LINUX__ 73 72 !if "$(ASM)"=="masm" | "$(ASM)"=="tasm" | "$(ASM)"=="alp" 74 73 ASM=jwasm … … 77 76 78 77 !if "$(ASM)"=="jwasm" 79 # -Cp 80 # -zcw 78 # -Cp = case sensitive symbols 79 # -zcw = no _ prefix on symbols (C model) 81 80 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err 82 81 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err … … 159 158 # If this Makefile was modified, all targets are forcefully rebuilt. 160 159 # 161 all: 160 all: .SYMBOLIC Makefile.bu header $(TARGETS) footer 162 161 163 162 … … 170 169 # The second method uses the procedure method, no concatenation problem. 171 170 # 172 #all: 171 #all: .SYMBOLIC 173 172 # Recursive method (concatenation problem) 174 173 # @for %%i in (header $(TARGETS) footer) do @$(MAKE) -h %%i … … 181 180 # Show the header. 182 181 # 183 header: 182 header: .SYMBOLIC 184 183 @echo. 185 184 @echo ===================================================================== … … 192 191 # Show the footer. 193 192 # 194 footer: 193 footer: .SYMBOLIC 195 194 @echo All targets up to date ! 196 195 @echo. … … 203 202 # using the new level. 204 203 # 205 Makefile.bu: 204 Makefile.bu: Makefile 206 205 @echo. 207 206 @echo Makefile modified, forcing rebuild of all targets ! … … 247 246 # OS/2 32-bits (LX) 248 247 ############################################################################### 249 $(MODULE).exe: 248 $(MODULE).exe: $(MODULE).obj 250 249 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2 251 @if exist $^. @echo 250 @if exist $^. @echo $^. $(MSG_SUCCESS) 252 251 @echo. 253 252 #~ wstrip $^. … … 255 254 $(MODULE).obj: $(BASENAME).c $(BASENAME).h 256 255 # @echo. 257 @echo TARGET: $^&.exe 256 @echo TARGET: $^&.exe [OS/2 32-bits Executable] 258 257 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).c 259 258 @wdis -fi $^. > $^&.wda … … 268 267 # Rebuild all targets. 269 268 # 270 rebuild: 269 rebuild: .SYMBOLIC 271 270 @%MAKE clean 272 271 @%MAKE all … … 275 274 # Remove all generated files. 276 275 # 277 clean: 276 clean: .SYMBOLIC 278 277 @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i 279 278 @if exist *.obj $(RM) *.obj … … 290 289 # This distributes 'setaboot' 'release'. 291 290 # ----------------------------------------------------------------------------- 292 dist: 291 dist: .SYMBOLIC 293 292 @if exist *.exe $(CP) *.exe ..$(DS)..$(DS)..$(DS)release$(DS)os2 294 293 # 295 294 # Help on using this Makefile. 296 295 # 297 help: 298 @echo. 299 @echo 300 @echo wmaketo build all targets301 @echo wmake showto show the list of buildable targets302 @echo wmake cleanto remove all generated files303 @echo wmake rebuildto rebuild all targets304 @echo wmake help forthis information296 help: .SYMBOLIC 297 @echo. 298 @echo The following actions are available: 299 @echo wmake to build all targets 300 @echo wmake show to show the list of buildable targets 301 @echo wmake clean to remove all generated files 302 @echo wmake rebuild to rebuild all targets 303 @echo wmake help to show this information 305 304 @echo. 306 305 … … 308 307 # Show the list of buildable targets. 309 308 # 310 show: 311 @echo. 312 @echo 313 @for %%i in ($(TARGETS)) do @echo 309 show: .SYMBOLIC 310 @echo. 311 @echo The following [case sensitive] targets can be built: 312 @for %%i in ($(TARGETS)) do @echo %%i 314 313 @echo. 315 314 # Alias for show 316 list: 315 list: .SYMBOLIC 317 316 @%MAKE show 318 317 … … 322 321 .ERROR 323 322 @echo. 324 @echo 325 @echo 326 @echo 327 @echo 328 @echo 323 @echo Oops! 324 @echo Some error occured in this build session. 325 @echo If it's a linker problem, it could be 326 @echo the result of out-of-sync object files. 327 @echo Doing a wmake rebuild might resolve the problem. 329 328 @%MAKE help 330 329 @echo. 331 332
Note:
See TracChangeset
for help on using the changeset viewer.