File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,17 @@ fasm = fasm
2
2
fasm_extraopts = -d bios_drive=0
3
3
# fasm_extraopts += -d target_segment=0xE000
4
4
readblock_retries = 7
5
+ qemu = qemu-system-i386
5
6
hexdumpcmd = hexdump -C
6
7
# hexdumpcmd = xxd -a
7
- qemu = qemu-system-i386
8
+ deletecmd = rm -f
8
9
build_date = $(shell date -u +% Y% m% d% H% MZ)
9
- fasm_extraopts += -d build_date=\"$(build_date ) \"
10
+ ifeq ($(OS ) ,Windows_NT)
11
+ deletecmd = del
12
+ hexdumpcmd = echo
13
+ else
14
+ fasm_extraopts += -d build_date=\"$(build_date)\"
15
+ endif
10
16
fasm_extraopts += -d readblock_retries=$(readblock_retries )
11
17
.PHONY : all
12
18
all : optromloader18 optromloader15 optromloader9 fd1440.img fd720.img fd1200.img fd360.img hexdump
@@ -38,7 +44,7 @@ testrom.bin: testrom.asm
38
44
.PHONY : clean
39
45
clean :
40
46
@echo " *** Removing build artifacts..."
41
- rm -f optromloader9 optromloader15 optromloader18 fd1440.img fd720.img fd1200.img fd360.img testrom.bin
47
+ $( deletecmd ) optromloader9 optromloader15 optromloader18 fd1440.img fd720.img fd1200.img fd360.img testrom.bin
42
48
.PHONY : hexdump
43
49
hexdump : optromloader18
44
50
@echo " *** hexdump optromloader18..."
You can’t perform that action at this time.
0 commit comments