Changeset 60


Ignore:
Timestamp:
Feb 18, 2016, 5:18:51 PM (9 years ago)
Author:
Ben Rietbroek
Message:

Fixed building on Linux [v1.1.1-testing]

Of course the lowercasing broke building on Linux.
This commit fixes that.

Location:
trunk
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/GNUmakefile

    r46 r60  
    66# Include the forwarder.
    77#
    8 include         INCLUDE/MAKEFRWD.MIF
     8include         include/makefrwd.mif
  • trunk/Makefile

    r56 r60  
    88# - The AiR-BOOT Loader Code for all supported languages.
    99# - The MBR Protection Image that get's embedded in the loader.
    10 # - The FIXCODE program that embeds the MBR Protection Image.
     10# - The 'fixcode' program that embeds the MBR Protection Image.
    1111# - The Installers for all supported platforms.
    12 # - The SET(A)BOOT program for all supported platforms. (currently only OS/2)
     12# - The 'set(a)boot' program for all supported platforms. (currently only OS/2)
    1313
    1414
     
    2525# with regard to case sensitivity, directory separators, escape characters
    2626# and other platform differences.
    27 # This is handled in MAKEFILE.MIF.
     27# This is handled in makefile.mif.
    2828
    2929
     
    4545# Include a Master Makefile with several cross-platform definitions and macros.
    4646# This is used to compensate for the differences between the target platforms.
    47 !include        INCLUDE/MAKEFILE.MIF
     47!include        include/makefile.mif
    4848
    4949
     
    5555# The order of these Build Directories matters !
    5656#
    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)
    6362#
    6463COMPONENTS=&
    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&
    7069
    7170
     
    7574# and the OS/2 setboot replacement (setaboot).
    7675COMPONENTS2DIST=&
    77         BOOTCODE&
    78         INSTALL$(DS)C&
    79         TOOLS$(DS)OS2$(DS)SETABOOT&
     76        bootcode&
     77        install$(DS)c&
     78        tools$(DS)os2$(DS)setaboot&
    8079
    8180
     
    114113
    115114        @echo Cleaning up bootcode directory
    116         @cd BOOTCODE
     115        @cd bootcode
    117116        @wmake -h clean
    118117        @cd ..
     
    126125        @echo :: Look in the RELEASE directory for the distribution files       ::
    127126        @echo :: for each platform and the bootloader for each language.        ::
    128 #       @echo :: The PACKAGES directory contains packages for each supported    ::
     127#       @echo :: The packages directory contains packages for each supported    ::
    129128#       @echo :: platform.                                                      ::
    130129        @echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
     
    156155# -----------------------------------------------------------------------------
    157156clean:  .SYMBOLIC
    158         @cd RELEASE
     157        @cd release
    159158        @$(MAKE) -h clean
    160159        @cd ..
  • trunk/bootcode/GNUmakefile

    r37 r60  
    66# Include the forwarder.
    77#
    8 include         ../INCLUDE/MAKEFRWD.MIF
     8include         ../include/makefrwd.mif
  • trunk/bootcode/Makefile

    r55 r60  
    11###############################################################################
    2 # Makefile :: Builds the AIRBOOT.BIN 16-bits RAW Loader Image.                #
     2# Makefile :: Builds the 'airboot.bin' 16-bits RAW Loader Image               #
    33###############################################################################
    44# 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.
    118# This is the actual AiR-BOOT that you see when starting your system.
    129# It operates at the BIOS level and thus without any operating-system
     
    2118# possible virusses. This detection code is "hooked" into the interrupt-chain
    2219# 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.
    2624#
    2725# When AiR-BOOT gets control, this virus-protection code is copied elsewhere
     
    3129#
    3230# This embedding proccess consists of three parts:
    33 # - Assembling the virus-detection code, MBR_PROT.ASM, which always results
     31# - Assembling the virus-detection code, 'mbrprot.asm', which always results
    3432#   in a 1024 bytes image.
    35 # - Compiling the FIXCODE program that does the actual embedding.
    36 # - Running the FIXCODE program against AIR-BOOT.COM creating the
    37 #       final AIRBOOT.BIN image.
    38 #
    39 
    40 #
    41 # After these operations have been completed, the AIRBOOT.BIN image
     33# - 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
    4240# is ready to be installed.
    4341#
    44 
    45 #
    46 # The installer is a C program for OS/2 and Win32, using Open Watcom's
    47 # cross-platform capabilities. The DOS installer is currently an Assembler
    48 # 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 sources
    51 # as will the Linux version, again using Open Watcom's cross-platform
    52 # capabilities. I call it 'DWOL': DOS, Windows, OS/2 and Linux.
    53 #
    54 
    5542
    5643
     
    6350# Include a Master Makefile with several cross-platform definitions and macros.
    6451# This is used to compensate for the differences between the target platforms.
    65 !include        ../INCLUDE/MAKEFILE.MIF
     52!include        ../include/makefile.mif
    6653
    6754# On my system, JWasm takes forever to generate a list-file when on a network
     
    6956# makes no difference. If you experience the same, then put a '#' in front of
    7057# the variable below to keep JWasm from generating a list-file.
    71 #JWASM_LIST_FILE=-Fl=$^&.LST
     58JWASM_LIST_FILE=-Fl=$^&.lst
    7259
    7360# Specifies the level of debugging.
     
    9279# The various language versions are created by replacing TXT-files
    9380# and reassembling this file.
    94 BASENAME=AIR-BOOT
     81BASENAME=air-boot
    9582
    9683# When you are developing, you might want to do that using your own language.
    97 # Using 'wmake dev' will built a module called AIRBOOT.BIN with this language
     84# Using 'wmake dev' will built a module called 'airboot.bin' with this language
    9885# and leave all the intermediate files intact.
    9986# When developing on a non-RU language version, you need to do a 'wmake RU'
     
    10289# taking up extra space. If it builds for RU it will build for all other
    10390# languages.
    104 DEV_BLD_LANG=EN
     91DEV_BLD_LANG=en
    10592
    10693# These are the languages that AiR-BOOT can be assembled with.
     
    11097# will run out-of-space sooner that the other languages.
    11198# If that happens at least the others will be built.
    112 BLD_LANGUAGES=EN DE NL FR IT SW RU
    113 #BLD_LANGUAGES=EN DE NL
     99BLD_LANGUAGES=en de nl fr it sw ru
     100#BLD_LANGUAGES=en de nl
    114101
    115102# For each language the Assembler source is compiled to a binary image
     
    118105# When developing the final image is not renamed.
    119106# Note that it differs from the source basename.
    120 MODULE=AIRBOOT
     107MODULE=airboot
    121108
    122109# 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'.
    124111# Each language build generates this target and it is later renamed.
    125112# Only a dev-build does not rename it so it can directly be used by
    126113# the installer.
    127 TARGET=$(MODULE).BIN
     114TARGET=$(MODULE).bin
    128115
    129116#~ %AB_DEV=FALSE
     
    181168# -Zd   = line number debug info
    182169# -Zi   = symbolic debug info
    183 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.ERR
    184 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.ERR
    185 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.ERR
     170ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
     171ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
     172ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
    186173
    187174# WASM
    188175!elseif "$(ASM)"=="wasm"
    189176# -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=$^&.ERR
    191 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&.ERR
    192 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&.ERR
     177ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -fo=$^. -fr=$^&.err
     178ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&.err
     179ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -w4 -d1 -fo=$^. -fr=$^&.err
    193180
    194181# TASM
     
    201188# MASM
    202189!elseif "$(ASM)"=="masm"
    203 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Fo$^. -Sa -Fl$^&.LST
    204 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&.LST
    205 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&.LST
     190ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Fo$^. -Sa -Fl$^&.lst
     191ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&.lst
     192ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DMASM -c -nologo -Cp -Zd -Zi -Fo$^. -Sa -Fl$^&.lst
    206193
    207194# ALP -- Does not support '/' for includes so it cannot be used for now.
    208195!elseif "$(ASM)"=="alp"
    209 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
    210 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
     196ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:obj +Fl +Fel:LST +Fm +Fem:err
     197ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err
    211198ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP
    212199
     
    245232# Open Watcom Linker.
    246233LNK=wlink
    247 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.MAP
    248 LNK_FLAGS_D1=op q op v d all op map=$^&.MAP
    249 LNK_FLAGS_D2=op q op v d all op map=$^&.MAP
     234LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.map
     235LNK_FLAGS_D1=op q op v d all op map=$^&.map
     236LNK_FLAGS_D2=op q op v d all op map=$^&.map
    250237LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL))
    251238
    252239# These need to be built
    253 DEPTARGETS=MBR-PROT ..$(DS)TOOLS$(DS)INTERNAL
     240DEPTARGETS=mbr-prot ..$(DS)tools$(DS)internal
    254241
    255242
     
    318305# Note that this target is not used as a 'dependency' but 'called' explicitly
    319306# by the $(BLD_LANGUAGES) target.
    320         @echo Include TEXT/$(%BLD_LANG)/MBR.ASM                 > TEXT$(DS)TXTMBR.ASM
    321         @echo Include TEXT/$(%BLD_LANG)/MENUS.ASM               > TEXT$(DS)TXTMENUS.ASM
    322         @echo Include TEXT/$(%BLD_LANG)/OTHER.ASM               > TEXT$(DS)TXTOTHER.ASM
     307        @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
    323310
    324311
     
    347334        @echo.
    348335        @echo   ** Renaming Target **
    349         $(MV) $(TARGET) AIRBT-$@.BIN
     336        $(MV) $(TARGET) airbt-$@.bin
    350337!endif
    351338#       @echo $(%AB_DEV)
     
    432419#
    433420# 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)
    435422#
    436423mbrprot:        .symbolic
     
    438425        @echo @ Building MBR Protection Image and FixCode first @
    439426        @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    440         cd MBR-PROT
     427        cd mbr-prot
    441428        $(MAKE) -h
    442429        cd ..
     
    448435#
    449436fixcode:        .procedure
    450         cd ..$(DS)TOOLS$(DS)INTERNAL
     437        cd ..$(DS)tools$(DS)internal
    451438        $(MAKE) -h
    452         cd ..$(DS)..$(DS)BOOTCODE
     439        cd ..$(DS)..$(DS)bootcode
    453440
    454441
     
    458445
    459446# -----------------------------------------------------------------------------
    460 # FINAL AIRBOOT.BIN IMAGE
     447# FINAL 'airboot.bin' IMAGE
    461448# -----------------------------------------------------------------------------
    462449# This is the final AiR-BOOT image and has been built for the language
     
    467454# with NDISASM for cross reference.
    468455# -----------------------------------------------------------------------------
    469 $(TARGET):      .MULTIPLE Makefile.bu $(BASENAME).COM
     456$(TARGET):      .MULTIPLE Makefile.bu $(BASENAME).com
    470457        @echo $^.:      [Final 16-bits raw Binary Image]
    471458!ifdef  __MSDOS__
    472         ..$(DS)TOOLS$(DS)INTERNAL$(DS)FIXCODED.EXE
     459        ..$(DS)tools$(DS)internal$(DS)fixcoded.exe
    473460!endif
    474461!ifdef  __OS2__
    475         ..$(DS)TOOLS$(DS)INTERNAL$(DS)FIXCODE2.EXE
     462        ..$(DS)tools$(DS)internal$(DS)fixcode2.exe
    476463!endif
    477464!ifdef  __NT__
    478         ..$(DS)TOOLS$(DS)INTERNAL$(DS)FIXCODEW.EXE
     465        ..$(DS)tools$(DS)internal$(DS)fixcodew.exe
    479466!endif
    480467!ifdef  __LINUX__
    481 #       ..$(DS)TOOLS$(DS)INTERNAL$(DS)FIXCODE
    482         @chmod +x ..$(DS)TOOLS$(DS)INTERNAL$(DS)FIXCODEL.ELF
    483         ..$(DS)TOOLS$(DS)INTERNAL$(DS)FIXCODEL.ELF
     468#       ..$(DS)tools$(DS)internal$(DS)fixcode
     469        @chmod +x ..$(DS)tools$(DS)internal$(DS)fixcodel.elf
     470        ..$(DS)tools$(DS)internal$(DS)fixcodel.elf
    484471        @chmod +x $^.
    485472!endif
    486473        @echo.
    487474!ifndef __MSDOS__
    488         ndisasm $(BASENAME).COM > $(BASENAME).COM.NDA
    489         ndisasm $(TARGET) > $(TARGET).NDA
     475        ndisasm $(BASENAME).com > $(BASENAME).com.nda
     476        ndisasm $(TARGET) > $(TARGET).nda
    490477!endif
    491478        @echo.
     
    494481
    495482# -----------------------------------------------------------------------------
    496 # INTERMEDIATE AIR-BOOT.COM IMAGE
     483# INTERMEDIATE 'air-boot.com' IMAGE
    497484# -----------------------------------------------------------------------------
    498485# 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'.
    500487#
    501488# While both DOS COM and RAW linkage generate a flat 16-bits image with
     
    504491# So we use DOS COM linkage to proteced us from overflow incorrect fixups.
    505492# -----------------------------------------------------------------------------
    506 $(BASENAME).COM:        .MULTIPLE $(BASENAME).OBJ
     493$(BASENAME).com:        .MULTIPLE $(BASENAME).obj
    507494        @echo $^.:      [16-bits non-100h Intermediate Image]
    508         $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys dos com
    509 #       $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. form raw
    510 
    511 
    512 # -----------------------------------------------------------------------------
    513 # INTERMEDIATE AIR-BOOT.OBJ OBJECT MODULE
    514 # -----------------------------------------------------------------------------
    515 # This is the result of assembling AIR-BOOT.ASM.
    516 # It is assembled back twice with WDIS for 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.
    517504# - once as an (almost) assemblable source-file
    518505# - once as a disassembly with opcodes in it
    519506# -----------------------------------------------------------------------------
    520 $(BASENAME).OBJ:        .MULTIPLE $(BASENAME).ASM
     507$(BASENAME).obj:        .MULTIPLE $(BASENAME).asm
    521508        @echo $^.:      [16-bits OMF Object File]
    522         $(ASM) $(ASM_FLAGS) $(BASENAME).ASM
     509        $(ASM) $(ASM_FLAGS) $(BASENAME).asm
    523510!ifndef __MSDOS__
    524         @wdis -fi $^. > $^..WDA
    525 !endif
    526         @wdis -a -p -fi $^. > $^&.WDA
     511        @wdis -fi $^. > $^..wda
     512!endif
     513        @wdis -a -p -fi $^. > $^&.wda
    527514
    528515
     
    535522# DEVELOPER TARGET
    536523# -----------------------------------------------------------------------------
    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 # so it 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.
    540527# This is the main target when developing.
    541528# -----------------------------------------------------------------------------
     
    555542        @bldlevel $(TARGET)
    556543        @echo.
    557         -@type AIRBOOT.MD5 2> nul
    558         @md5sum $(TARGET) > AIRBOOT.MD5
    559         @type AIRBOOT.MD5
     544        -@type airboot.md5 2> nul
     545        @md5sum $(TARGET) > airboot.md5
     546        @type airboot.md5
    560547!endif
    561548!ifdef  __LINUX__
    562549        @echo.
    563         @if exist AIR-BOOT.LST @grep ^zzz_code_space AIR-BOOT.LST
    564         @echo.
    565         @cat AIRBOOT.MD5
    566         @md5sum $(TARGET) > AIRBOOT.MD5
    567         @cat AIRBOOT.MD5
     550        @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
    568555        @echo.
    569556!endif
     
    583570#       @echo CLEANING UP
    584571        @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i
    585         @if exist *.COM $(RM) *.COM
    586         @if exist *.COM $(RM) *.EXE
    587         @if exist *.OBJ $(RM) *.OBJ
    588         @if exist *.WDA $(RM) *.WDA
    589         @if exist *.NDA $(RM) *.NDA
    590         @if exist *.MAP $(RM) *.MAP
    591         @if exist *.LST $(RM) *.LST
    592         @if exist *.ERR $(RM) *.ERR
     572        @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
    593580        @if exist *.o   $(RM) *.o
    594581        @%MAKE rmbin
    595582
    596583# -----------------------------------------------------------------------------
    597 # REMOVE ALL RESIDUAL .BIN FILES (old builds)
     584# REMOVE ALL RESIDUAL .bin FILES (old builds)
    598585# -----------------------------------------------------------------------------
    599586rmbin:  .SYMBOLIC
    600         @if exist *.BIN $(RM) *.BIN
     587        @if exist *.bin $(RM) *.bin
    601588
    602589
     
    604591# DISTRIBUTE TO RELEASE SPACE
    605592# -----------------------------------------------------------------------------
    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'.
    608595# -----------------------------------------------------------------------------
    609596dist:   .SYMBOLIC
    610         @if exist *.BIN $(CP) *.BIN ..$(DS)RELEASE$(DS)BOOTCODE
    611         @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)
    615602
    616603
     
    626613        @echo           wmake list      to show the list of buildable targets
    627614        @echo           wmake clean     to remove almost all generated files
    628         @echo           wmake rmbin     to remove all residual BIN files
     615        @echo           wmake rmbin     to remove all residual 'bin' files
    629616        @echo           wmake rebuild   to rebuild all targets
    630617        @echo           wmake dist      to populate the dist directories
  • trunk/bootcode/air-boot.asm

    r57 r60  
    3434; OS/2 BLDLEVEL use this basic version information.
    3535;
    36 Include VERSION.INC
     36include version.inc
    3737
    3838;
     
    4040; It uses the version-information in VERSION.INC to build it's signature.
    4141;
    42 Include BLDLEVEL.INC
     42include bldlevel.inc
    4343
    4444;
     
    4646; This file contains the ORIGIN macro that is used to detect overlaps.
    4747;
    48 Include ../INCLUDE/ASM.INC
     48include ../include/asm.inc
    4949
    5050
     
    833833
    834834;------------------------------------------------------------------------------
    835 Include TEXT/TXTMBR.ASM                        ; All translateable Text in MBR
     835include text/txtmbr.asm                        ; All translateable Text in MBR
    836836;------------------------------------------------------------------------------
    837837
     
    15281528
    15291529b_std_txt:
    1530 Include REGULAR/STD_TEXT.ASM    ; Standard (non-translateable text)
     1530include regular/std_text.asm    ; Standard (non-translateable text)
    15311531size_std_txt = $-b_std_txt
    15321532
    15331533b_driveio:
    1534 Include REGULAR/DRIVEIO.ASM     ; Drive I/O, Config Load/Save
     1534include regular/driveio.asm     ; Drive I/O, Config Load/Save
    15351535size_driveio = $-b_driveio
    15361536
    15371537b_lvm:
    1538 Include SPECIAL/LVM.ASM         ; LVM-specific code
     1538include special/lvm.asm         ; LVM-specific code
    15391539size_lvm = $-b_lvm
    15401540
    15411541b_videoio:
    1542 Include REGULAR/VIDEOIO.ASM     ; Video I/O
     1542include regular/videoio.asm     ; Video I/O
    15431543size_videoio = $-b_videoio
    15441544
    15451545b_timer:
    1546 Include REGULAR/TIMER.ASM       ; Timer
     1546include regular/timer.asm       ; Timer
    15471547size_timer = $-b_timer
    15481548
    15491549b_partmain:
    1550 Include REGULAR/PARTMAIN.ASM    ; Regular Partition Routines
     1550include regular/partmain.asm    ; Regular Partition Routines
    15511551size_partmain = $-b_partmain
    15521552
    15531553b_partscan:
    1554 Include REGULAR/PARTSCAN.ASM    ; Partition Scanning
     1554include regular/partscan.asm    ; Partition Scanning
    15551555size_partscan = $-b_partscan
    15561556
    15571557b_bootmenu:
    1558 Include REGULAR/BOOTMENU.ASM    ; Boot-Menu
     1558include regular/bootmenu.asm    ; Boot-Menu
    15591559size_bootmenu = $-b_bootmenu
    15601560
    15611561b_password:
    1562 Include REGULAR/PASSWORD.ASM    ; Password related
     1562include regular/password.asm    ; Password related
    15631563size_password = $-b_password
    15641564
    15651565b_other:
    1566 Include REGULAR/OTHER.ASM       ; Other Routines
     1566include regular/other.asm       ; Other Routines
    15671567size_other = $-b_other
    15681568
    15691569b_main:
    1570 Include SETUP/MAIN.ASM          ; The whole AiR-BOOT SETUP
     1570include setup/main.asm          ; The whole AiR-BOOT SETUP
    15711571size_main = $-b_main
    15721572
    15731573b_math:
    1574 Include REGULAR/MATH.ASM        ; Math functions (like 32-bit multiply)
     1574include regular/math.asm        ; Math functions (like 32-bit multiply)
    15751575size_math = $-b_math
    15761576
    15771577b_txtother:
    1578 Include TEXT/TXTOTHER.ASM       ; All translateable Text-Strings
     1578include text/txtother.asm       ; All translateable Text-Strings
    15791579size_txtother = $-b_txtother
    15801580
    15811581b_txtmenus:
    1582 Include TEXT/TXTMENUS.ASM       ; All translateable Menu-text
     1582include text/txtmenus.asm       ; All translateable Menu-text
    15831583size_txtmenus = $-b_txtmenus
    15841584
    15851585b_charset:
    1586 Include TEXT/CHARSET.ASM        ; Special Video Charsets (if needed)
     1586include text/charset.asm        ; Special Video Charsets (if needed)
    15871587size_charset = $-b_charset
    15881588
    15891589b_conv:
    1590 Include REGULAR/CONV.ASM        ; Various conversion routines
     1590include regular/conv.asm        ; Various conversion routines
    15911591size_conv = $-b_conv
    15921592
    15931593b_virus:
    1594 Include SPECIAL/VIRUS.ASM       ; Virus Detection / Anti-Virus
     1594include special/virus.asm       ; Virus Detection / Anti-Virus
    15951595size_virus = $-b_virus
    15961596
    15971597; [Linux support removed since v1.02]
    1598 ;Include SPECIAL/FAT16.ASM       ; FAT-16 Support
    1599 ;Include SPECIAL/LINUX.ASM       ; Linux Kernel Support
     1598;include special/fat16.asm       ; FAT-16 Support
     1599;include special/linux.asm       ; Linux Kernel Support
    16001600
    16011601b_billsuxx:
    1602 Include SPECIAL/F00K/BILLSUXX.ASM   ; Extended Partition - Microsoft-Hack
     1602include special/f00k/billsuxx.asm   ; Extended Partition - Microsoft-Hack
    16031603size_billsuxx = $-b_billsuxx
    16041604
    16051605b_sound:
    1606 Include SPECIAL/SOUND.ASM       ; Sound
     1606include special/sound.asm       ; Sound
    16071607size_sound = $-b_sound
    16081608
    16091609b_apm:
    1610 Include SPECIAL/APM.ASM         ; Power Managment Support
     1610include special/apm.asm         ; Power Managment Support
    16111611size_apm = $-b_apm
    16121612
     
    16181618IFDEF   TXT_IncludeCyrillic
    16191619b_ccharset:
    1620    Include SPECIAL/CHARSET.ASM  ; Charset Support (e.g. Cyrillic)
     1620   include special/charset.asm  ; Charset Support (e.g. Cyrillic)
    16211621size_ccharset = $-b_ccharset
    16221622ENDIF
     
    16251625IFDEF   AUX_DEBUG
    16261626b_debug:
    1627 Include REGULAR/DEBUG.ASM       ; Debug module
     1627include regular/debug.asm       ; Debug module
    16281628size_debug = $-b_debug
    16291629b_auxio:
    1630 Include REGULAR/AUXIO.ASM       ; Com-port support for debugging
     1630include regular/auxio.asm       ; Com-port support for debugging
    16311631size_auxio = $-b_auxio
    16321632ENDIF
     
    16391639IFDEF   FX_ENABLED
    16401640b_fx:
    1641 Include SPECIAL/FX.ASM          ; l33t Cooper-Bars/Scrolling <bg>
     1641include special/fx.asm          ; l33t Cooper-Bars/Scrolling <bg>
    16421642size_fx = $-b_fx
    16431643ENDIF
     
    18051805                ; It has been decided that uneven minor numbers will be
    18061806                ; test-versions. Therefore v1.0.8 has been bumbed to v1.1.0.
    1807                 ; 
     1807                ;
    18081808                ; It is not required for the config to have the
    18091809                ; same version as the code, so in the future
  • trunk/bootcode/airboot.md5

    r57 r60  
    1 92fc6c0fd19a5e86b7359da216663576 *AIRBOOT.BIN
     192fc6c0fd19a5e86b7359da216663576  airboot.bin
  • trunk/bootcode/mbr-prot/GNUmakefile

    r37 r60  
    66# Include the forwarder.
    77#
    8 include         ../../INCLUDE/MAKEFRWD.MIF
     8include         ../../include/makefrwd.mif
  • trunk/bootcode/mbr-prot/Makefile

    r51 r60  
    11###############################################################################
    2 # Makefile :: Builds the MBR-PROT.BIN 16-bits RAW Protection Image.           #
     2# Makefile :: Builds the 'mbr-prot.bin' 16-bits RAW Protection Image          #
    33###############################################################################
    44# 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'.
    1310#
    1411
     
    1815# This is used to compensate for the differences between the target platforms.
    1916#
    20 !include        ../../INCLUDE/MAKEFILE.MIF
     17!include        ../../include/makefile.mif
    2118
    2219#
     
    4542# Source Level base-name of Target to build.
    4643#
    47 BASENAME=MBR-PROT
     44BASENAME=mbr-prot
    4845
    4946#
     
    5451#
    5552# 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).BIN
     53# For MBR_PROT there is only one real target: mbr-prot.bin.
     54#
     55TARGET=$(MODULE).bin
    5956
    6057#
     
    8178# -Cp   = case sensitive symbols
    8279# -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$^&.ERR
    84 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.OBJ -Sa -Fl=$^&.LST -Fw$^&.ERR
    85 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.OBJ -Sa -Fl=$^&.LST -Fw$^&.ERR
     80ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err
     81ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err
     82ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err
    8683!elseif "$(ASM)"=="masm"
    87 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -fo=$^&.OBJ -fr=$^&.ERR
    88 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&.OBJ -fr=$^&.ERR
    89 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&.OBJ -fr=$^&.ERR
     84ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -fo=$^&.obj -fr=$^&.err
     85ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&.obj -fr=$^&.err
     86ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dMASM -zq -d1 -fo=$^&.obj -fr=$^&.err
    9087!elseif "$(ASM)"=="wasm"
    91 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -fo=$^&.OBJ -fr=$^&.ERR
    92 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.OBJ -fr=$^&.ERR
    93 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.OBJ -fr=$^&.ERR
     88ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -fo=$^&.obj -fr=$^&.err
     89ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err
     90ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err
    9491!elseif "$(ASM)"=="tasm"
    9592# -ml   = case sensitive symbols
     
    9895ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -z -zi -c -la
    9996!elseif "$(ASM)"=="alp"
    100 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
    101 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
     97ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err
     98ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err
    10299ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP
    103100!else
     
    110107#
    111108LNK=wlink
    112 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.MAP
    113 LNK_FLAGS_D1=op q op v d all op map=$^&.MAP
    114 LNK_FLAGS_D2=op q op v d all op map=$^&.MAP
     109LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.map
     110LNK_FLAGS_D1=op q op v d all op map=$^&.map
     111LNK_FLAGS_D2=op q op v d all op map=$^&.map
    115112LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL))
    116113
     
    179176
    180177###############################################################################
    181 # 16-bits RAW :: MBR virus protection to be embedded in the AIRBOOT.BIN image.
    182 ###############################################################################
    183 #$(TARGET):     $(BASENAME).COM
    184 #       $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys dos com
    185 #       $(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)
    186183#       @echo $(%BLD_LANG)>$^.
    187184#       @if exist $^. @echo             $^. $(MSG_SUCCESS) - [$(%BLD_LANG) version]
     
    192189
    193190###############################################################################
    194 # 16-bits RAW :: MBR virus protection to be embedded in the AIRBOOT.BIN image.
    195 ###############################################################################
    196 $(TARGET):      $(BASENAME).ASM
     191# 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image
     192###############################################################################
     193$(TARGET):      $(BASENAME).asm
    197194        @echo TARGET: $^.       [DOS 16-bits Raw Image]
    198         $(ASM) $(ASM_FLAGS) $(BASENAME).ASM
    199         @wdis -fi $^&.OBJ > $^&.WDA
    200         $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys dos com
    201 #       $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. form raw
     195        $(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
    202199        @if exist $^. @echo             $^. $(MSG_SUCCESS)
    203         @ndisasm -k9,0 $^. > $^&.NDA
    204 #       @echo.
    205 
    206 #$(BASENAME).OBJ:       $(BASENAME).ASM
     200        @ndisasm -k9,0 $^. > $^&.nda
     201#       @echo.
     202
     203#$(BASENAME).obj:       $(BASENAME).asm
    207204#       @echo.
    208205#       @echo TARGET: $^.       [DOS 16-bits Raw Image]
    209 #       $(ASM) $(ASM_FLAGS) $(BASENAME).ASM
    210 #       @wdis -fi $^. > $^&.WDA
     206#       $(ASM) $(ASM_FLAGS) $(BASENAME).asm
     207#       @wdis -fi $^. > $^&.wda
    211208
    212209
     
    230227#       @echo CLEANING UP
    231228#       @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i
    232         @if exist *.COM $(RM) *.COM
    233         @if exist *.BIN $(RM) *.BIN
    234         @if exist *.OBJ $(RM) *.OBJ
    235         @if exist *.WDA $(RM) *.WDA
    236         @if exist *.NDA $(RM) *.NDA
    237         @if exist *.MAP $(RM) *.MAP
    238         @if exist *.LST $(RM) *.LST
    239         @if exist *.ERR $(RM) *.ERR
     229        @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
    240237        @if exist *.o   $(RM) *.o
    241238
     
    244241#
    245242rmbin:  .SYMBOLIC
    246         @if exist *.BIN $(RM) *.BIN
     243        @if exist *.bin $(RM) *.bin
    247244
    248245
  • trunk/bootcode/setup/main.asm

    r57 r60  
    3232SETUP_UpperFixString          db 'SETUP ',0 ; AddOn for "AiR-BOOT SETUP vX.XX"
    3333
    34 Include SETUP/MENUS.ASM                  ; Menu structures
    35 Include SETUP/PART_SET.ASM               ; Partition Setup (in extra file)
     34include setup/menus.asm                  ; Menu structures
     35include setup/part_set.asm               ; Partition Setup (in extra file)
    3636
    3737;            CH - Current Item Number
  • trunk/bootcode/special/fx.asm

    r57 r60  
    2727;  If you rip this code, I will ./ your ass. =]
    2828
    29 Include SPECIAL/FXTABLES.ASM
     29include special/fxtables.asm
    3030
    3131FX_MaxScanLine                equ 384
  • trunk/bootcode/text/txtmbr.asm

    r57 r60  
    1 Include TEXT/EN/MBR.ASM                 
     1include text/en/mbr.asm
  • trunk/bootcode/text/txtmenus.asm

    r57 r60  
    1 Include TEXT/EN/MENUS.ASM               
     1include text/en/menus.asm
  • trunk/bootcode/text/txtother.asm

    r57 r60  
    1 Include TEXT/EN/OTHER.ASM               
     1include text/en/other.asm
  • trunk/include/makefile.mif

    r57 r60  
    11###############################################################################
    2 # MAKEFILE.MIF :: Make Include File -- Defines Cross Platform Stuff.  [wmake] #
     2# makefile.mif :: Make Include File -- Defines Cross Platform Stuff.  [wmake] #
    33###############################################################################
    44
  • trunk/include/makefrwd.mif

    r57 r60  
    11###############################################################################
    2 # MAKEFRWD.MIF :: Make Include -- Forwards GNU Make to other Make Utilities.  #
     2# makefrwd.mif :: Make Include -- Forwards GNU Make to other Make Utilities.  #
    33###############################################################################
    44
     
    7676%:
    7777        @echo $(HEADER) with target: $(LQ)$@$(RQ)
    78         @$(OTHER_MAKE) $@
     78        @$(OTHER_MAKE) -h $@
  • trunk/install/c/GNUmakefile

    r46 r60  
    66# Include the forwarder.
    77#
    8 include         ../../INCLUDE/MAKEFRWD.MIF
     8include         ../../include/makefrwd.mif
  • trunk/install/c/Makefile

    r55 r60  
    33###############################################################################
    44# rousseau@ecomstation.com
    5 #
    6 # Derived from the FIXCODE Makefile.
    7 #
    85
    96#
    107# 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:
    129# 'D' for DOS, 'W' for Windows, '2' for OS/2 and 'L' for Linux.
    1310#
     
    1714# This is used to compensate for the differences between the target platforms.
    1815#
    19 !include        ../../INCLUDE/MAKEFILE.MIF
     16!include        ../../include/makefile.mif
    2017
    2118
     
    5249# Base Name of Source Program to compile.
    5350#
    54 BASENAME=INSTALL
     51BASENAME=install
    5552
    5653#
     
    5956# D=DOS, W=Windows, 2=OS2, L=Linux.
    6057#
    61 MODULE=AIRBOOT
     58MODULE=airboot
    6259
    6360#
    6461# This is a list of the Targets to be built.
    6562#
    66 TARGETS=$(MODULE)D.EXE $(MODULE)W.EXE $(MODULE)2.EXE $(MODULE)L.ELF
     63TARGETS=$(MODULE)d.exe $(MODULE)w.exe $(MODULE)2.exe $(MODULE)l.elf
    6764
    6865
     
    8986# -Cp   = case sensitive symbols
    9087# -zcw  = no _ prefix on symbols (C model)
    91 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.LST -Fw$^&.ERR
    92 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.LST -Fw$^&.ERR
    93 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.LST -Fw$^&.ERR
     88ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err
     89ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err
     90ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err
    9491!elseif "$(ASM)"=="wasm"
    95 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.ERR
    96 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.ERR
    97 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.ERR
     92ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.err
     93ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err
     94ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err
    9895!elseif "$(ASM)"=="tasm"
    9996# -ml   = case sensitive symbols
     
    10299ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -z -zi -c -la
    103100!elseif "$(ASM)"=="alp"
    104 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
    105 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
    106 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
     101ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err
     102ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err
     103ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err
    107104!else
    108105!error Unknown Assembler specified !
     
    116113CPU=-2
    117114CC16=wcc
    118 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -w4 -e25 -zq -osexan -fo=$^. -fr=$^&.ERR
    119 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d2 -w4 -e25 -zq -on -fo=$^. -fr=$^&.ERR
    120 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&.ERR
     115CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -w4 -e25 -zq -osexan -fo=$^. -fr=$^&.err
     116CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d2 -w4 -e25 -zq -on -fo=$^. -fr=$^&.err
     117CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(CPU) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err
    121118CC16_FLAGS=$(CC16_FLAGS_D$(DEBUG_LEVEL))
    122119
     
    126123MM32=-mf
    127124CC32=wcc386
    128 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -osexan -6r -fo=$^. -fr=$^&.ERR
    129 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -on -6r -fo=$^. -fr=$^&.ERR
    130 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.ERR
     125CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -osexan -6r -fo=$^. -fr=$^&.err
     126CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -on -6r -fo=$^. -fr=$^&.err
     127CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err
    131128CC32_FLAGS=$(CC32_FLAGS_D$(DEBUG_LEVEL))
    132129
     
    141138#
    142139#~ 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=$^&.MAP
     140LNK_FLAGS_D0=op q op v op map=$^&.map
    144141#~ LNK_FLAGS_D1=op q op v d all &
    145142        #~ order clname CODE clname FAR_CONST clname FAR_DATA clnam BEGDATA clname DATA clname BSS clname STACK clname BLAP NOE &
    146143        #~ op map=$^&.MAP
    147 LNK_FLAGS_D1=op q op v d all op map=$^&.MAP
    148 LNK_FLAGS_D2=op q op v d all op map=$^&.MAP
     144LNK_FLAGS_D1=op q op v d all op map=$^&.map
     145LNK_FLAGS_D2=op q op v d all op map=$^&.map
    149146LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL))
    150147
     
    195192        @echo.
    196193        @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] =
    198195        @echo =====================================================================
    199196#       @echo.
     
    258255# DOS 16-bits (MZ)
    259256###############################################################################
    260 $(MODULE)D.EXE: $(MODULE)D.OBJ
     257$(MODULE)d.exe: $(MODULE)d.obj
    261258#       @cat $^&.MD5
    262         $(LNK) $(LNK_FLAGS) op stack=8192 file $^&.OBJ name $^. sys dos
    263 #       @md5sum $^. > $^&.MD5
    264 #       @cat $^&.MD5
    265         @wdump $^. > $^&.WDU
     259        $(LNK) $(LNK_FLAGS) op stack=8192 file $^&.obj name $^. sys dos
     260#       @md5sum $^. > $^&.md5
     261#       @cat $^&.md5
     262        @wdump $^. > $^&.wdu
    266263        @if exist $^. @echo             $^. $(MSG_SUCCESS)
    267264        @echo.
    268265        #~ wstrip $^.
    269266
    270 $(MODULE)D.OBJ: $(BASENAME).C $(BASENAME).H
     267$(MODULE)d.obj: $(BASENAME).c $(BASENAME).h
    271268#       @echo.
    272         @echo TARGET: $^&.EXE   [DOS 16-bits Executable]
    273         $(CC16) $(CC16_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os21x -bt=dos $(BASENAME).C
    274         @wdis -fi $^. > $^&.WDA
     269        @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
    275272
    276273
     
    278275# NT 32-bits (PE)
    279276###############################################################################
    280 $(MODULE)W.EXE: $(MODULE)W.OBJ
    281         $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys nt
    282         @wdump $^. > $^&.WDU
     277$(MODULE)w.exe: $(MODULE)w.obj
     278        $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys nt
     279        @wdump $^. > $^&.wdu
    283280        @if exist $^. @echo             $^. $(MSG_SUCCESS)
    284281        @echo.
    285282
    286 $(MODULE)W.OBJ: $(BASENAME).C $(BASENAME).H
     283$(MODULE)w.obj: $(BASENAME).c $(BASENAME).h
    287284#       @echo.
    288         @echo TARGET: $^&.EXE   [NT 32-bits Executable]
    289         $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)nt -bt=nt $(BASENAME).C
    290         @wdis -fi $^. > $^&.WDA
     285        @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
    291288
    292289
     
    294291# OS/2 32-bits (LX)
    295292###############################################################################
    296 $(MODULE)2.EXE: $(MODULE)2.OBJ
    297         $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys os2v2
    298         @wdump $^. > $^&.WDU
     293$(MODULE)2.exe: $(MODULE)2.obj
     294        $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2
     295        @wdump $^. > $^&.wdu
    299296        @if exist $^. @echo             $^. $(MSG_SUCCESS)
    300297        @echo.
    301298        #~ wstrip $^.
    302299
    303 $(MODULE)2.OBJ: $(BASENAME).C $(BASENAME).H
     300$(MODULE)2.obj: $(BASENAME).c $(BASENAME).h
    304301#       @echo.
    305         @echo TARGET: $^&.EXE   [OS/2 32-bits Executable]
    306         $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).C
    307         @wdis -fi $^. > $^&.WDA
     302        @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
    308305
    309306
     
    311308# Linux 32-bits (ELF)
    312309###############################################################################
    313 $(MODULE)L.ELF: $(MODULE)L.OBJ
    314         $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^&.ELF sys linux
    315         @wdump $^. > $^&.WDU
    316 #       $(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 $^.
    317314        @if exist $^. @echo             $^. $(MSG_SUCCESS)
    318315        @echo.
    319316
    320 $(MODULE)L.OBJ: $(BASENAME).C $(BASENAME).H
     317$(MODULE)l.obj: $(BASENAME).c $(BASENAME).h
    321318#       @echo.
    322         @echo TARGET: $^&.ELF   [Linux 32-bits Executable]
    323         $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=linux $(BASENAME).C
    324         @wdis -fi $^. > $^&.WDA
     319        @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
    325322
    326323
     
    337334# DISTRIBUTE TO RELEASE SPACE
    338335# -----------------------------------------------------------------------------
    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'.
    341338# -----------------------------------------------------------------------------
    342339dist:   .SYMBOLIC
    343         @if exist AIRBOOT2.EXE $(CP) AIRBOOT2.EXE ..$(DS)..$(DS)RELEASE$(DS)OS2
    344         @if exist AIRBOOTD.EXE $(CP) AIRBOOTD.EXE ..$(DS)..$(DS)RELEASE$(DS)DOS
    345         @if exist AIRBOOTL.ELF $(CP) AIRBOOTL.ELF ..$(DS)..$(DS)RELEASE$(DS)LINUX
    346         @if exist AIRBOOTW.EXE $(CP) AIRBOOTW.EXE ..$(DS)..$(DS)RELEASE$(DS)WINNT
     340        @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
    347344
    348345#
     
    358355clean:  .SYMBOLIC
    359356        @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i
    360         @if exist *.OBJ $(RM) *.OBJ
    361         @if exist *.WDA $(RM) *.WDA
    362         @if exist *.WDU $(RM) *.WDU
    363         @if exist *.NDA $(RM) *.NDA
    364         @if exist *.MAP $(RM) *.MAP
    365         @if exist *.LST $(RM) *.LST
    366         @if exist *.ERR $(RM) *.ERR
     357        @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
    367364        @if exist *.o   $(RM) *.o
    368365
  • trunk/install/c/install.c

    r57 r60  
    1919
    2020
    21 #include    "INSTALL.H"
     21#include    "install.h"
    2222
    2323
     
    15671567
    15681568
    1569     // Allocate buffers for Track0 and AIRBOOT.BIN.
     1569    // Allocate buffers for Track0 and 'airboot.bin'.
    15701570    Track0 = malloc(SECTOR_COUNT * BYTES_PER_SECTOR);
    15711571    Bootcode = malloc(SECTOR_COUNT * BYTES_PER_SECTOR);
  • trunk/install/c/install.h

    r57 r60  
    112112
    113113/* Rousseau: added */
    114 #define     IMAGE_NAME              "AIRBOOT.BIN"
     114#define     IMAGE_NAME              "airboot.bin"
    115115#define     GPT                     0xEE                                // GPT Disk, AiR-BOOT will abort
    116116#define     BYTES_PER_SECTOR        512                                 // This could be higher in the future
  • trunk/install/floppy/kernel.asm

    r57 r60  
    3333StackSeg        equ     7000h
    3434
    35 Include ../../INCLUDE/ASM.INC
     35include ../../include/asm.inc
    3636
    3737                .386p
     
    122122APILockVolume:  retn
    123123
    124                 Include ../INST_X86/INSTALL.INC ; Execute generic code
     124                include ../inst_x86/install.inc ; Execute generic code
    125125COM_EndOfSegment:
    126126
  • trunk/release/Makefile

    r56 r60  
    55# Include a Master Makefile with several cross-platform definitions and macros.
    66# This is used to compensate for the differences between the target platforms.
    7 !include        ../INCLUDE/MAKEFILE.MIF
     7!include        ../include/makefile.mif
    88
    99default:        .SYMBOLIC
     
    1717        @echo @@ CLEANING RELEASE DIRECTORIES
    1818        @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    19         @cd BOOTCODE
     19        @cd bootcode
    2020        @cd
    21         @if exist *.BIN $(RM) *.BIN
    22         @if exist *.EXE $(RM) *.EXE
    23         @if exist *.ELF $(RM) *.ELF
     21        @if exist *.bin $(RM) *.bin
     22        @if exist *.exe $(RM) *.exe
     23        @if exist *.elf $(RM) *.elf
    2424        @cd ..
    25         @cd DOS
     25        @cd dos
    2626        @cd
    27         @if exist *.BIN $(RM) *.BIN
    28         @if exist *.EXE $(RM) *.EXE
    29         @if exist *.ELF $(RM) *.ELF
     27        @if exist *.bin $(RM) *.bin
     28        @if exist *.exe $(RM) *.exe
     29        @if exist *.elf $(RM) *.elf
    3030        @cd ..
    31         @cd LINUX
     31        @cd linux
    3232        @cd
    33         @if exist *.BIN $(RM) *.BIN
    34         @if exist *.EXE $(RM) *.EXE
    35         @if exist *.ELF $(RM) *.ELF
     33        @if exist *.bin $(RM) *.bin
     34        @if exist *.exe $(RM) *.exe
     35        @if exist *.elf $(RM) *.elf
    3636        @cd ..
    37         @cd OS2
     37        @cd os2
    3838        @cd
    39         @if exist *.BIN $(RM) *.BIN
    40         @if exist *.EXE $(RM) *.EXE
    41         @if exist *.ELF $(RM) *.ELF
     39        @if exist *.bin $(RM) *.bin
     40        @if exist *.exe $(RM) *.exe
     41        @if exist *.elf $(RM) *.elf
    4242        @cd ..
    43         @cd WINNT
     43        @cd winnt
    4444        @cd
    45         @if exist *.BIN $(RM) *.BIN
    46         @if exist *.EXE $(RM) *.EXE
    47         @if exist *.ELF $(RM) *.ELF
     45        @if exist *.bin $(RM) *.bin
     46        @if exist *.exe $(RM) *.exe
     47        @if exist *.elf $(RM) *.elf
    4848        @cd ..
  • trunk/tools/internal/GNUmakefile

    r37 r60  
    66# Include the forwarder.
    77#
    8 include         ../../INCLUDE/MAKEFRWD.MIF
     8include         ../../include/makefrwd.mif
  • trunk/tools/internal/Makefile

    r55 r60  
    11###############################################################################
    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 # FIXCODE is 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.
    88# This anti-virus code protects the MBR and is installed as a TSR by the
    99# loader. That's why it cannot be included at the source level.
     
    1414# This is used to compensate for the differences between the target platforms.
    1515#
    16 !include        ../../INCLUDE/MAKEFILE.MIF
     16!include        ../../include/makefile.mif
    1717
    1818
     
    4646# The DOS COM-version has no suffix.
    4747#
    48 BASENAME=FIXCODE
     48BASENAME=fixcode
    4949
    5050#
    5151# This is a list of the Targets to be built.
    5252#
    53 #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
     53#TARGETS=$(BASENAME)d.exe
     54#TARGETS=$(BASENAME).com
     55#TARGETS=$(BASENAME).com $(BASENAME)d.exe $(BASENAME)w.exe $(BASENAME)2.exe $(BASENAME)l.elf
     56TARGETS=$(BASENAME)d.exe $(BASENAME)w.exe $(BASENAME)2.exe $(BASENAME)l.elf
    5757
    5858#
     
    7878# -Cp   = case sensitive symbols
    7979# -zcw  = no _ prefix on symbols (C model)
    80 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
     80ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err
     81ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err
     82ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err
    8383!elseif "$(ASM)"=="wasm"
    84 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
     84ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.err
     85ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err
     86ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err
    8787!elseif "$(ASM)"=="tasm"
    8888# -ml   = case sensitive symbols
     
    9191ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -z -zi -c -la
    9292!elseif "$(ASM)"=="alp"
    93 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
     93ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err
     94ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err
    9595ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP
    9696!else
     
    104104CC16=wcc
    105105MM16=-ml
    106 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
     106CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&.err
     107CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err
     108CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err
    109109CC16_FLAGS=$(CC16_FLAGS_D$(DEBUG_LEVEL))
    110110
     
    114114MM32=-mf
    115115CC32=wcc386
    116 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
     116CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&.err
     117CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err
     118CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err
    119119CC32_FLAGS_R=-w4 -e25 -zq -od -6r -mf -fo=$^.
    120120CC32_FLAGS=$(CC32_FLAGS_D$(DEBUG_LEVEL))
     
    124124#
    125125LNK=wlink
    126 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
     126LNK_FLAGS_D0=op q op v op map=$^&.map
     127LNK_FLAGS_D1=op q op v d all op map=$^&.map
     128LNK_FLAGS_D2=op q op v d all op map=$^&.map
    129129LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL))
    130130
     
    175175        @echo.
    176176        @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] =
    178178        @echo =====================================================================
    179179#       @echo.
     
    222222# DOS 16-bits (COM)
    223223###############################################################################
    224 $(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
     224$(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
    234234
    235235
     
    237237# DOS 16-bits (MZ)
    238238###############################################################################
    239 $(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
     239$(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
    249249
    250250
     
    252252# NT 32-bits (PE)
    253253###############################################################################
    254 $(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
     254$(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
    264264
    265265
     
    267267# OS/2 32-bits (LX)
    268268###############################################################################
    269 $(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
     269$(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
    279279
    280280
     
    282282# Linux 32-bits (ELF)
    283283###############################################################################
    284 $(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
     284$(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
    295295
    296296
     
    315315clean:  .SYMBOLIC
    316316        @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i
    317         @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
     317        @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
    323323        @if exist *.o   $(RM) *.o
    324324
  • trunk/tools/internal/fixcode.c

    r57 r60  
    1919/*
    2020// 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'.
    2222//  It is a quick-and-dirty translation of the original DOS-only ASM file.
    2323//  Of course it's not as small but it's much easier to maintain across
    2424//  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'.
    2626//  This way the pre and post situations are kept valid.
    2727*/
    2828
    2929
    30 #include    "FIXCODE.H"
     30#include    "fixcode.h"
    3131
    3232
     
    4949
    5050/* File names */
    51 #define     IN_FILE     "AIR-BOOT.COM"              // Target from assembly.
     51#define     IN_FILE     "air-boot.com"              // Target from assembly.
    5252#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.
    5454#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.
    5858
    5959
     
    200200
    201201    /*
    202     // Write AIRBOOT.BIN
     202    // Write 'airboot.bin'
    203203    */
    204204    printf("%s", WriteCode);
  • trunk/tools/os2/setaboot/GNUmakefile

    r46 r60  
    66# Include the forwarder.
    77#
    8 include         ../../../INCLUDE/MAKEFRWD.MIF
     8include         ../../../include/makefrwd.mif
  • trunk/tools/os2/setaboot/Makefile

    r55 r60  
    11###############################################################################
    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] #
    33###############################################################################
    44# 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.
    139#
    1410
     
    1713# This is used to compensate for the differences between the target platforms.
    1814#
    19 !include        ../../../INCLUDE/MAKEFILE.MIF
     15!include        ../../../include/makefile.mif
    2016
    2117
     
    4642# Base Name of Source Program to compile.
    4743#
    48 BASENAME=SETABOOT
     44BASENAME=setaboot
    4945
    5046#
     
    5854# This is a list of the Targets to be built.
    5955#
    60 #TARGETS=$(MODULE)D.EXE $(MODULE)W.EXE $(MODULE)2.EXE $(MODULE)L.ELF
    61 TARGETS=$(MODULE).EXE
     56#TARGETS=$(MODULE)d.exe $(MODULE)w.exe $(MODULE)2.exe $(MODULE)l.elf
     57TARGETS=$(MODULE).exe
    6258
    6359#
     
    8379# -Cp   = case sensitive symbols
    8480# -zcw  = no _ prefix on symbols (C model)
    85 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.LST -Fw$^&.ERR
    86 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.LST -Fw$^&.ERR
    87 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.LST -Fw$^&.ERR
     81ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Fo$^. -Fl=$^&.lst -Fw$^&.err
     82ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err
     83ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DASSEMBLER=JWASM -q -Cp -Zd -Zi -Fo$^. -Sa -Fl=$^&.lst -Fw$^&.err
    8884!elseif "$(ASM)"=="wasm"
    89 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.ERR
    90 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.ERR
    91 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.ERR
     85ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -fo=$^. -fr=$^&.err
     86ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err
     87ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -zq -d1 -fo=$^. -fr=$^&.err
    9288!elseif "$(ASM)"=="tasm"
    9389# -ml   = case sensitive symbols
     
    9692ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dASSEMBLER=TASM -t -ml -z -zi -c -la
    9793!elseif "$(ASM)"=="alp"
    98 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
    99 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:OBJ +Fl +Fel:LST +Fm +Fem:ERR
     94ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err
     95ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err
    10096ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ASSEMBLER=ALP
    10197!else
     
    109105MM16=-ml
    110106CC16=wcc
    111 CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&.ERR
    112 CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.ERR
    113 CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&.ERR
     107CC16_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -w4 -e25 -zq -otexan -fo=$^. -fr=$^&.err
     108CC16_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d2 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err
     109CC16_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM16) -d3 -w4 -e25 -zq -od -fo=$^. -fr=$^&.err
    114110CC16_FLAGS=$(CC16_FLAGS_D$(DEBUG_LEVEL))
    115111
     
    119115MM32=-mf
    120116CC32=wcc386
    121 CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&.ERR
    122 CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.ERR
    123 CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.ERR
     117CC32_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -w4 -e25 -zq -otexan -6r -fo=$^. -fr=$^&.err
     118CC32_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d2 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err
     119CC32_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) $(MM32) -d3 -w4 -e25 -zq -od -6r -fo=$^. -fr=$^&.err
    124120CC32_FLAGS=$(CC32_FLAGS_D$(DEBUG_LEVEL))
    125121
     
    133129# WLink/2 can use the '\x40' variant.
    134130#
    135 #~ LNK_FLAGS_D0=op q op v op map=$^&.MAP op de '\x40\x23KIEWITZ:1.18\x23\x40\x41iR-BOOT Installer by Kiewitz'
    136 LNK_FLAGS_D0=op q op v op map=$^&.MAP
     131#~ LNK_FLAGS_D0=op q op v op map=$^&.map op de '\x40\x23KIEWITZ:1.18\x23\x40\x41iR-BOOT Installer by Kiewitz'
     132LNK_FLAGS_D0=op q op v op map=$^&.map
    137133#~ LNK_FLAGS_D1=op q op v d all &
    138134        #~ order clname CODE clname FAR_CONST clname FAR_DATA clnam BEGDATA clname DATA clname BSS clname STACK clname BLAP NOE &
    139         #~ op map=$^&.MAP
    140 LNK_FLAGS_D1=op q op v d all op map=$^&.MAP
    141 LNK_FLAGS_D2=op q op v d all op map=$^&.MAP
     135        #~ op map=$^&.map
     136LNK_FLAGS_D1=op q op v d all op map=$^&.map
     137LNK_FLAGS_D2=op q op v d all op map=$^&.map
    142138LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL))
    143139
     
    188184        @echo.
    189185        @echo =====================================================================
    190         @echo = PROGRAM: SETABOOT Multi Platform   [DOS, Win32, OS/2 and Linux] =
     186        @echo = PROGRAM: 'setaboot', setboot replacement for OS/2          [OS/2] =
    191187        @echo =====================================================================
    192188#       @echo.
     
    251247# OS/2 32-bits (LX)
    252248###############################################################################
    253 $(MODULE).EXE:  $(MODULE).OBJ
    254         $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys os2v2
     249$(MODULE).exe:  $(MODULE).obj
     250        $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys os2v2
    255251        @if exist $^. @echo             $^. $(MSG_SUCCESS)
    256252        @echo.
    257253        #~ wstrip $^.
    258254
    259 $(MODULE).OBJ:  $(BASENAME).C $(BASENAME).H
     255$(MODULE).obj:  $(BASENAME).c $(BASENAME).h
    260256#       @echo.
    261         @echo TARGET: $^&.EXE   [OS/2 32-bits Executable]
    262         $(CC32) $(CC32_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=os2 $(BASENAME).C
    263         @wdis -fi $^. > $^&.WDA
     257        @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
    264260
    265261
     
    281277clean:  .SYMBOLIC
    282278        @for %%i in ($(TARGETS)) do @if exist %%i $(RM) %%i
    283         @if exist *.OBJ $(RM) *.OBJ
    284         @if exist *.WDA $(RM) *.WDA
    285         @if exist *.NDA $(RM) *.NDA
    286         @if exist *.MAP $(RM) *.MAP
    287         @if exist *.LST $(RM) *.LST
    288         @if exist *.ERR $(RM) *.ERR
     279        @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
    289285        @if exist *.o   $(RM) *.o
    290286
     
    292288# DISTRIBUTE TO RELEASE SPACE
    293289# -----------------------------------------------------------------------------
    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'.
    296291# -----------------------------------------------------------------------------
    297292dist:   .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
    300294#
    301295# Help on using this Makefile.
  • trunk/tools/os2/setaboot/setaboot.c

    r57 r60  
    2424
    2525
    26 #include    "SETABOOT.H"
     26#include    "setaboot.h"
    2727
    2828
     
    4040#include <string.h>
    4141
    42 #include "MSGHELP.C"
     42#include "msghelp.c"
    4343
    4444// Msg-IDs from OSO001.msg
Note: See TracChangeset for help on using the changeset viewer.