summaryrefslogtreecommitdiff
path: root/tools/rasm
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-01-18 19:16:59 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-01-18 19:16:59 +0000
commit71124479ed9f7e88f7b11f3ad4175000e2f21c4e (patch)
tree7fe95b7cd81c96839f97ac514997652c2513f3b5 /tools/rasm
parent97ba35b1bc0719dc3b0c981534de196c3d68d1a5 (diff)
downloadubox-msx-lib-71124479ed9f7e88f7b11f3ad4175000e2f21c4e.tar.gz
ubox-msx-lib-71124479ed9f7e88f7b11f3ad4175000e2f21c4e.zip
Better windows support
Diffstat (limited to 'tools/rasm')
-rw-r--r--tools/rasm/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/rasm/Makefile b/tools/rasm/Makefile
index 8818fe2..8e7e71b 100644
--- a/tools/rasm/Makefile
+++ b/tools/rasm/Makefile
@@ -1,12 +1,18 @@
all: rasm
+ifdef ($(OS),Windows_NT)
+ TARGET = rasm.exe
+else
+ TARGET = rasm
+endif
+
rasm: rasm_v0120.c
$(CC) $< -s -O2 -lm -lrt -march=native -o $@
- cp rasm ../../bin
- rm -f rasm
+ cp $(TARGET) ../../bin
+ rm -f $(TARGET)
clean:
- rm -f rasm
+ rm -f $(TARGET)
.PHONY: all clean