Changeset 60 for trunk/bootcode/mbr-prot


Ignore:
Timestamp:
Feb 18, 2016, 5:18:51 PM (10 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/bootcode/mbr-prot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.