Changeset 60
- Timestamp:
- Feb 18, 2016, 5:18:51 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GNUmakefile
r46 r60 6 6 # Include the forwarder. 7 7 # 8 include INCLUDE/MAKEFRWD.MIF8 include include/makefrwd.mif -
trunk/Makefile
r56 r60 8 8 # - The AiR-BOOT Loader Code for all supported languages. 9 9 # - The MBR Protection Image that get's embedded in the loader. 10 # - The FIXCODEprogram that embeds the MBR Protection Image.10 # - The 'fixcode' program that embeds the MBR Protection Image. 11 11 # - The Installers for all supported platforms. 12 # - The SET(A)BOOTprogram for all supported platforms. (currently only OS/2)12 # - The 'set(a)boot' program for all supported platforms. (currently only OS/2) 13 13 14 14 … … 25 25 # with regard to case sensitivity, directory separators, escape characters 26 26 # and other platform differences. 27 # This is handled in MAKEFILE.MIF.27 # This is handled in makefile.mif. 28 28 29 29 … … 45 45 # Include a Master Makefile with several cross-platform definitions and macros. 46 46 # This is used to compensate for the differences between the target platforms. 47 !include INCLUDE/MAKEFILE.MIF47 !include include/makefile.mif 48 48 49 49 … … 55 55 # The order of these Build Directories matters ! 56 56 # 57 # - MBR-PROT ; MBR Protection Image later to be embedded. 58 # - INTERNAL ; FIXBOOT program to embed the Protection Image. 59 # - BOOTCODE ; AiR-BOOT Boot Manager itself. 60 # - INSTALL/C ; Installer for multiple platforms. 61 # - INSTALL/DOS ; Old DOS installer -- will be removed when converted to C. 62 # - SETABOOT ; SETABOOT Manager for OS/2 -- other platforms not yet. 57 # - mbr-prot ; MBR Protection Image later to be embedded. (mbr-prot) 58 # - internal ; Helper program to embed the MBR PI. (fixboot[d][2][w][l]) 59 # - bootcode ; AiR-BOOT Boot Manager itself. (airboot.bin) 60 # - install/c ; Installer for multiple platforms. (install[d][2][w][l]) 61 # - setaboot ; The AiR-BOOT setboot replacement for OS/2. (setaboot) 63 62 # 64 63 COMPONENTS=& 65 BOOTCODE$(DS)MBR-PROT&66 TOOLS$(DS)INTERNAL&67 BOOTCODE&68 INSTALL$(DS)C&69 TOOLS$(DS)OS2$(DS)SETABOOT&64 bootcode$(DS)mbr-prot& 65 tools$(DS)internal& 66 bootcode& 67 install$(DS)c& 68 tools$(DS)os2$(DS)setaboot& 70 69 71 70 … … 75 74 # and the OS/2 setboot replacement (setaboot). 76 75 COMPONENTS2DIST=& 77 BOOTCODE&78 INSTALL$(DS)C&79 TOOLS$(DS)OS2$(DS)SETABOOT&76 bootcode& 77 install$(DS)c& 78 tools$(DS)os2$(DS)setaboot& 80 79 81 80 … … 114 113 115 114 @echo Cleaning up bootcode directory 116 @cd BOOTCODE115 @cd bootcode 117 116 @wmake -h clean 118 117 @cd .. … … 126 125 @echo :: Look in the RELEASE directory for the distribution files :: 127 126 @echo :: for each platform and the bootloader for each language. :: 128 # @echo :: The PACKAGESdirectory contains packages for each supported ::127 # @echo :: The packages directory contains packages for each supported :: 129 128 # @echo :: platform. :: 130 129 @echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: … … 156 155 # ----------------------------------------------------------------------------- 157 156 clean: .SYMBOLIC 158 @cd RELEASE157 @cd release 159 158 @$(MAKE) -h clean 160 159 @cd .. -
trunk/bootcode/GNUmakefile
r37 r60 6 6 # Include the forwarder. 7 7 # 8 include ../ INCLUDE/MAKEFRWD.MIF8 include ../include/makefrwd.mif -
trunk/bootcode/Makefile
r55 r60 1 1 ############################################################################### 2 # Makefile :: Builds the AIRBOOT.BIN 16-bits RAW Loader Image.#2 # Makefile :: Builds the 'airboot.bin' 16-bits RAW Loader Image # 3 3 ############################################################################### 4 4 # rousseau@ecomstation.com 5 # 6 # Derived from the FIXCODE Makefile. 7 # 8 9 # 10 # This Makefile builds the AIRBOOT.BIN program. 5 6 # 7 # This Makefile builds the 'airboot.bin' program. 11 8 # This is the actual AiR-BOOT that you see when starting your system. 12 9 # It operates at the BIOS level and thus without any operating-system … … 21 18 # possible virusses. This detection code is "hooked" into the interrupt-chain 22 19 # and therefore has it's own relocations which are not related to the main 23 # loader image. For this reason, when the main source AIR-BOOT.ASM is assembled 24 # to a RAW image, this virus-protection code is "embedded" as the last step. 25 # You could compare this to binding a resource-file to an OS/2 executable. 20 # loader image. For this reason, when the main source 'air-boot.asm' is 21 # assembled to a RAW image, this virus-protection code is "embedded" as the 22 # last step. You could compare this to binding a resource-file to an OS/2 23 # executable. 26 24 # 27 25 # When AiR-BOOT gets control, this virus-protection code is copied elsewhere … … 31 29 # 32 30 # This embedding proccess consists of three parts: 33 # - Assembling the virus-detection code, MBR_PROT.ASM, which always results31 # - Assembling the virus-detection code, 'mbrprot.asm', which always results 34 32 # in a 1024 bytes image. 35 # - Compiling the FIXCODEprogram that does the actual embedding.36 # - Running the FIXCODE program against AIR-BOOT.COMcreating the37 # final AIRBOOT.BINimage.38 # 39 40 # 41 # After these operations have been completed, the AIRBOOT.BINimage33 # - Compiling the 'fixcode' program that does the actual embedding. 34 # - Running the 'fixcode' program against 'air-boot.com' creating the 35 # final 'airboot.bin' image. 36 # 37 38 # 39 # After these operations have been completed, the 'airboot.bin' image 42 40 # is ready to be installed. 43 41 # 44 45 #46 # The installer is a C program for OS/2 and Win32, using Open Watcom's47 # cross-platform capabilities. The DOS installer is currently an Assembler48 # program, making it harder to maintain and stay in sync with the C version.49 # No Linux installer is available yet, but work is in progress.50 # In future versions the DOS installer will also be built from the C sources51 # as will the Linux version, again using Open Watcom's cross-platform52 # capabilities. I call it 'DWOL': DOS, Windows, OS/2 and Linux.53 #54 55 42 56 43 … … 63 50 # Include a Master Makefile with several cross-platform definitions and macros. 64 51 # This is used to compensate for the differences between the target platforms. 65 !include ../ INCLUDE/MAKEFILE.MIF52 !include ../include/makefile.mif 66 53 67 54 # On my system, JWasm takes forever to generate a list-file when on a network … … 69 56 # makes no difference. If you experience the same, then put a '#' in front of 70 57 # the variable below to keep JWasm from generating a list-file. 71 #JWASM_LIST_FILE=-Fl=$^&.LST 58 JWASM_LIST_FILE=-Fl=$^&.lst 72 59 73 60 # Specifies the level of debugging. … … 92 79 # The various language versions are created by replacing TXT-files 93 80 # and reassembling this file. 94 BASENAME= AIR-BOOT81 BASENAME=air-boot 95 82 96 83 # When you are developing, you might want to do that using your own language. 97 # Using 'wmake dev' will built a module called AIRBOOT.BINwith this language84 # Using 'wmake dev' will built a module called 'airboot.bin' with this language 98 85 # and leave all the intermediate files intact. 99 86 # When developing on a non-RU language version, you need to do a 'wmake RU' … … 102 89 # taking up extra space. If it builds for RU it will build for all other 103 90 # languages. 104 DEV_BLD_LANG= EN91 DEV_BLD_LANG=en 105 92 106 93 # These are the languages that AiR-BOOT can be assembled with. … … 110 97 # will run out-of-space sooner that the other languages. 111 98 # If that happens at least the others will be built. 112 BLD_LANGUAGES= EN DE NL FR IT SW RU113 #BLD_LANGUAGES= EN DE NL99 BLD_LANGUAGES=en de nl fr it sw ru 100 #BLD_LANGUAGES=en de nl 114 101 115 102 # For each language the Assembler source is compiled to a binary image … … 118 105 # When developing the final image is not renamed. 119 106 # Note that it differs from the source basename. 120 MODULE= AIRBOOT107 MODULE=airboot 121 108 122 109 # This is a list of the Targets to be built. 123 # For AiR-BOOT there is only one real target: AIRBOOT.BIN.110 # For AiR-BOOT there is only one real target: 'airboot.bin'. 124 111 # Each language build generates this target and it is later renamed. 125 112 # Only a dev-build does not rename it so it can directly be used by 126 113 # the installer. 127 TARGET=$(MODULE). BIN114 TARGET=$(MODULE).bin 128 115 129 116 #~ %AB_DEV=FALSE … … 181 168 # -Zd = line number debug info 182 169 # -Zi = symbolic debug info 183 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&. ERR184 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&. ERR185 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&. ERR170 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err 171 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err 172 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err 186 173 187 174 # WASM 188 175 !elseif "$(ASM)"=="wasm" 189 176 # -w0 = suppress warnings (wasm is nice to check for missing size qualifiers) 190 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -fo=$^. -fr=$^&. ERR191 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&. ERR192 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&. ERR177 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -fo=$^. -fr=$^&.err 178 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&.err 179 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&.err 193 180 194 181 # TASM … … 201 188 # MASM 202 189 !elseif "$(ASM)"=="masm" 203 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Fo$^. -Sa -Fl$^&. LST204 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&. LST205 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&. LST190 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Fo$^. -Sa -Fl$^&.lst 191 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&.lst 192 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&.lst 206 193 207 194 # ALP -- Does not support '/' for includes so it cannot be used for now. 208 195 !elseif "$(ASM)"=="alp" 209 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR210 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR196 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:obj +Fl +Fel:LST +Fm +Fem:err 197 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 211 198 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP 212 199 … … 245 232 # Open Watcom Linker. 246 233 LNK=wlink 247 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&. MAP248 LNK_FLAGS_D1=op q op v d all op map=$^&. MAP249 LNK_FLAGS_D2=op q op v d all op map=$^&. MAP234 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.map 235 LNK_FLAGS_D1=op q op v d all op map=$^&.map 236 LNK_FLAGS_D2=op q op v d all op map=$^&.map 250 237 LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL)) 251 238 252 239 # These need to be built 253 DEPTARGETS= MBR-PROT ..$(DS)TOOLS$(DS)INTERNAL240 DEPTARGETS=mbr-prot ..$(DS)tools$(DS)internal 254 241 255 242 … … 318 305 # Note that this target is not used as a 'dependency' but 'called' explicitly 319 306 # by the $(BLD_LANGUAGES) target. 320 @echo Include TEXT/$(%BLD_LANG)/MBR.ASM > TEXT$(DS)TXTMBR.ASM321 @echo Include TEXT/$(%BLD_LANG)/MENUS.ASM > TEXT$(DS)TXTMENUS.ASM322 @echo Include TEXT/$(%BLD_LANG)/OTHER.ASM > TEXT$(DS)TXTOTHER.ASM307 @echo include text/$(%BLD_LANG)/mbr.asm > text$(DS)txtmbr.asm 308 @echo include text/$(%BLD_LANG)/menus.asm > text$(DS)txtmenus.asm 309 @echo include text/$(%BLD_LANG)/other.asm > text$(DS)txtother.asm 323 310 324 311 … … 347 334 @echo. 348 335 @echo ** Renaming Target ** 349 $(MV) $(TARGET) AIRBT-$@.BIN336 $(MV) $(TARGET) airbt-$@.bin 350 337 !endif 351 338 # @echo $(%AB_DEV) … … 432 419 # 433 420 # This builds the MBR Protection Image. 434 # It will be embedded into the final AiR-BOOT binary. ( AIRBOOT.BIN)421 # It will be embedded into the final AiR-BOOT binary. (airboot.bin) 435 422 # 436 423 mbrprot: .symbolic … … 438 425 @echo @ Building MBR Protection Image and FixCode first @ 439 426 @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 440 cd MBR-PROT427 cd mbr-prot 441 428 $(MAKE) -h 442 429 cd .. … … 448 435 # 449 436 fixcode: .procedure 450 cd ..$(DS) TOOLS$(DS)INTERNAL437 cd ..$(DS)tools$(DS)internal 451 438 $(MAKE) -h 452 cd ..$(DS)..$(DS) BOOTCODE439 cd ..$(DS)..$(DS)bootcode 453 440 454 441 … … 458 445 459 446 # ----------------------------------------------------------------------------- 460 # FINAL AIRBOOT.BINIMAGE447 # FINAL 'airboot.bin' IMAGE 461 448 # ----------------------------------------------------------------------------- 462 449 # This is the final AiR-BOOT image and has been built for the language … … 467 454 # with NDISASM for cross reference. 468 455 # ----------------------------------------------------------------------------- 469 $(TARGET): .MULTIPLE Makefile.bu $(BASENAME). COM456 $(TARGET): .MULTIPLE Makefile.bu $(BASENAME).com 470 457 @echo $^.: [Final 16-bits raw Binary Image] 471 458 !ifdef __MSDOS__ 472 ..$(DS) TOOLS$(DS)INTERNAL$(DS)FIXCODED.EXE459 ..$(DS)tools$(DS)internal$(DS)fixcoded.exe 473 460 !endif 474 461 !ifdef __OS2__ 475 ..$(DS) TOOLS$(DS)INTERNAL$(DS)FIXCODE2.EXE462 ..$(DS)tools$(DS)internal$(DS)fixcode2.exe 476 463 !endif 477 464 !ifdef __NT__ 478 ..$(DS) TOOLS$(DS)INTERNAL$(DS)FIXCODEW.EXE465 ..$(DS)tools$(DS)internal$(DS)fixcodew.exe 479 466 !endif 480 467 !ifdef __LINUX__ 481 # ..$(DS) TOOLS$(DS)INTERNAL$(DS)FIXCODE482 @chmod +x ..$(DS) TOOLS$(DS)INTERNAL$(DS)FIXCODEL.ELF483 ..$(DS) TOOLS$(DS)INTERNAL$(DS)FIXCODEL.ELF468 # ..$(DS)tools$(DS)internal$(DS)fixcode 469 @chmod +x ..$(DS)tools$(DS)internal$(DS)fixcodel.elf 470 ..$(DS)tools$(DS)internal$(DS)fixcodel.elf 484 471 @chmod +x $^. 485 472 !endif 486 473 @echo. 487 474 !ifndef __MSDOS__ 488 ndisasm $(BASENAME). COM > $(BASENAME).COM.NDA489 ndisasm $(TARGET) > $(TARGET). NDA475 ndisasm $(BASENAME).com > $(BASENAME).com.nda 476 ndisasm $(TARGET) > $(TARGET).nda 490 477 !endif 491 478 @echo. … … 494 481 495 482 # ----------------------------------------------------------------------------- 496 # INTERMEDIATE AIR-BOOT.COMIMAGE483 # INTERMEDIATE 'air-boot.com' IMAGE 497 484 # ----------------------------------------------------------------------------- 498 485 # This is an intermediate image without embedded MBR-protection and code count. 499 # It needs to be post-processed with FIXBOOT.486 # It needs to be post-processed with 'fixboot'. 500 487 # 501 488 # While both DOS COM and RAW linkage generate a flat 16-bits image with … … 504 491 # So we use DOS COM linkage to proteced us from overflow incorrect fixups. 505 492 # ----------------------------------------------------------------------------- 506 $(BASENAME). COM: .MULTIPLE $(BASENAME).OBJ493 $(BASENAME).com: .MULTIPLE $(BASENAME).obj 507 494 @echo $^.: [16-bits non-100h Intermediate Image] 508 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos com509 # $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. form raw510 511 512 # ----------------------------------------------------------------------------- 513 # INTERMEDIATE AIR-BOOT.OBJOBJECT MODULE514 # ----------------------------------------------------------------------------- 515 # This is the result of assembling AIR-BOOT.ASM.516 # It is assembled back twice with WDISfor cross reference.495 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 496 # $(LNK) $(LNK_FLAGS) file $^&.obj name $^. form raw 497 498 499 # ----------------------------------------------------------------------------- 500 # INTERMEDIATE 'air-boot.obj' OBJECT MODULE 501 # ----------------------------------------------------------------------------- 502 # This is the result of assembling 'air-boot.asm'. 503 # It is assembled back twice with 'wdis' for cross reference. 517 504 # - once as an (almost) assemblable source-file 518 505 # - once as a disassembly with opcodes in it 519 506 # ----------------------------------------------------------------------------- 520 $(BASENAME). OBJ: .MULTIPLE $(BASENAME).ASM507 $(BASENAME).obj: .MULTIPLE $(BASENAME).asm 521 508 @echo $^.: [16-bits OMF Object File] 522 $(ASM) $(ASM_FLAGS) $(BASENAME). ASM509 $(ASM) $(ASM_FLAGS) $(BASENAME).asm 523 510 !ifndef __MSDOS__ 524 @wdis -fi $^. > $^.. WDA525 !endif 526 @wdis -a -p -fi $^. > $^&. WDA511 @wdis -fi $^. > $^..wda 512 !endif 513 @wdis -a -p -fi $^. > $^&.wda 527 514 528 515 … … 535 522 # DEVELOPER TARGET 536 523 # ----------------------------------------------------------------------------- 537 # This meta-target builds an AIRBOOT.BIN module using the DEV_BLD_LANG setting.538 # It does not change the file-name to correspond to the language,539 # soit can directly be used by the installer.524 # This meta-target builds an 'airboot.bin' module using the DEV_BLD_LANG 525 # setting. It does not change the file-name to correspond to the language,so 526 # it can directly be used by the installer. 540 527 # This is the main target when developing. 541 528 # ----------------------------------------------------------------------------- … … 555 542 @bldlevel $(TARGET) 556 543 @echo. 557 -@type AIRBOOT.MD5 2> nul558 @md5sum $(TARGET) > AIRBOOT.MD5559 @type AIRBOOT.MD5544 -@type airboot.md5 2> nul 545 @md5sum $(TARGET) > airboot.md5 546 @type airboot.md5 560 547 !endif 561 548 !ifdef __LINUX__ 562 549 @echo. 563 @if exist AIR-BOOT.LST @grep ^zzz_code_space AIR-BOOT.LST564 @echo. 565 @cat AIRBOOT.MD5566 @md5sum $(TARGET) > AIRBOOT.MD5567 @cat AIRBOOT.MD5550 @if exist air-boot.lst @grep ^zzz_code_space air-boot.lst 551 @echo. 552 @cat airboot.md5 553 @md5sum $(TARGET) > airboot.md5 554 @cat airboot.md5 568 555 @echo. 569 556 !endif … … 583 570 # @echo CLEANING UP 584 571 @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i 585 @if exist *. COM $(RM) *.COM586 @if exist *. COM $(RM) *.EXE587 @if exist *. OBJ $(RM) *.OBJ588 @if exist *. WDA $(RM) *.WDA589 @if exist *. NDA $(RM) *.NDA590 @if exist *. MAP $(RM) *.MAP591 @if exist *. LST $(RM) *.LST592 @if exist *. ERR $(RM) *.ERR572 @if exist *.com $(RM) *.com 573 @if exist *.com $(RM) *.exe 574 @if exist *.obj $(RM) *.obj 575 @if exist *.wda $(RM) *.wda 576 @if exist *.nda $(RM) *.nda 577 @if exist *.map $(RM) *.map 578 @if exist *.lst $(RM) *.lst 579 @if exist *.err $(RM) *.err 593 580 @if exist *.o $(RM) *.o 594 581 @%MAKE rmbin 595 582 596 583 # ----------------------------------------------------------------------------- 597 # REMOVE ALL RESIDUAL . BINFILES (old builds)584 # REMOVE ALL RESIDUAL .bin FILES (old builds) 598 585 # ----------------------------------------------------------------------------- 599 586 rmbin: .SYMBOLIC 600 @if exist *. BIN $(RM) *.BIN587 @if exist *.bin $(RM) *.bin 601 588 602 589 … … 604 591 # DISTRIBUTE TO RELEASE SPACE 605 592 # ----------------------------------------------------------------------------- 606 # This distributes all . BIN files to BOOTCODE.607 # Then it installs the English version to RELEASES as AIRBOOT.BIN.593 # This distributes all .bin files to bootcode. 594 # Then it installs the English version to 'release' as 'airboot.bin'. 608 595 # ----------------------------------------------------------------------------- 609 596 dist: .SYMBOLIC 610 @if exist *. BIN $(CP) *.BIN ..$(DS)RELEASE$(DS)BOOTCODE611 @if exist AIRBT-EN.BIN $(CP) AIRBT-EN.BIN ..$(DS)RELEASE$(DS)DOS$(DS)$(TARGET)612 @if exist AIRBT-EN.BIN $(CP) AIRBT-EN.BIN ..$(DS)RELEASE$(DS)WINNT$(DS)$(TARGET)613 @if exist AIRBT-EN.BIN $(CP) AIRBT-EN.BIN ..$(DS)RELEASE$(DS)OS2$(DS)$(TARGET)614 @if exist AIRBT-EN.BIN $(CP) AIRBT-EN.BIN ..$(DS)RELEASE$(DS)LINUX$(DS)$(TARGET)597 @if exist *.bin $(CP) *.bin ..$(DS)release$(DS)bootcode 598 @if exist airbt-en.bin $(CP) airbt-en.bin ..$(DS)release$(DS)dos$(DS)$(TARGET) 599 @if exist airbt-en.bin $(CP) airbt-en.bin ..$(DS)release$(DS)winnt$(DS)$(TARGET) 600 @if exist airbt-en.bin $(CP) airbt-en.bin ..$(DS)release$(DS)os2$(DS)$(TARGET) 601 @if exist airbt-en.bin $(CP) airbt-en.bin ..$(DS)release$(DS)linux$(DS)$(TARGET) 615 602 616 603 … … 626 613 @echo wmake list to show the list of buildable targets 627 614 @echo wmake clean to remove almost all generated files 628 @echo wmake rmbin to remove all residual BINfiles615 @echo wmake rmbin to remove all residual 'bin' files 629 616 @echo wmake rebuild to rebuild all targets 630 617 @echo wmake dist to populate the dist directories -
trunk/bootcode/air-boot.asm
r57 r60 34 34 ; OS/2 BLDLEVEL use this basic version information. 35 35 ; 36 Include VERSION.INC 36 include version.inc 37 37 38 38 ; … … 40 40 ; It uses the version-information in VERSION.INC to build it's signature. 41 41 ; 42 Include BLDLEVEL.INC 42 include bldlevel.inc 43 43 44 44 ; … … 46 46 ; This file contains the ORIGIN macro that is used to detect overlaps. 47 47 ; 48 Include ../INCLUDE/ASM.INC 48 include ../include/asm.inc 49 49 50 50 … … 833 833 834 834 ;------------------------------------------------------------------------------ 835 Include TEXT/TXTMBR.ASM; All translateable Text in MBR835 include text/txtmbr.asm ; All translateable Text in MBR 836 836 ;------------------------------------------------------------------------------ 837 837 … … 1528 1528 1529 1529 b_std_txt: 1530 Include REGULAR/STD_TEXT.ASM; Standard (non-translateable text)1530 include regular/std_text.asm ; Standard (non-translateable text) 1531 1531 size_std_txt = $-b_std_txt 1532 1532 1533 1533 b_driveio: 1534 Include REGULAR/DRIVEIO.ASM; Drive I/O, Config Load/Save1534 include regular/driveio.asm ; Drive I/O, Config Load/Save 1535 1535 size_driveio = $-b_driveio 1536 1536 1537 1537 b_lvm: 1538 Include SPECIAL/LVM.ASM; LVM-specific code1538 include special/lvm.asm ; LVM-specific code 1539 1539 size_lvm = $-b_lvm 1540 1540 1541 1541 b_videoio: 1542 Include REGULAR/VIDEOIO.ASM; Video I/O1542 include regular/videoio.asm ; Video I/O 1543 1543 size_videoio = $-b_videoio 1544 1544 1545 1545 b_timer: 1546 Include REGULAR/TIMER.ASM; Timer1546 include regular/timer.asm ; Timer 1547 1547 size_timer = $-b_timer 1548 1548 1549 1549 b_partmain: 1550 Include REGULAR/PARTMAIN.ASM; Regular Partition Routines1550 include regular/partmain.asm ; Regular Partition Routines 1551 1551 size_partmain = $-b_partmain 1552 1552 1553 1553 b_partscan: 1554 Include REGULAR/PARTSCAN.ASM; Partition Scanning1554 include regular/partscan.asm ; Partition Scanning 1555 1555 size_partscan = $-b_partscan 1556 1556 1557 1557 b_bootmenu: 1558 Include REGULAR/BOOTMENU.ASM; Boot-Menu1558 include regular/bootmenu.asm ; Boot-Menu 1559 1559 size_bootmenu = $-b_bootmenu 1560 1560 1561 1561 b_password: 1562 Include REGULAR/PASSWORD.ASM; Password related1562 include regular/password.asm ; Password related 1563 1563 size_password = $-b_password 1564 1564 1565 1565 b_other: 1566 Include REGULAR/OTHER.ASM; Other Routines1566 include regular/other.asm ; Other Routines 1567 1567 size_other = $-b_other 1568 1568 1569 1569 b_main: 1570 Include SETUP/MAIN.ASM; The whole AiR-BOOT SETUP1570 include setup/main.asm ; The whole AiR-BOOT SETUP 1571 1571 size_main = $-b_main 1572 1572 1573 1573 b_math: 1574 Include REGULAR/MATH.ASM; Math functions (like 32-bit multiply)1574 include regular/math.asm ; Math functions (like 32-bit multiply) 1575 1575 size_math = $-b_math 1576 1576 1577 1577 b_txtother: 1578 Include TEXT/TXTOTHER.ASM; All translateable Text-Strings1578 include text/txtother.asm ; All translateable Text-Strings 1579 1579 size_txtother = $-b_txtother 1580 1580 1581 1581 b_txtmenus: 1582 Include TEXT/TXTMENUS.ASM; All translateable Menu-text1582 include text/txtmenus.asm ; All translateable Menu-text 1583 1583 size_txtmenus = $-b_txtmenus 1584 1584 1585 1585 b_charset: 1586 Include TEXT/CHARSET.ASM; Special Video Charsets (if needed)1586 include text/charset.asm ; Special Video Charsets (if needed) 1587 1587 size_charset = $-b_charset 1588 1588 1589 1589 b_conv: 1590 Include REGULAR/CONV.ASM; Various conversion routines1590 include regular/conv.asm ; Various conversion routines 1591 1591 size_conv = $-b_conv 1592 1592 1593 1593 b_virus: 1594 Include SPECIAL/VIRUS.ASM; Virus Detection / Anti-Virus1594 include special/virus.asm ; Virus Detection / Anti-Virus 1595 1595 size_virus = $-b_virus 1596 1596 1597 1597 ; [Linux support removed since v1.02] 1598 ; Include SPECIAL/FAT16.ASM; FAT-16 Support1599 ; Include SPECIAL/LINUX.ASM; Linux Kernel Support1598 ;include special/fat16.asm ; FAT-16 Support 1599 ;include special/linux.asm ; Linux Kernel Support 1600 1600 1601 1601 b_billsuxx: 1602 Include SPECIAL/F00K/BILLSUXX.ASM; Extended Partition - Microsoft-Hack1602 include special/f00k/billsuxx.asm ; Extended Partition - Microsoft-Hack 1603 1603 size_billsuxx = $-b_billsuxx 1604 1604 1605 1605 b_sound: 1606 Include SPECIAL/SOUND.ASM; Sound1606 include special/sound.asm ; Sound 1607 1607 size_sound = $-b_sound 1608 1608 1609 1609 b_apm: 1610 Include SPECIAL/APM.ASM; Power Managment Support1610 include special/apm.asm ; Power Managment Support 1611 1611 size_apm = $-b_apm 1612 1612 … … 1618 1618 IFDEF TXT_IncludeCyrillic 1619 1619 b_ccharset: 1620 Include SPECIAL/CHARSET.ASM; Charset Support (e.g. Cyrillic)1620 include special/charset.asm ; Charset Support (e.g. Cyrillic) 1621 1621 size_ccharset = $-b_ccharset 1622 1622 ENDIF … … 1625 1625 IFDEF AUX_DEBUG 1626 1626 b_debug: 1627 Include REGULAR/DEBUG.ASM; Debug module1627 include regular/debug.asm ; Debug module 1628 1628 size_debug = $-b_debug 1629 1629 b_auxio: 1630 Include REGULAR/AUXIO.ASM; Com-port support for debugging1630 include regular/auxio.asm ; Com-port support for debugging 1631 1631 size_auxio = $-b_auxio 1632 1632 ENDIF … … 1639 1639 IFDEF FX_ENABLED 1640 1640 b_fx: 1641 Include SPECIAL/FX.ASM; l33t Cooper-Bars/Scrolling <bg>1641 include special/fx.asm ; l33t Cooper-Bars/Scrolling <bg> 1642 1642 size_fx = $-b_fx 1643 1643 ENDIF … … 1805 1805 ; It has been decided that uneven minor numbers will be 1806 1806 ; test-versions. Therefore v1.0.8 has been bumbed to v1.1.0. 1807 ; 1807 ; 1808 1808 ; It is not required for the config to have the 1809 1809 ; same version as the code, so in the future -
trunk/bootcode/airboot.md5
r57 r60 1 92fc6c0fd19a5e86b7359da216663576 *AIRBOOT.BIN1 92fc6c0fd19a5e86b7359da216663576 airboot.bin -
trunk/bootcode/mbr-prot/GNUmakefile
r37 r60 6 6 # Include the forwarder. 7 7 # 8 include ../../ INCLUDE/MAKEFRWD.MIF8 include ../../include/makefrwd.mif -
trunk/bootcode/mbr-prot/Makefile
r51 r60 1 1 ############################################################################### 2 # Makefile :: Builds the MBR-PROT.BIN 16-bits RAW Protection Image.#2 # Makefile :: Builds the 'mbr-prot.bin' 16-bits RAW Protection Image # 3 3 ############################################################################### 4 4 # rousseau@ecomstation.com 5 # 6 # Derived from the AIR-BOOT Makefile. 7 # 8 9 # 10 # This Makefile builds the MBR_PROT.BIN image. 11 # This image is embedded in the AIRBOOT.BIN image to provide virus protection. 12 # The FIXCODE program embeds this image in AIRBOOT.BIN. 5 6 # 7 # This Makefile builds the 'mbr_prot.bin' image. 8 # This image is embedded in the 'airboot.bin' image to provide virus protection. 9 # The 'fixcode' program embeds this image in 'airboot.bin'. 13 10 # 14 11 … … 18 15 # This is used to compensate for the differences between the target platforms. 19 16 # 20 !include ../../ INCLUDE/MAKEFILE.MIF17 !include ../../include/makefile.mif 21 18 22 19 # … … 45 42 # Source Level base-name of Target to build. 46 43 # 47 BASENAME= MBR-PROT44 BASENAME=mbr-prot 48 45 49 46 # … … 54 51 # 55 52 # This is a list of the Targets to be built. 56 # For MBR_PROT there is only one real target: MBR-PROT.BIN.57 # 58 TARGET=$(MODULE). BIN53 # For MBR_PROT there is only one real target: mbr-prot.bin. 54 # 55 TARGET=$(MODULE).bin 59 56 60 57 # … … 81 78 # -Cp = case sensitive symbols 82 79 # -zcw = no _ prefix on symbols (C model) 83 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Fo$^&. OBJ -Sa -Fl=$^&.LST -Fw$^&.ERR84 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&. OBJ -Sa -Fl=$^&.LST -Fw$^&.ERR85 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&. OBJ -Sa -Fl=$^&.LST -Fw$^&.ERR80 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err 81 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err 82 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err 86 83 !elseif "$(ASM)"=="masm" 87 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -fo=$^&. OBJ -fr=$^&.ERR88 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&. OBJ -fr=$^&.ERR89 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&. OBJ -fr=$^&.ERR84 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -fo=$^&.obj -fr=$^&.err 85 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&.obj -fr=$^&.err 86 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&.obj -fr=$^&.err 90 87 !elseif "$(ASM)"=="wasm" 91 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -fo=$^&. OBJ -fr=$^&.ERR92 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&. OBJ -fr=$^&.ERR93 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&. OBJ -fr=$^&.ERR88 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -fo=$^&.obj -fr=$^&.err 89 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err 90 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err 94 91 !elseif "$(ASM)"=="tasm" 95 92 # -ml = case sensitive symbols … … 98 95 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -z -zi -c -la 99 96 !elseif "$(ASM)"=="alp" 100 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR101 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR97 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err 98 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 102 99 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP 103 100 !else … … 110 107 # 111 108 LNK=wlink 112 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&. MAP113 LNK_FLAGS_D1=op q op v d all op map=$^&. MAP114 LNK_FLAGS_D2=op q op v d all op map=$^&. MAP109 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.map 110 LNK_FLAGS_D1=op q op v d all op map=$^&.map 111 LNK_FLAGS_D2=op q op v d all op map=$^&.map 115 112 LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL)) 116 113 … … 179 176 180 177 ############################################################################### 181 # 16-bits RAW :: MBR virus protection to be embedded in the AIRBOOT.BIN image.182 ############################################################################### 183 #$(TARGET): $(BASENAME). COM184 # $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos com185 # $(CP) $(BASENAME). COM$(TARGET)178 # 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image 179 ############################################################################### 180 #$(TARGET): $(BASENAME).com 181 # $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 182 # $(CP) $(BASENAME).com $(TARGET) 186 183 # @echo $(%BLD_LANG)>$^. 187 184 # @if exist $^. @echo $^. $(MSG_SUCCESS) - [$(%BLD_LANG) version] … … 192 189 193 190 ############################################################################### 194 # 16-bits RAW :: MBR virus protection to be embedded in the AIRBOOT.BIN image.195 ############################################################################### 196 $(TARGET): $(BASENAME). ASM191 # 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image 192 ############################################################################### 193 $(TARGET): $(BASENAME).asm 197 194 @echo TARGET: $^. [DOS 16-bits Raw Image] 198 $(ASM) $(ASM_FLAGS) $(BASENAME). ASM199 @wdis -fi $^&. OBJ > $^&.WDA200 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos com201 # $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. form raw195 $(ASM) $(ASM_FLAGS) $(BASENAME).asm 196 @wdis -fi $^&.obj > $^&.wda 197 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 198 # $(LNK) $(LNK_FLAGS) file $^&.obj name $^. form raw 202 199 @if exist $^. @echo $^. $(MSG_SUCCESS) 203 @ndisasm -k9,0 $^. > $^&. NDA204 # @echo. 205 206 #$(BASENAME). OBJ: $(BASENAME).ASM200 @ndisasm -k9,0 $^. > $^&.nda 201 # @echo. 202 203 #$(BASENAME).obj: $(BASENAME).asm 207 204 # @echo. 208 205 # @echo TARGET: $^. [DOS 16-bits Raw Image] 209 # $(ASM) $(ASM_FLAGS) $(BASENAME). ASM210 # @wdis -fi $^. > $^&. WDA206 # $(ASM) $(ASM_FLAGS) $(BASENAME).asm 207 # @wdis -fi $^. > $^&.wda 211 208 212 209 … … 230 227 # @echo CLEANING UP 231 228 # @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i 232 @if exist *. COM $(RM) *.COM233 @if exist *. BIN $(RM) *.BIN234 @if exist *. OBJ $(RM) *.OBJ235 @if exist *. WDA $(RM) *.WDA236 @if exist *. NDA $(RM) *.NDA237 @if exist *. MAP $(RM) *.MAP238 @if exist *. LST $(RM) *.LST239 @if exist *. ERR $(RM) *.ERR229 @if exist *.com $(RM) *.com 230 @if exist *.bin $(RM) *.bin 231 @if exist *.obj $(RM) *.obj 232 @if exist *.wda $(RM) *.wda 233 @if exist *.nda $(RM) *.nda 234 @if exist *.map $(RM) *.map 235 @if exist *.lst $(RM) *.lst 236 @if exist *.err $(RM) *.err 240 237 @if exist *.o $(RM) *.o 241 238 … … 244 241 # 245 242 rmbin: .SYMBOLIC 246 @if exist *. BIN $(RM) *.BIN243 @if exist *.bin $(RM) *.bin 247 244 248 245 -
trunk/bootcode/setup/main.asm
r57 r60 32 32 SETUP_UpperFixString db 'SETUP ',0 ; AddOn for "AiR-BOOT SETUP vX.XX" 33 33 34 Include SETUP/MENUS.ASM; Menu structures35 Include SETUP/PART_SET.ASM; Partition Setup (in extra file)34 include setup/menus.asm ; Menu structures 35 include setup/part_set.asm ; Partition Setup (in extra file) 36 36 37 37 ; CH - Current Item Number -
trunk/bootcode/special/fx.asm
r57 r60 27 27 ; If you rip this code, I will ./ your ass. =] 28 28 29 Include SPECIAL/FXTABLES.ASM 29 include special/fxtables.asm 30 30 31 31 FX_MaxScanLine equ 384 -
trunk/bootcode/text/txtmbr.asm
r57 r60 1 Include TEXT/EN/MBR.ASM 1 include text/en/mbr.asm -
trunk/bootcode/text/txtmenus.asm
r57 r60 1 Include TEXT/EN/MENUS.ASM 1 include text/en/menus.asm -
trunk/bootcode/text/txtother.asm
r57 r60 1 Include TEXT/EN/OTHER.ASM 1 include text/en/other.asm -
trunk/include/makefile.mif
r57 r60 1 1 ############################################################################### 2 # MAKEFILE.MIF:: Make Include File -- Defines Cross Platform Stuff. [wmake] #2 # makefile.mif :: Make Include File -- Defines Cross Platform Stuff. [wmake] # 3 3 ############################################################################### 4 4 -
trunk/include/makefrwd.mif
r57 r60 1 1 ############################################################################### 2 # MAKEFRWD.MIF:: Make Include -- Forwards GNU Make to other Make Utilities. #2 # makefrwd.mif :: Make Include -- Forwards GNU Make to other Make Utilities. # 3 3 ############################################################################### 4 4 … … 76 76 %: 77 77 @echo $(HEADER) with target: $(LQ)$@$(RQ) 78 @$(OTHER_MAKE) $@78 @$(OTHER_MAKE) -h $@ -
trunk/install/c/GNUmakefile
r46 r60 6 6 # Include the forwarder. 7 7 # 8 include ../../ INCLUDE/MAKEFRWD.MIF8 include ../../include/makefrwd.mif -
trunk/install/c/Makefile
r55 r60 3 3 ############################################################################### 4 4 # rousseau@ecomstation.com 5 #6 # Derived from the FIXCODE Makefile.7 #8 5 9 6 # 10 7 # This Makefile builds the Installer for DOS, Windows, OS/2 and Linux. 11 # Like FIXCODE, each platform version has a letter appended it:8 # Like 'fixcode', each platform version has a letter appended it: 12 9 # 'D' for DOS, 'W' for Windows, '2' for OS/2 and 'L' for Linux. 13 10 # … … 17 14 # This is used to compensate for the differences between the target platforms. 18 15 # 19 !include ../../ INCLUDE/MAKEFILE.MIF16 !include ../../include/makefile.mif 20 17 21 18 … … 52 49 # Base Name of Source Program to compile. 53 50 # 54 BASENAME= INSTALL51 BASENAME=install 55 52 56 53 # … … 59 56 # D=DOS, W=Windows, 2=OS2, L=Linux. 60 57 # 61 MODULE= AIRBOOT58 MODULE=airboot 62 59 63 60 # 64 61 # This is a list of the Targets to be built. 65 62 # 66 TARGETS=$(MODULE) D.EXE $(MODULE)W.EXE $(MODULE)2.EXE $(MODULE)L.ELF63 TARGETS=$(MODULE)d.exe $(MODULE)w.exe $(MODULE)2.exe $(MODULE)l.elf 67 64 68 65 … … 89 86 # -Cp = case sensitive symbols 90 87 # -zcw = no _ prefix on symbols (C model) 91 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&. LST -Fw$^&.ERR92 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&. LST -Fw$^&.ERR93 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&. LST -Fw$^&.ERR88 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err 89 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err 90 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err 94 91 !elseif "$(ASM)"=="wasm" 95 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&. ERR96 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&. ERR97 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&. ERR92 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.err 93 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 94 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 98 95 !elseif "$(ASM)"=="tasm" 99 96 # -ml = case sensitive symbols … … 102 99 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -z -zi -c -la 103 100 !elseif "$(ASM)"=="alp" 104 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR105 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR106 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR101 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err 102 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 103 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 107 104 !else 108 105 !error Unknown Assembler specified ! … … 116 113 CPU=-2 117 114 CC16=wcc 118 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -w4 -e25 -zq -osexan -fo=$^. -fr=$^&. ERR119 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d2 -w4 -e25 -zq -on -fo=$^. -fr=$^&. ERR120 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&. ERR115 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -w4 -e25 -zq -osexan -fo=$^. -fr=$^&.err 116 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d2 -w4 -e25 -zq -on -fo=$^. -fr=$^&.err 117 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err 121 118 CC16_FLAGS=$(CC16_FLAGS_D$(DEBUG_LEVEL)) 122 119 … … 126 123 MM32=-mf 127 124 CC32=wcc386 128 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -osexan -6r -fo=$^. -fr=$^&. ERR129 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -on -6r -fo=$^. -fr=$^&. ERR130 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&. ERR125 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -osexan -6r -fo=$^. -fr=$^&.err 126 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -on -6r -fo=$^. -fr=$^&.err 127 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err 131 128 CC32_FLAGS=$(CC32_FLAGS_D$(DEBUG_LEVEL)) 132 129 … … 141 138 # 142 139 #~ LNK_FLAGS_D0=op q op v op map=$^&.MAP op de '\x40\x23KIEWITZ:1.18\x23\x40\x41iR-BOOT Installer by Kiewitz' 143 LNK_FLAGS_D0=op q op v op map=$^&. MAP140 LNK_FLAGS_D0=op q op v op map=$^&.map 144 141 #~ LNK_FLAGS_D1=op q op v d all & 145 142 #~ order clname CODE clname FAR_CONST clname FAR_DATA clnam BEGDATA clname DATA clname BSS clname STACK clname BLAP NOE & 146 143 #~ op map=$^&.MAP 147 LNK_FLAGS_D1=op q op v d all op map=$^&. MAP148 LNK_FLAGS_D2=op q op v d all op map=$^&. MAP144 LNK_FLAGS_D1=op q op v d all op map=$^&.map 145 LNK_FLAGS_D2=op q op v d all op map=$^&.map 149 146 LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL)) 150 147 … … 195 192 @echo. 196 193 @echo ===================================================================== 197 @echo = PROGRAM: INSTALL Multi Platform[DOS, Win32, OS/2 and Linux] =194 @echo = PROGRAM: 'install' Multi Platform [DOS, Win32, OS/2 and Linux] = 198 195 @echo ===================================================================== 199 196 # @echo. … … 258 255 # DOS 16-bits (MZ) 259 256 ############################################################################### 260 $(MODULE) D.EXE: $(MODULE)D.OBJ257 $(MODULE)d.exe: $(MODULE)d.obj 261 258 # @cat $^&.MD5 262 $(LNK) $(LNK_FLAGS) op stack=8192 file $^&. OBJname $^. sys dos263 # @md5sum $^. > $^&. MD5264 # @cat $^&. MD5265 @wdump $^. > $^&. WDU259 $(LNK) $(LNK_FLAGS) op stack=8192 file $^&.obj name $^. sys dos 260 # @md5sum $^. > $^&.md5 261 # @cat $^&.md5 262 @wdump $^. > $^&.wdu 266 263 @if exist $^. @echo $^. $(MSG_SUCCESS) 267 264 @echo. 268 265 #~ wstrip $^. 269 266 270 $(MODULE) D.OBJ: $(BASENAME).C $(BASENAME).H267 $(MODULE)d.obj: $(BASENAME).c $(BASENAME).h 271 268 # @echo. 272 @echo TARGET: $^&. EXE[DOS 16-bits Executable]273 $(CC16) $(CC16_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os21x -bt=dos $(BASENAME). C274 @wdis -fi $^. > $^&. WDA269 @echo TARGET: $^&.exe [DOS 16-bits Executable] 270 $(CC16) $(CC16_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os21x -bt=dos $(BASENAME).c 271 @wdis -fi $^. > $^&.wda 275 272 276 273 … … 278 275 # NT 32-bits (PE) 279 276 ############################################################################### 280 $(MODULE) W.EXE: $(MODULE)W.OBJ281 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys nt282 @wdump $^. > $^&. WDU277 $(MODULE)w.exe: $(MODULE)w.obj 278 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys nt 279 @wdump $^. > $^&.wdu 283 280 @if exist $^. @echo $^. $(MSG_SUCCESS) 284 281 @echo. 285 282 286 $(MODULE) W.OBJ: $(BASENAME).C $(BASENAME).H283 $(MODULE)w.obj: $(BASENAME).c $(BASENAME).h 287 284 # @echo. 288 @echo TARGET: $^&. EXE[NT 32-bits Executable]289 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)nt -bt=nt $(BASENAME). C290 @wdis -fi $^. > $^&. WDA285 @echo TARGET: $^&.exe [NT 32-bits Executable] 286 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)nt -bt=nt $(BASENAME).c 287 @wdis -fi $^. > $^&.wda 291 288 292 289 … … 294 291 # OS/2 32-bits (LX) 295 292 ############################################################################### 296 $(MODULE)2. EXE: $(MODULE)2.OBJ297 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys os2v2298 @wdump $^. > $^&. WDU293 $(MODULE)2.exe: $(MODULE)2.obj 294 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2 295 @wdump $^. > $^&.wdu 299 296 @if exist $^. @echo $^. $(MSG_SUCCESS) 300 297 @echo. 301 298 #~ wstrip $^. 302 299 303 $(MODULE)2. OBJ: $(BASENAME).C $(BASENAME).H300 $(MODULE)2.obj: $(BASENAME).c $(BASENAME).h 304 301 # @echo. 305 @echo TARGET: $^&. EXE[OS/2 32-bits Executable]306 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME). C307 @wdis -fi $^. > $^&. WDA302 @echo TARGET: $^&.exe [OS/2 32-bits Executable] 303 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).c 304 @wdis -fi $^. > $^&.wda 308 305 309 306 … … 311 308 # Linux 32-bits (ELF) 312 309 ############################################################################### 313 $(MODULE) L.ELF: $(MODULE)L.OBJ314 $(LNK) $(LNK_FLAGS) file $^&. OBJ name $^&.ELFsys linux315 @wdump $^. > $^&. WDU316 # $(MV) $^&. ELF$^.310 $(MODULE)l.elf: $(MODULE)l.obj 311 $(LNK) $(LNK_FLAGS) file $^&.obj name $^&.elf sys linux 312 @wdump $^. > $^&.wdu 313 # $(MV) $^&.elf $^. 317 314 @if exist $^. @echo $^. $(MSG_SUCCESS) 318 315 @echo. 319 316 320 $(MODULE) L.OBJ: $(BASENAME).C $(BASENAME).H317 $(MODULE)l.obj: $(BASENAME).c $(BASENAME).h 321 318 # @echo. 322 @echo TARGET: $^&. ELF[Linux 32-bits Executable]323 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=linux $(BASENAME). C324 @wdis -fi $^. > $^&. WDA319 @echo TARGET: $^&.elf [Linux 32-bits Executable] 320 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=linux $(BASENAME).c 321 @wdis -fi $^. > $^&.wda 325 322 326 323 … … 337 334 # DISTRIBUTE TO RELEASE SPACE 338 335 # ----------------------------------------------------------------------------- 339 # This distributes all .BIN files to BOOTCODE.340 # Then it installs the English version to RELEASES as AIRBOOT.BIN.336 # This distributes all '.bin' files to 'bootcode'. 337 # Then it installs the English version to 'releases' as 'airboot.bin'. 341 338 # ----------------------------------------------------------------------------- 342 339 dist: .SYMBOLIC 343 @if exist AIRBOOT2.EXE $(CP) AIRBOOT2.EXE ..$(DS)..$(DS)RELEASE$(DS)OS2344 @if exist AIRBOOTD.EXE $(CP) AIRBOOTD.EXE ..$(DS)..$(DS)RELEASE$(DS)DOS345 @if exist AIRBOOTL.ELF $(CP) AIRBOOTL.ELF ..$(DS)..$(DS)RELEASE$(DS)LINUX346 @if exist AIRBOOTW.EXE $(CP) AIRBOOTW.EXE ..$(DS)..$(DS)RELEASE$(DS)WINNT340 @if exist airboot2.exe $(CP) airboot2.exe ..$(DS)..$(DS)release$(DS)os2 341 @if exist airbootd.exe $(CP) airbootd.exe ..$(DS)..$(DS)release$(DS)dos 342 @if exist airbootl.elf $(CP) airbootl.elf ..$(DS)..$(DS)release$(DS)linux 343 @if exist airbootw.exe $(CP) airbootw.exe ..$(DS)..$(DS)release$(DS)winnt 347 344 348 345 # … … 358 355 clean: .SYMBOLIC 359 356 @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i 360 @if exist *. OBJ $(RM) *.OBJ361 @if exist *. WDA $(RM) *.WDA362 @if exist *. WDU $(RM) *.WDU363 @if exist *. NDA $(RM) *.NDA364 @if exist *. MAP $(RM) *.MAP365 @if exist *. LST $(RM) *.LST366 @if exist *. ERR $(RM) *.ERR357 @if exist *.obj $(RM) *.obj 358 @if exist *.wda $(RM) *.wda 359 @if exist *.wdu $(RM) *.wdu 360 @if exist *.nda $(RM) *.nda 361 @if exist *.map $(RM) *.map 362 @if exist *.lst $(RM) *.lst 363 @if exist *.err $(RM) *.err 367 364 @if exist *.o $(RM) *.o 368 365 -
trunk/install/c/install.c
r57 r60 19 19 20 20 21 #include " INSTALL.H"21 #include "install.h" 22 22 23 23 … … 1567 1567 1568 1568 1569 // Allocate buffers for Track0 and AIRBOOT.BIN.1569 // Allocate buffers for Track0 and 'airboot.bin'. 1570 1570 Track0 = malloc(SECTOR_COUNT * BYTES_PER_SECTOR); 1571 1571 Bootcode = malloc(SECTOR_COUNT * BYTES_PER_SECTOR); -
trunk/install/c/install.h
r57 r60 112 112 113 113 /* Rousseau: added */ 114 #define IMAGE_NAME " AIRBOOT.BIN"114 #define IMAGE_NAME "airboot.bin" 115 115 #define GPT 0xEE // GPT Disk, AiR-BOOT will abort 116 116 #define BYTES_PER_SECTOR 512 // This could be higher in the future -
trunk/install/floppy/kernel.asm
r57 r60 33 33 StackSeg equ 7000h 34 34 35 Include ../../INCLUDE/ASM.INC 35 include ../../include/asm.inc 36 36 37 37 .386p … … 122 122 APILockVolume: retn 123 123 124 Include ../INST_X86/INSTALL.INC; Execute generic code124 include ../inst_x86/install.inc ; Execute generic code 125 125 COM_EndOfSegment: 126 126 -
trunk/release/Makefile
r56 r60 5 5 # Include a Master Makefile with several cross-platform definitions and macros. 6 6 # This is used to compensate for the differences between the target platforms. 7 !include ../ INCLUDE/MAKEFILE.MIF7 !include ../include/makefile.mif 8 8 9 9 default: .SYMBOLIC … … 17 17 @echo @@ CLEANING RELEASE DIRECTORIES 18 18 @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 19 @cd BOOTCODE19 @cd bootcode 20 20 @cd 21 @if exist *. BIN $(RM) *.BIN22 @if exist *. EXE $(RM) *.EXE23 @if exist *. ELF $(RM) *.ELF21 @if exist *.bin $(RM) *.bin 22 @if exist *.exe $(RM) *.exe 23 @if exist *.elf $(RM) *.elf 24 24 @cd .. 25 @cd DOS25 @cd dos 26 26 @cd 27 @if exist *. BIN $(RM) *.BIN28 @if exist *. EXE $(RM) *.EXE29 @if exist *. ELF $(RM) *.ELF27 @if exist *.bin $(RM) *.bin 28 @if exist *.exe $(RM) *.exe 29 @if exist *.elf $(RM) *.elf 30 30 @cd .. 31 @cd LINUX31 @cd linux 32 32 @cd 33 @if exist *. BIN $(RM) *.BIN34 @if exist *. EXE $(RM) *.EXE35 @if exist *. ELF $(RM) *.ELF33 @if exist *.bin $(RM) *.bin 34 @if exist *.exe $(RM) *.exe 35 @if exist *.elf $(RM) *.elf 36 36 @cd .. 37 @cd OS237 @cd os2 38 38 @cd 39 @if exist *. BIN $(RM) *.BIN40 @if exist *. EXE $(RM) *.EXE41 @if exist *. ELF $(RM) *.ELF39 @if exist *.bin $(RM) *.bin 40 @if exist *.exe $(RM) *.exe 41 @if exist *.elf $(RM) *.elf 42 42 @cd .. 43 @cd WINNT43 @cd winnt 44 44 @cd 45 @if exist *. BIN $(RM) *.BIN46 @if exist *. EXE $(RM) *.EXE47 @if exist *. ELF $(RM) *.ELF45 @if exist *.bin $(RM) *.bin 46 @if exist *.exe $(RM) *.exe 47 @if exist *.elf $(RM) *.elf 48 48 @cd .. -
trunk/tools/internal/GNUmakefile
r37 r60 6 6 # Include the forwarder. 7 7 # 8 include ../../ INCLUDE/MAKEFRWD.MIF8 include ../../include/makefrwd.mif -
trunk/tools/internal/Makefile
r55 r60 1 1 ############################################################################### 2 # Makefile :: Builds FIXCODE program for several platforms.[wmake] #3 ############################################################################### 4 5 # 6 # This Makefile builds the FIXCODEprogram for DOS, Windows, OS/2 and Linux.7 # FIXCODEis used to embed the anti-virus code into the AiR-BOOT image.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 8 # This anti-virus code protects the MBR and is installed as a TSR by the 9 9 # loader. That's why it cannot be included at the source level. … … 14 14 # This is used to compensate for the differences between the target platforms. 15 15 # 16 !include ../../ INCLUDE/MAKEFILE.MIF16 !include ../../include/makefile.mif 17 17 18 18 … … 46 46 # The DOS COM-version has no suffix. 47 47 # 48 BASENAME= FIXCODE48 BASENAME=fixcode 49 49 50 50 # 51 51 # This is a list of the Targets to be built. 52 52 # 53 #TARGETS=$(BASENAME) D.EXE54 #TARGETS=$(BASENAME). COM55 #TARGETS=$(BASENAME). COM $(BASENAME)D.EXE $(BASENAME)W.EXE $(BASENAME)2.EXE $(BASENAME)L.ELF56 TARGETS=$(BASENAME) D.EXE $(BASENAME)W.EXE $(BASENAME)2.EXE $(BASENAME)L.ELF53 #TARGETS=$(BASENAME)d.exe 54 #TARGETS=$(BASENAME).com 55 #TARGETS=$(BASENAME).com $(BASENAME)d.exe $(BASENAME)w.exe $(BASENAME)2.exe $(BASENAME)l.elf 56 TARGETS=$(BASENAME)d.exe $(BASENAME)w.exe $(BASENAME)2.exe $(BASENAME)l.elf 57 57 58 58 # … … 78 78 # -Cp = case sensitive symbols 79 79 # -zcw = no _ prefix on symbols (C model) 80 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&. LST -Fw$^&.ERR81 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&. LST -Fw$^&.ERR82 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&. LST -Fw$^&.ERR80 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err 81 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err 82 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err 83 83 !elseif "$(ASM)"=="wasm" 84 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&. ERR85 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&. ERR86 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&. ERR84 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.err 85 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 86 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 87 87 !elseif "$(ASM)"=="tasm" 88 88 # -ml = case sensitive symbols … … 91 91 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -z -zi -c -la 92 92 !elseif "$(ASM)"=="alp" 93 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR94 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR93 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err 94 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 95 95 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP 96 96 !else … … 104 104 CC16=wcc 105 105 MM16=-ml 106 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&. ERR107 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&. ERR108 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&. ERR106 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&.err 107 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err 108 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err 109 109 CC16_FLAGS=$(CC16_FLAGS_D$(DEBUG_LEVEL)) 110 110 … … 114 114 MM32=-mf 115 115 CC32=wcc386 116 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&. ERR117 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&. ERR118 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&. ERR116 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&.err 117 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err 118 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err 119 119 CC32_FLAGS_R=-w4 -e25 -zq -od -6r -mf -fo=$^. 120 120 CC32_FLAGS=$(CC32_FLAGS_D$(DEBUG_LEVEL)) … … 124 124 # 125 125 LNK=wlink 126 LNK_FLAGS_D0=op q op v op map=$^&. MAP127 LNK_FLAGS_D1=op q op v d all op map=$^&. MAP128 LNK_FLAGS_D2=op q op v d all op map=$^&. MAP126 LNK_FLAGS_D0=op q op v op map=$^&.map 127 LNK_FLAGS_D1=op q op v d all op map=$^&.map 128 LNK_FLAGS_D2=op q op v d all op map=$^&.map 129 129 LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL)) 130 130 … … 175 175 @echo. 176 176 @echo ===================================================================== 177 @echo = PROGRAM: FIXCODE Multi Platform[DOS, Win32, OS/2 and Linux] =177 @echo = PROGRAM: 'fixcode' Multi Platform [DOS, Win32, OS/2 and Linux] = 178 178 @echo ===================================================================== 179 179 # @echo. … … 222 222 # DOS 16-bits (COM) 223 223 ############################################################################### 224 $(BASENAME). COM: $(BASENAME).OBJ225 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos com226 @if exist $^. @echo $^. $(MSG_SUCCESS) 227 @echo. 228 229 $(BASENAME). OBJ: $(BASENAME).ASM230 # @echo. 231 @echo TARGET: $^&. COM[DOS 16-bits COM-file]232 $(ASM) $(ASM_FLAGS) $(BASENAME). ASM233 @wdis -fi $^. > $^&. WDA224 $(BASENAME).com: $(BASENAME).obj 225 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 226 @if exist $^. @echo $^. $(MSG_SUCCESS) 227 @echo. 228 229 $(BASENAME).obj: $(BASENAME).asm 230 # @echo. 231 @echo TARGET: $^&.com [DOS 16-bits COM-file] 232 $(ASM) $(ASM_FLAGS) $(BASENAME).asm 233 @wdis -fi $^. > $^&.wda 234 234 235 235 … … 237 237 # DOS 16-bits (MZ) 238 238 ############################################################################### 239 $(BASENAME) D.EXE: $(BASENAME)D.OBJ240 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos241 @if exist $^. @echo $^. $(MSG_SUCCESS) 242 @echo. 243 244 $(BASENAME) D.OBJ: $(BASENAME).C $(BASENAME).H245 # @echo. 246 @echo TARGET: $^&. EXE[DOS 16-bits Executable]247 $(CC16) $(CC16_FLAGS) -bt=dos $(BASENAME). C248 @wdis -fi $^. > $^&. WDA239 $(BASENAME)d.exe: $(BASENAME)d.obj 240 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos 241 @if exist $^. @echo $^. $(MSG_SUCCESS) 242 @echo. 243 244 $(BASENAME)d.obj: $(BASENAME).c $(BASENAME).h 245 # @echo. 246 @echo TARGET: $^&.exe [DOS 16-bits Executable] 247 $(CC16) $(CC16_FLAGS) -bt=dos $(BASENAME).c 248 @wdis -fi $^. > $^&.wda 249 249 250 250 … … 252 252 # NT 32-bits (PE) 253 253 ############################################################################### 254 $(BASENAME) W.EXE: $(BASENAME)W.OBJ255 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys nt256 @if exist $^. @echo $^. $(MSG_SUCCESS) 257 @echo. 258 259 $(BASENAME) W.OBJ: $(BASENAME).C $(BASENAME).H260 # @echo. 261 @echo TARGET: $^&. EXE[NT 32-bits Executable]262 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)nt -bt=nt $(BASENAME). C263 @wdis -fi $^. > $^&. WDA254 $(BASENAME)w.exe: $(BASENAME)w.obj 255 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys nt 256 @if exist $^. @echo $^. $(MSG_SUCCESS) 257 @echo. 258 259 $(BASENAME)w.obj: $(BASENAME).c $(BASENAME).h 260 # @echo. 261 @echo TARGET: $^&.exe [NT 32-bits Executable] 262 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)nt -bt=nt $(BASENAME).c 263 @wdis -fi $^. > $^&.wda 264 264 265 265 … … 267 267 # OS/2 32-bits (LX) 268 268 ############################################################################### 269 $(BASENAME)2. EXE: $(BASENAME)2.OBJ270 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys os2v2271 @if exist $^. @echo $^. $(MSG_SUCCESS) 272 @echo. 273 274 $(BASENAME)2. OBJ: $(BASENAME).C $(BASENAME).H275 # @echo. 276 @echo TARGET: $^&. EXE[OS/2 32-bits Executable]277 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME). C278 @wdis -fi $^. > $^&. WDA269 $(BASENAME)2.exe: $(BASENAME)2.obj 270 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2 271 @if exist $^. @echo $^. $(MSG_SUCCESS) 272 @echo. 273 274 $(BASENAME)2.obj: $(BASENAME).c $(BASENAME).h 275 # @echo. 276 @echo TARGET: $^&.exe [OS/2 32-bits Executable] 277 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).c 278 @wdis -fi $^. > $^&.wda 279 279 280 280 … … 282 282 # Linux 32-bits (ELF) 283 283 ############################################################################### 284 $(BASENAME) L.ELF: $(BASENAME)L.OBJ285 $(LNK) $(LNK_FLAGS) file $^&. OBJ name $^&.ELFsys linux286 # $(MV) $^&. ELF$^.287 @if exist $^. @echo $^. $(MSG_SUCCESS) 288 @echo. 289 290 $(BASENAME) L.OBJ: $(BASENAME).C $(BASENAME).H291 # @echo. 292 @echo TARGET: $^&. ELF[Linux 32-bits Executable]293 $(CC32) $(CC32_FLAGS) -bt=linux $(BASENAME). C294 @wdis -fi $^. > $^&. WDA284 $(BASENAME)l.elf: $(BASENAME)l.obj 285 $(LNK) $(LNK_FLAGS) file $^&.obj name $^&.elf sys linux 286 # $(MV) $^&.elf $^. 287 @if exist $^. @echo $^. $(MSG_SUCCESS) 288 @echo. 289 290 $(BASENAME)l.obj: $(BASENAME).c $(BASENAME).h 291 # @echo. 292 @echo TARGET: $^&.elf [Linux 32-bits Executable] 293 $(CC32) $(CC32_FLAGS) -bt=linux $(BASENAME).c 294 @wdis -fi $^. > $^&.wda 295 295 296 296 … … 315 315 clean: .SYMBOLIC 316 316 @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i 317 @if exist *. OBJ $(RM) *.OBJ318 @if exist *. WDA $(RM) *.WDA319 @if exist *. NDA $(RM) *.NDA320 @if exist *. MAP $(RM) *.MAP321 @if exist *. LST $(RM) *.LST322 @if exist *. ERR $(RM) *.ERR317 @if exist *.obj $(RM) *.obj 318 @if exist *.wda $(RM) *.wda 319 @if exist *.nda $(RM) *.nda 320 @if exist *.map $(RM) *.map 321 @if exist *.lst $(RM) *.lst 322 @if exist *.err $(RM) *.err 323 323 @if exist *.o $(RM) *.o 324 324 -
trunk/tools/internal/fixcode.c
r57 r60 19 19 /* 20 20 // FIXCODE.C -- Fix the AiR-BOOT image; include the code-size and MBR prot-img. 21 // This reads AIR-BOOT.COM, merges MBR-PROT.BIN and writes AIRBOOT.BIN.21 // This reads 'air-boot.com', merges 'mbr-prot.bin' and writes 'airboot.bin'. 22 22 // It is a quick-and-dirty translation of the original DOS-only ASM file. 23 23 // Of course it's not as small but it's much easier to maintain across 24 24 // multiple platforms. A small change with regard to the old ASM version is 25 // that it directly writes AIRBOOT.BIN instead of writing AIR-BOOT.COM.25 // that it directly writes 'airboot.bin' instead of writing 'air-boot.com'. 26 26 // This way the pre and post situations are kept valid. 27 27 */ 28 28 29 29 30 #include " FIXCODE.H"30 #include "fixcode.h" 31 31 32 32 … … 49 49 50 50 /* File names */ 51 #define IN_FILE " AIR-BOOT.COM" // Target from assembly.51 #define IN_FILE "air-boot.com" // Target from assembly. 52 52 #ifdef PLATFORM_LINUX 53 #define MERGE_FILE " MBR-PROT/MBR-PROT.BIN" // MBR Protection Image.53 #define MERGE_FILE "mbr-prot/mbr-prot.bin" // MBR Protection Image. 54 54 #else 55 #define MERGE_FILE " MBR-PROT\\MBR-PROT.BIN" // MBR Protection Image.56 #endif 57 #define OUT_FILE " AIRBOOT.BIN" // Generated loader image.55 #define MERGE_FILE "mbr-prot\\mbr-prot.bin" // MBR Protection Image. 56 #endif 57 #define OUT_FILE "airboot.bin" // Generated loader image. 58 58 59 59 … … 200 200 201 201 /* 202 // Write AIRBOOT.BIN202 // Write 'airboot.bin' 203 203 */ 204 204 printf("%s", WriteCode); -
trunk/tools/os2/setaboot/GNUmakefile
r46 r60 6 6 # Include the forwarder. 7 7 # 8 include ../../../ INCLUDE/MAKEFRWD.MIF8 include ../../../include/makefrwd.mif -
trunk/tools/os2/setaboot/Makefile
r55 r60 1 1 ############################################################################### 2 # Makefile :: Builds the SET(A)BOOT Helper for several platforms.[wmake] #2 # Makefile :: Builds the 'set(a)boot' 'setboot' replacement for OS/2 [wmake] # 3 3 ############################################################################### 4 4 # rousseau@ecomstation.com 5 # 6 # Derived from the INSTALL Makefile. 7 # 8 9 # 10 # This Makefile builds the SET(A)BOOT Helper for DOS, Windows, OS/2 and Linux. 11 # Like FIXCODE, each platform version has a letter appended it: 12 # 'D' for DOS, 'W' for Windows, '2' for OS/2 and 'L' for Linux. 5 6 7 # 8 # This Makefile builds the 'set(a)boot' 'setboot' replacement for OS/2. 13 9 # 14 10 … … 17 13 # This is used to compensate for the differences between the target platforms. 18 14 # 19 !include ../../../ INCLUDE/MAKEFILE.MIF15 !include ../../../include/makefile.mif 20 16 21 17 … … 46 42 # Base Name of Source Program to compile. 47 43 # 48 BASENAME= SETABOOT44 BASENAME=setaboot 49 45 50 46 # … … 58 54 # This is a list of the Targets to be built. 59 55 # 60 #TARGETS=$(MODULE) D.EXE $(MODULE)W.EXE $(MODULE)2.EXE $(MODULE)L.ELF61 TARGETS=$(MODULE). EXE56 #TARGETS=$(MODULE)d.exe $(MODULE)w.exe $(MODULE)2.exe $(MODULE)l.elf 57 TARGETS=$(MODULE).exe 62 58 63 59 # … … 83 79 # -Cp = case sensitive symbols 84 80 # -zcw = no _ prefix on symbols (C model) 85 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&. LST -Fw$^&.ERR86 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&. LST -Fw$^&.ERR87 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&. LST -Fw$^&.ERR81 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err 82 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err 83 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err 88 84 !elseif "$(ASM)"=="wasm" 89 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&. ERR90 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&. ERR91 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&. ERR85 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.err 86 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 87 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err 92 88 !elseif "$(ASM)"=="tasm" 93 89 # -ml = case sensitive symbols … … 96 92 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -ml -z -zi -c -la 97 93 !elseif "$(ASM)"=="alp" 98 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR99 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR94 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err 95 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 100 96 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP 101 97 !else … … 109 105 MM16=-ml 110 106 CC16=wcc 111 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&. ERR112 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&. ERR113 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&. ERR107 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&.err 108 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err 109 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err 114 110 CC16_FLAGS=$(CC16_FLAGS_D$(DEBUG_LEVEL)) 115 111 … … 119 115 MM32=-mf 120 116 CC32=wcc386 121 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&. ERR122 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&. ERR123 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&. ERR117 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&.err 118 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err 119 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err 124 120 CC32_FLAGS=$(CC32_FLAGS_D$(DEBUG_LEVEL)) 125 121 … … 133 129 # WLink/2 can use the '\x40' variant. 134 130 # 135 #~ LNK_FLAGS_D0=op q op v op map=$^&. MAPop de '\x40\x23KIEWITZ:1.18\x23\x40\x41iR-BOOT Installer by Kiewitz'136 LNK_FLAGS_D0=op q op v op map=$^&. MAP131 #~ LNK_FLAGS_D0=op q op v op map=$^&.map op de '\x40\x23KIEWITZ:1.18\x23\x40\x41iR-BOOT Installer by Kiewitz' 132 LNK_FLAGS_D0=op q op v op map=$^&.map 137 133 #~ LNK_FLAGS_D1=op q op v d all & 138 134 #~ order clname CODE clname FAR_CONST clname FAR_DATA clnam BEGDATA clname DATA clname BSS clname STACK clname BLAP NOE & 139 #~ op map=$^&. MAP140 LNK_FLAGS_D1=op q op v d all op map=$^&. MAP141 LNK_FLAGS_D2=op q op v d all op map=$^&. MAP135 #~ op map=$^&.map 136 LNK_FLAGS_D1=op q op v d all op map=$^&.map 137 LNK_FLAGS_D2=op q op v d all op map=$^&.map 142 138 LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL)) 143 139 … … 188 184 @echo. 189 185 @echo ===================================================================== 190 @echo = PROGRAM: SETABOOT Multi Platform [DOS, Win32, OS/2 and Linux] =186 @echo = PROGRAM: 'setaboot', setboot replacement for OS/2 [OS/2] = 191 187 @echo ===================================================================== 192 188 # @echo. … … 251 247 # OS/2 32-bits (LX) 252 248 ############################################################################### 253 $(MODULE). EXE: $(MODULE).OBJ254 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys os2v2249 $(MODULE).exe: $(MODULE).obj 250 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2 255 251 @if exist $^. @echo $^. $(MSG_SUCCESS) 256 252 @echo. 257 253 #~ wstrip $^. 258 254 259 $(MODULE). OBJ: $(BASENAME).C $(BASENAME).H255 $(MODULE).obj: $(BASENAME).c $(BASENAME).h 260 256 # @echo. 261 @echo TARGET: $^&. EXE[OS/2 32-bits Executable]262 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME). C263 @wdis -fi $^. > $^&. WDA257 @echo TARGET: $^&.exe [OS/2 32-bits Executable] 258 $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).c 259 @wdis -fi $^. > $^&.wda 264 260 265 261 … … 281 277 clean: .SYMBOLIC 282 278 @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i 283 @if exist *. OBJ $(RM) *.OBJ284 @if exist *. WDA $(RM) *.WDA285 @if exist *. NDA $(RM) *.NDA286 @if exist *. MAP $(RM) *.MAP287 @if exist *. LST $(RM) *.LST288 @if exist *. ERR $(RM) *.ERR279 @if exist *.obj $(RM) *.obj 280 @if exist *.wda $(RM) *.wda 281 @if exist *.nda $(RM) *.nda 282 @if exist *.map $(RM) *.map 283 @if exist *.lst $(RM) *.lst 284 @if exist *.err $(RM) *.err 289 285 @if exist *.o $(RM) *.o 290 286 … … 292 288 # DISTRIBUTE TO RELEASE SPACE 293 289 # ----------------------------------------------------------------------------- 294 # This distributes all .BIN files to BOOTCODE. 295 # Then it installs the English version to RELEASES as AIRBOOT.BIN. 290 # This distributes 'setaboot' 'release'. 296 291 # ----------------------------------------------------------------------------- 297 292 dist: .SYMBOLIC 298 @if exist *.EXE $(CP) *.EXE ..$(DS)..$(DS)..$(DS)RELEASE$(DS)OS2 299 # @if exist *.EXE $(CP) *.EXE ..$(DS)..$(DS)..$(DS)RELEASE$(DS)BOOTCODE 293 @if exist *.exe $(CP) *.exe ..$(DS)..$(DS)..$(DS)release$(DS)os2 300 294 # 301 295 # Help on using this Makefile. -
trunk/tools/os2/setaboot/setaboot.c
r57 r60 24 24 25 25 26 #include " SETABOOT.H"26 #include "setaboot.h" 27 27 28 28 … … 40 40 #include <string.h> 41 41 42 #include " MSGHELP.C"42 #include "msghelp.c" 43 43 44 44 // Msg-IDs from OSO001.msg
Note:
See TracChangeset
for help on using the changeset viewer.