Changeset 63 for trunk/tools
- Timestamp:
- Oct 9, 2016, 10:53:41 PM (9 years ago)
- Location:
- trunk/tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/internal/GNUmakefile
r60 r63 6 6 # Include the forwarder. 7 7 # 8 include 8 include ../../include/makefrwd.mif -
trunk/tools/internal/Makefile
r60 r63 1 1 ############################################################################### 2 # Makefile :: Builds 'fixcode' program for several platforms. [wmake] # 3 ############################################################################### 4 5 # 6 # This Makefile builds the 'fixcode' program for DOS, Windows, OS/2 and Linux. 7 # It is used to embed the anti-virus code into the AiR-BOOT image. 8 # This anti-virus code protects the MBR and is installed as a TSR by the 9 # loader. That's why it cannot be included at the source level. 10 # 2 # Makefile :: Builds 'fixcode' program for several platforms. [WMake] # 3 # --------------------------------------------------------------------------- # 4 # # 5 # This Makefile builds the 'fixcode' program for DOS, Windows, OS/2 & Linux. # 6 # It is used to embed the anti-virus code into the AiR-BOOT image. # 7 # This anti-virus code protects the MBR and is installed as a TSR by the # 8 # loader. That's why it cannot be included at the source level. # 9 # # 10 ############################################################################### 11 11 12 12 13 # … … 14 15 # This is used to compensate for the differences between the target platforms. 15 16 # 16 !include 17 !include ../../include/makefile.mif 17 18 18 19 … … 69 70 # we are building on Linux. 70 71 # 71 !ifdef 72 !ifdef __LINUX__ 72 73 !if "$(ASM)"=="masm" | "$(ASM)"=="tasm" | "$(ASM)"=="alp" 73 74 ASM=jwasm … … 76 77 77 78 !if "$(ASM)"=="jwasm" 78 # -Cp 79 # -zcw 79 # -Cp = case sensitive symbols 80 # -zcw = no _ prefix on symbols (C model) 80 81 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err 81 82 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err … … 86 87 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 87 88 !elseif "$(ASM)"=="tasm" 88 # -ml 89 # -ml = case sensitive symbols 89 90 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -l 90 91 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -z -zi -c -la … … 141 142 .AFTER 142 143 # @echo == AFTER == 143 !ifdef 144 !ifdef __MSDOS__ 144 145 @echo $(WARN_DOS_BLD_ENV) 145 146 !endif … … 150 151 # If this Makefile was modified, all targets are forcefully rebuilt. 151 152 # 152 all: 153 all: .SYMBOLIC Makefile.bu header $(TARGETS) footer 153 154 154 155 … … 172 173 # Show the header. 173 174 # 174 header: 175 header: .SYMBOLIC 175 176 @echo. 176 177 @echo ===================================================================== … … 183 184 # Show the footer. 184 185 # 185 footer: 186 footer: .SYMBOLIC 186 187 @echo All targets up to date ! 187 188 @echo. … … 194 195 # using the new level. 195 196 # 196 Makefile.bu: 197 Makefile.bu: Makefile 197 198 @echo. 198 199 @echo Makefile modified, forcing rebuild of all targets ! … … 222 223 # DOS 16-bits (COM) 223 224 ############################################################################### 224 $(BASENAME).com: 225 $(BASENAME).com: $(BASENAME).obj 225 226 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 226 @if exist $^. @echo 227 @echo. 228 229 $(BASENAME).obj: 230 # @echo. 231 @echo TARGET: $^&.com 227 @if exist $^. @echo $^. $(MSG_SUCCESS) 228 @echo. 229 230 $(BASENAME).obj: $(BASENAME).asm 231 # @echo. 232 @echo TARGET: $^&.com [DOS 16-bits COM-file] 232 233 $(ASM) $(ASM_FLAGS) $(BASENAME).asm 233 234 @wdis -fi $^. > $^&.wda … … 237 238 # DOS 16-bits (MZ) 238 239 ############################################################################### 239 $(BASENAME)d.exe: 240 $(BASENAME)d.exe: $(BASENAME)d.obj 240 241 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos 241 @if exist $^. @echo 242 @echo. 243 244 $(BASENAME)d.obj: 245 # @echo. 246 @echo TARGET: $^&.exe 242 @if exist $^. @echo $^. $(MSG_SUCCESS) 243 @echo. 244 245 $(BASENAME)d.obj: $(BASENAME).c $(BASENAME).h 246 # @echo. 247 @echo TARGET: $^&.exe [DOS 16-bits Executable] 247 248 $(CC16) $(CC16_FLAGS) -bt=dos $(BASENAME).c 248 249 @wdis -fi $^. > $^&.wda … … 252 253 # NT 32-bits (PE) 253 254 ############################################################################### 254 $(BASENAME)w.exe: 255 $(BASENAME)w.exe: $(BASENAME)w.obj 255 256 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys nt 256 @if exist $^. @echo 257 @echo. 258 259 $(BASENAME)w.obj: 260 # @echo. 261 @echo TARGET: $^&.exe 257 @if exist $^. @echo $^. $(MSG_SUCCESS) 258 @echo. 259 260 $(BASENAME)w.obj: $(BASENAME).c $(BASENAME).h 261 # @echo. 262 @echo TARGET: $^&.exe [NT 32-bits Executable] 262 263 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)nt -bt=nt $(BASENAME).c 263 264 @wdis -fi $^. > $^&.wda … … 267 268 # OS/2 32-bits (LX) 268 269 ############################################################################### 269 $(BASENAME)2.exe: 270 $(BASENAME)2.exe: $(BASENAME)2.obj 270 271 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2 271 @if exist $^. @echo 272 @echo. 273 274 $(BASENAME)2.obj: 275 # @echo. 276 @echo TARGET: $^&.exe 272 @if exist $^. @echo $^. $(MSG_SUCCESS) 273 @echo. 274 275 $(BASENAME)2.obj: $(BASENAME).c $(BASENAME).h 276 # @echo. 277 @echo TARGET: $^&.exe [OS/2 32-bits Executable] 277 278 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).c 278 279 @wdis -fi $^. > $^&.wda … … 282 283 # Linux 32-bits (ELF) 283 284 ############################################################################### 284 $(BASENAME)l.elf: 285 $(BASENAME)l.elf: $(BASENAME)l.obj 285 286 $(LNK) $(LNK_FLAGS) file $^&.obj name $^&.elf sys linux 286 287 # $(MV) $^&.elf $^. 287 @if exist $^. @echo 288 @echo. 289 290 $(BASENAME)l.obj: 291 # @echo. 292 @echo TARGET: $^&.elf 288 @if exist $^. @echo $^. $(MSG_SUCCESS) 289 @echo. 290 291 $(BASENAME)l.obj: $(BASENAME).c $(BASENAME).h 292 # @echo. 293 @echo TARGET: $^&.elf [Linux 32-bits Executable] 293 294 $(CC32) $(CC32_FLAGS) -bt=linux $(BASENAME).c 294 295 @wdis -fi $^. > $^&.wda … … 306 307 # Rebuild all targets. 307 308 # 308 rebuild: 309 rebuild: .SYMBOLIC 309 310 @%MAKE clean 310 311 @%MAKE all … … 313 314 # Remove all generated files. 314 315 # 315 clean: 316 clean: .SYMBOLIC 316 317 @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i 317 318 @if exist *.obj $(RM) *.obj … … 326 327 # Help on using this Makefile. 327 328 # 328 help: 329 @echo. 330 @echo 331 @echo wmaketo build all targets332 @echo wmake showto show the list of buildable targets333 @echo wmake cleanto remove all generated files334 @echo wmake rebuildto rebuild all targets335 @echo wmake help forthis information329 help: .SYMBOLIC 330 @echo. 331 @echo The following actions are available: 332 @echo wmake to build all targets 333 @echo wmake show to show the list of buildable targets 334 @echo wmake clean to remove all generated files 335 @echo wmake rebuild to rebuild all targets 336 @echo wmake help to show this information 336 337 @echo. 337 338 … … 339 340 # Show the list of buildable targets. 340 341 # 341 show: 342 @echo. 343 @echo 344 @for %%i in ($(TARGETS)) do @echo 342 show: .SYMBOLIC 343 @echo. 344 @echo The following [case sensitive] targets can be built: 345 @for %%i in ($(TARGETS)) do @echo %%i 345 346 @echo. 346 347 # Alias for show 347 list: 348 list: .SYMBOLIC 348 349 @%MAKE show 349 350 … … 353 354 .ERROR 354 355 @echo. 355 @echo 356 @echo 357 @echo 358 @echo 359 @echo 356 @echo Oops! 357 @echo Some error occured in this build session. 358 @echo If it's a linker problem, it could be 359 @echo the result of out-of-sync object files. 360 @echo Doing a wmake rebuild might resolve the problem. 360 361 @%MAKE help 361 362 @echo. 362 363 -
trunk/tools/os2/setaboot/GNUmakefile
r60 r63 6 6 # Include the forwarder. 7 7 # 8 include 8 include ../../../include/makefrwd.mif -
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 -
trunk/tools/os2/setaboot/setaboot.h
r57 r63 8 8 */ 9 9 // Vendor 10 #define BLDLVL_VENDOR "KIEWITZ" 10 //~ #define BLDLVL_VENDOR "KIEWITZ" 11 //~ #define BLDLVL_VENDOR "RDPe" 12 #define BLDLVL_VENDOR "*UNKNOWN*" 11 13 // Version 12 14 #define BLDLVL_MAJOR_VERSION "1" 13 15 #define BLDLVL_MIDDLE_VERSION "1" 14 #define BLDLVL_MINOR_VERSION " 0"16 #define BLDLVL_MINOR_VERSION "1" 15 17 // Build date 16 #define BLDLVL_YEAR "201 3"17 #define BLDLVL_MONTH " 04"18 #define BLDLVL_DAY "0 5"18 #define BLDLVL_YEAR "2016" 19 #define BLDLVL_MONTH "10" 20 #define BLDLVL_DAY "09" 19 21 // Build time 20 #define BLDLVL_HOURS "01" 21 #define BLDLVL_MINUTES "01" 22 #define BLDLVL_SECONDS "00" 22 //~ #define BLDLVL_HOURS "01" 23 //~ #define BLDLVL_MINUTES "01" 24 //~ #define BLDLVL_SECONDS "00" 25 #define BLDLVL_HOURS "99" 26 #define BLDLVL_MINUTES "99" 27 #define BLDLVL_SECONDS "99" 23 28 // Build machine 29 //~ #define BLDLVL_MACHINE "OS2BLDBOX" 24 30 #define BLDLVL_MACHINE "*UNKNOWN*" 25 31 // Build language … … 44 50 45 51 46 47 48 52 #ifdef __cplusplus 49 53 };
Note:
See TracChangeset
for help on using the changeset viewer.