Skip to content

Commit f21354c

Browse files
committed
Makefile: Initial support for building with Windows NT.
1 parent f13d484 commit f21354c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ fasm = fasm
22
fasm_extraopts = -d bios_drive=0
33
#fasm_extraopts += -d target_segment=0xE000
44
readblock_retries = 7
5+
qemu = qemu-system-i386
56
hexdumpcmd = hexdump -C
67
#hexdumpcmd = xxd -a
7-
qemu = qemu-system-i386
8+
deletecmd = rm -f
89
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
1016
fasm_extraopts += -d readblock_retries=$(readblock_retries)
1117
.PHONY: all
1218
all: optromloader18 optromloader15 optromloader9 fd1440.img fd720.img fd1200.img fd360.img hexdump
@@ -38,7 +44,7 @@ testrom.bin: testrom.asm
3844
.PHONY: clean
3945
clean:
4046
@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
4248
.PHONY: hexdump
4349
hexdump: optromloader18
4450
@echo "*** hexdump optromloader18..."

0 commit comments

Comments
 (0)