Changeset 63 for trunk/bootcode/mbr-prot
- Timestamp:
- Oct 9, 2016, 10:53:41 PM (9 years ago)
- Location:
- trunk/bootcode/mbr-prot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/mbr-prot/GNUmakefile
r60 r63 6 6 # Include the forwarder. 7 7 # 8 include 8 include ../../include/makefrwd.mif -
trunk/bootcode/mbr-prot/Makefile
r60 r63 1 1 ############################################################################### 2 2 # Makefile :: Builds the 'mbr-prot.bin' 16-bits RAW Protection Image # 3 # ##############################################################################4 # rousseau@ecomstation.com5 6 # 7 # Th is 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 11 11 12 12 … … 15 15 # This is used to compensate for the differences between the target platforms. 16 16 # 17 !include 17 !include ../../include/makefile.mif 18 18 19 19 # … … 69 69 # we are building on Linux. 70 70 # 71 !ifdef 71 !ifdef __LINUX__ 72 72 !if "$(ASM)"=="masm" | "$(ASM)"=="tasm" | "$(ASM)"=="alp" 73 73 ASM=jwasm … … 76 76 77 77 !if "$(ASM)"=="jwasm" 78 # -Cp 79 # -zcw 78 # -Cp = case sensitive symbols 79 # -zcw = no _ prefix on symbols (C model) 80 80 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err 81 81 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -Cp -zcw -Zd -Zi -Fo$^&.obj -Sa -Fl=$^&.lst -Fw$^&.err … … 90 90 ASM_FLAGS_D2=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dWASM -zq -d1 -fo=$^&.obj -fr=$^&.err 91 91 !elseif "$(ASM)"=="tasm" 92 # -ml 92 # -ml = case sensitive symbols 93 93 ASM_FLAGS_D0=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -l 94 94 ASM_FLAGS_D1=-dDEBUG_LEVEL=$(DEBUG_LEVEL) -dTASM -t -ml -m9 -z -zi -c -la … … 124 124 .AFTER 125 125 # @echo == AFTER == 126 !ifdef 126 !ifdef __MSDOS__ 127 127 @echo $(WARN_DOS_BLD_ENV) 128 128 !endif … … 133 133 # If this Makefile was modified, all targets are forcefully rebuilt. 134 134 # 135 all: 135 all: .SYMBOLIC Makefile.bu header $(TARGET) footer 136 136 137 137 … … 139 139 # Show the header. 140 140 # 141 header: 141 header: .SYMBOLIC 142 142 @echo. 143 143 @echo ===================================================================== … … 150 150 # Show the footer. 151 151 # 152 footer: 152 footer: .SYMBOLIC 153 153 # $(RM) $(TARGET) 154 154 @echo All targets up to date ! … … 162 162 # using the new level. 163 163 # 164 Makefile.bu: 164 Makefile.bu: Makefile 165 165 @echo. 166 166 @echo Makefile modified, forcing rebuild of all targets ! … … 191 191 # 16-bits RAW :: MBR virus protection to be embedded in the 'airboot.bin' image 192 192 ############################################################################### 193 $(TARGET): 194 @echo TARGET: $^. 193 $(TARGET): $(BASENAME).asm 194 @echo TARGET: $^. [DOS 16-bits Raw Image] 195 195 $(ASM) $(ASM_FLAGS) $(BASENAME).asm 196 196 @wdis -fi $^&.obj > $^&.wda 197 197 $(LNK) $(LNK_FLAGS) file $^&.obj name $^. sys dos com 198 198 # $(LNK) $(LNK_FLAGS) file $^&.obj name $^. form raw 199 @if exist $^. @echo 199 @if exist $^. @echo $^. $(MSG_SUCCESS) 200 200 @ndisasm -k9,0 $^. > $^&.nda 201 201 # @echo. 202 202 203 #$(BASENAME).obj: 204 # @echo. 205 # @echo TARGET: $^. 203 #$(BASENAME).obj: $(BASENAME).asm 204 # @echo. 205 # @echo TARGET: $^. [DOS 16-bits Raw Image] 206 206 # $(ASM) $(ASM_FLAGS) $(BASENAME).asm 207 207 # @wdis -fi $^. > $^&.wda … … 217 217 # Rebuild all targets. 218 218 # 219 rebuild: 219 rebuild: .SYMBOLIC 220 220 @%MAKE clean 221 221 @%MAKE all … … 224 224 # Remove all generated files. 225 225 # 226 clean: 226 clean: .SYMBOLIC 227 227 # @echo CLEANING UP 228 228 # @for %%i in ($(TARGET)) do @if exist %%i $(RM) %%i … … 240 240 # Remove all residual .BIN files. 241 241 # 242 rmbin: 242 rmbin: .SYMBOLIC 243 243 @if exist *.bin $(RM) *.bin 244 244 … … 247 247 # Help on using this Makefile. 248 248 # 249 help: 250 @echo. 251 @echo 252 @echo wmaketo build all targets and all languages253 @echo wmake listto show the list of buildable targets254 @echo wmake cleanto remove almost all generated files255 @echo wmake rmbinto remove all residual BIN files256 @echo wmake rebuildto rebuild all targets257 @echo wmake help forthis information249 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 to show this information 258 258 @echo. 259 259 … … 263 263 show: .SYMBOLIC 264 264 @echo. 265 @echo 266 @for %%i in ($(TARGET)) do @echo 265 @echo The following [case sensitive] targets can be built: 266 @for %%i in ($(TARGET)) do @echo %%i 267 267 @echo. 268 268 # Alias for show 269 list: 269 list: .SYMBOLIC 270 270 @%MAKE show 271 271 … … 275 275 .ERROR 276 276 @echo. 277 @echo 278 @echo 279 @echo 280 @echo 281 @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. 282 282 @%MAKE help 283 283 @echo.
Note:
See TracChangeset
for help on using the changeset viewer.