Changeset 63 for trunk/bootcode/mbr-prot


Ignore:
Timestamp:
Oct 9, 2016, 10:53:41 PM (9 years ago)
Author:
Ben Rietbroek
Message:

Updated Build Info and added File Commander Build Menus [v1.1.1-testing]

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

Changes:
o Updated Build Info
o Added simple File Commander Build Menus
o Removed tabs from non-recipe sections in Makefiles

Notes:
o RU version currently does not build due to lack of code-space

Will be resolved when FX-code is removed from build.

Location:
trunk/bootcode/mbr-prot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/mbr-prot/GNUmakefile

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

    r60 r63  
    11###############################################################################
    22# Makefile :: Builds the 'mbr-prot.bin' 16-bits RAW Protection Image          #
    3 ###############################################################################
    4 # rousseau@ecomstation.com
    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'.
    10 #
     3# --------------------------------------------------------------------------- #
     4#                                                                             #
     5# This Makefile builds the 'mbr_prot.bin' image.                              #
     6# This image is embedded in 'airboot.bin' to provide virus protection.        #
     7# The 'fixcode' program embeds this image in 'airboot.bin'.                   #
     8#                                                                             #
     9###############################################################################
     10
    1111
    1212
     
    1515# This is used to compensate for the differences between the target platforms.
    1616#
    17 !include        ../../include/makefile.mif
     17!include ../../include/makefile.mif
    1818
    1919#
     
    6969# we are building on Linux.
    7070#
    71 !ifdef  __LINUX__
     71!ifdef __LINUX__
    7272!if "$(ASM)"=="masm" | "$(ASM)"=="tasm" | "$(ASM)"=="alp"
    7373ASM=jwasm
     
    7676
    7777!if "$(ASM)"=="jwasm"
    78 # -Cp   = case sensitive symbols
    79 # -zcw  = no _ prefix on symbols (C model)
     78# -Cp   = case sensitive symbols
     79# -zcw  = no _ prefix on symbols (C model)
    8080ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err
    8181ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err
     
    9090ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err
    9191!elseif "$(ASM)"=="tasm"
    92 # -ml   = case sensitive symbols
     92# -ml   = case sensitive symbols
    9393ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -l
    9494ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -z -zi -c -la
     
    124124.AFTER
    125125#       @echo == AFTER ==
    126 !ifdef  __MSDOS__
     126!ifdef __MSDOS__
    127127        @echo $(WARN_DOS_BLD_ENV)
    128128!endif
     
    133133# If this Makefile was modified, all targets are forcefully rebuilt.
    134134#
    135 all:    .SYMBOLIC Makefile.bu header $(TARGET) footer
     135all: .SYMBOLIC Makefile.bu header $(TARGET) footer
    136136
    137137
     
    139139# Show the header.
    140140#
    141 header: .SYMBOLIC
     141header: .SYMBOLIC
    142142        @echo.
    143143        @echo =====================================================================
     
    150150# Show the footer.
    151151#
    152 footer: .SYMBOLIC
     152footer: .SYMBOLIC
    153153#       $(RM) $(TARGET)
    154154        @echo All targets up to date !
     
    162162# using the new level.
    163163#
    164 Makefile.bu:    Makefile
     164Makefile.bu: Makefile
    165165        @echo.
    166166        @echo Makefile modified, forcing rebuild of all targets !
     
    191191# 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image
    192192###############################################################################
    193 $(TARGET):      $(BASENAME).asm
    194         @echo TARGET: $^.       [DOS 16-bits Raw Image]
     193$(TARGET): $(BASENAME).asm
     194        @echo TARGET: $^. [DOS 16-bits Raw Image]
    195195        $(ASM) $(ASM_FLAGS) $(BASENAME).asm
    196196        @wdis -fi $^&.obj > $^&.wda
    197197        $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com
    198198#       $(LNK) $(LNK_FLAGS) file $^&.obj name $^. form raw
    199         @if exist $^. @echo             $^. $(MSG_SUCCESS)
     199        @if exist $^. @echo $^. $(MSG_SUCCESS)
    200200        @ndisasm -k9,0 $^. > $^&.nda
    201201#       @echo.
    202202
    203 #$(BASENAME).obj:       $(BASENAME).asm
    204 #       @echo.
    205 #       @echo TARGET: $^.       [DOS 16-bits Raw Image]
     203#$(BASENAME).obj: $(BASENAME).asm
     204#       @echo.
     205#       @echo TARGET: $^. [DOS 16-bits Raw Image]
    206206#       $(ASM) $(ASM_FLAGS) $(BASENAME).asm
    207207#       @wdis -fi $^. > $^&.wda
     
    217217# Rebuild all targets.
    218218#
    219 rebuild:        .SYMBOLIC
     219rebuild: .SYMBOLIC
    220220        @%MAKE clean
    221221        @%MAKE all
     
    224224# Remove all generated files.
    225225#
    226 clean:  .SYMBOLIC
     226clean: .SYMBOLIC
    227227#       @echo CLEANING UP
    228228#       @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i
     
    240240# Remove all residual .BIN files.
    241241#
    242 rmbin:  .SYMBOLIC
     242rmbin: .SYMBOLIC
    243243        @if exist *.bin $(RM) *.bin
    244244
     
    247247# Help on using this Makefile.
    248248#
    249 help:   .SYMBOLIC
    250         @echo.
    251         @echo           The following actions are available:
    252         @echo           wmake           to build all targets and all languages
    253         @echo           wmake list      to show the list of buildable targets
    254         @echo           wmake clean     to remove almost all generated files
    255         @echo           wmake rmbin     to remove all residual BIN files
    256         @echo           wmake rebuild   to rebuild all targets
    257         @echo           wmake help      for this information
     249help: .SYMBOLIC
     250        @echo.
     251        @echo The following actions are available:
     252        @echo wmake         to build all targets and all languages
     253        @echo wmake list    to show the list of buildable targets
     254        @echo wmake clean   to remove almost all generated files
     255        @echo wmake rmbin   to remove all residual BIN files
     256        @echo wmake rebuild to rebuild all targets
     257        @echo wmake help    to show this information
    258258        @echo.
    259259
     
    263263show:   .SYMBOLIC
    264264        @echo.
    265         @echo           The following [case sensitive] targets can be built:
    266         @for %%i in ($(TARGET)) do @echo        %%i
     265        @echo The following [case sensitive] targets can be built:
     266        @for %%i in ($(TARGET)) do @echo %%i
    267267        @echo.
    268268# Alias for show
    269 list:   .SYMBOLIC
     269list: .SYMBOLIC
    270270        @%MAKE show
    271271
     
    275275.ERROR
    276276        @echo.
    277         @echo           Oops!
    278         @echo           Some error occured in this build session.
    279         @echo           If it's a linker problem, it could be
    280         @echo           the result of out-of-sync object files.
    281         @echo           Doing a wmake rebuild might solve the problem.
     277        @echo Oops!
     278        @echo Some error occured in this build session.
     279        @echo If it's a linker problem, it could be
     280        @echo the result of out-of-sync object files.
     281        @echo Doing a wmake rebuild might solve the problem.
    282282        @%MAKE help
    283283        @echo.
Note: See TracChangeset for help on using the changeset viewer.