Changeset 60 for trunk/bootcode/mbr-prot
- Timestamp:
- Feb 18, 2016, 5:18:51 PM (10 years ago)
- Location:
- trunk/bootcode/mbr-prot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/mbr-prot/GNUmakefile
r37 r60 6 6 # Include the forwarder. 7 7 # 8 include ../../ INCLUDE/MAKEFRWD.MIF8 include ../../include/makefrwd.mif -
trunk/bootcode/mbr-prot/Makefile
r51 r60 1 1 ############################################################################### 2 # Makefile :: Builds the MBR-PROT.BIN 16-bits RAW Protection Image.#2 # Makefile :: Builds the 'mbr-prot.bin' 16-bits RAW Protection Image # 3 3 ############################################################################### 4 4 # rousseau@ecomstation.com 5 # 6 # Derived from the AIR-BOOT Makefile. 7 # 8 9 # 10 # This Makefile builds the MBR_PROT.BIN image. 11 # This image is embedded in the AIRBOOT.BIN image to provide virus protection. 12 # The FIXCODE program embeds this image in AIRBOOT.BIN. 5 6 # 7 # This Makefile builds the 'mbr_prot.bin' image. 8 # This image is embedded in the 'airboot.bin' image to provide virus protection. 9 # The 'fixcode' program embeds this image in 'airboot.bin'. 13 10 # 14 11 … … 18 15 # This is used to compensate for the differences between the target platforms. 19 16 # 20 !include ../../ INCLUDE/MAKEFILE.MIF17 !include ../../include/makefile.mif 21 18 22 19 # … … 45 42 # Source Level base-name of Target to build. 46 43 # 47 BASENAME= MBR-PROT44 BASENAME=mbr-prot 48 45 49 46 # … … 54 51 # 55 52 # This is a list of the Targets to be built. 56 # For MBR_PROT there is only one real target: MBR-PROT.BIN.57 # 58 TARGET=$(MODULE). BIN53 # For MBR_PROT there is only one real target: mbr-prot.bin. 54 # 55 TARGET=$(MODULE).bin 59 56 60 57 # … … 81 78 # -Cp = case sensitive symbols 82 79 # -zcw = no _ prefix on symbols (C model) 83 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Fo$^&. OBJ -Sa -Fl=$^&.LST -Fw$^&.ERR84 ASM_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EL=$(DEBUG_LEVEL) -dWASM -zq -fo=$^&. OBJ -fr=$^&.ERR92 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&. OBJ -fr=$^&.ERR93 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&. OBJ -fr=$^&.ERR88 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -fo=$^&.obj -fr=$^&.err 89 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err 90 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err 94 91 !elseif "$(ASM)"=="tasm" 95 92 # -ml = case sensitive symbols … … 98 95 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -z -zi -c -la 99 96 !elseif "$(ASM)"=="alp" 100 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR101 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo: OBJ +Fl +Fel:LST +Fm +Fem:ERR97 ASM_FLAGS_D0=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Feo:obj +Fl +Fel:lst +Fm +Fem:err 98 ASM_FLAGS_D1=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP -Mb +Od:MS16 +Feo:obj +Fl +Fel:lst +Fm +Fem:err 102 99 ASM_FLAGS_D2=-D:DEBUG_LEVEL=$(DEBUG_LEVEL) -D:ALP 103 100 !else … … 110 107 # 111 108 LNK=wlink 112 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&. MAP113 LNK_FLAGS_D1=op q op v d all op map=$^&. MAP114 LNK_FLAGS_D2=op q op v d all op map=$^&. MAP109 LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.map 110 LNK_FLAGS_D1=op q op v d all op map=$^&.map 111 LNK_FLAGS_D2=op q op v d all op map=$^&.map 115 112 LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL)) 116 113 … … 179 176 180 177 ############################################################################### 181 # 16-bits RAW :: MBR virus protection to be embedded in the AIRBOOT.BIN image.182 ############################################################################### 183 #$(TARGET): $(BASENAME). COM184 # $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos com185 # $(CP) $(BASENAME). COM$(TARGET)178 # 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image 179 ############################################################################### 180 #$(TARGET): $(BASENAME).com 181 # $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 182 # $(CP) $(BASENAME).com $(TARGET) 186 183 # @echo $(%BLD_LANG)>$^. 187 184 # @if exist $^. @echo $^. $(MSG_SUCCESS) - [$(%BLD_LANG) version] … … 192 189 193 190 ############################################################################### 194 # 16-bits RAW :: MBR virus protection to be embedded in the AIRBOOT.BIN image.195 ############################################################################### 196 $(TARGET): $(BASENAME). ASM191 # 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image 192 ############################################################################### 193 $(TARGET): $(BASENAME).asm 197 194 @echo TARGET: $^. [DOS 16-bits Raw Image] 198 $(ASM) $(ASM_FLAGS) $(BASENAME). ASM199 @wdis -fi $^&. OBJ > $^&.WDA200 $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. sys dos com201 # $(LNK) $(LNK_FLAGS) file $^&. OBJname $^. form raw195 $(ASM) $(ASM_FLAGS) $(BASENAME).asm 196 @wdis -fi $^&.obj > $^&.wda 197 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 198 # $(LNK) $(LNK_FLAGS) file $^&.obj name $^. form raw 202 199 @if exist $^. @echo $^. $(MSG_SUCCESS) 203 @ndisasm -k9,0 $^. > $^&. NDA204 # @echo. 205 206 #$(BASENAME). OBJ: $(BASENAME).ASM200 @ndisasm -k9,0 $^. > $^&.nda 201 # @echo. 202 203 #$(BASENAME).obj: $(BASENAME).asm 207 204 # @echo. 208 205 # @echo TARGET: $^. [DOS 16-bits Raw Image] 209 # $(ASM) $(ASM_FLAGS) $(BASENAME). ASM210 # @wdis -fi $^. > $^&. WDA206 # $(ASM) $(ASM_FLAGS) $(BASENAME).asm 207 # @wdis -fi $^. > $^&.wda 211 208 212 209 … … 230 227 # @echo CLEANING UP 231 228 # @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i 232 @if exist *. COM $(RM) *.COM233 @if exist *. BIN $(RM) *.BIN234 @if exist *. OBJ $(RM) *.OBJ235 @if exist *. WDA $(RM) *.WDA236 @if exist *. NDA $(RM) *.NDA237 @if exist *. MAP $(RM) *.MAP238 @if exist *. LST $(RM) *.LST239 @if exist *. ERR $(RM) *.ERR229 @if exist *.com $(RM) *.com 230 @if exist *.bin $(RM) *.bin 231 @if exist *.obj $(RM) *.obj 232 @if exist *.wda $(RM) *.wda 233 @if exist *.nda $(RM) *.nda 234 @if exist *.map $(RM) *.map 235 @if exist *.lst $(RM) *.lst 236 @if exist *.err $(RM) *.err 240 237 @if exist *.o $(RM) *.o 241 238 … … 244 241 # 245 242 rmbin: .SYMBOLIC 246 @if exist *. BIN $(RM) *.BIN243 @if exist *.bin $(RM) *.bin 247 244 248 245
Note:
See TracChangeset
for help on using the changeset viewer.