From 71124479ed9f7e88f7b11f3ad4175000e2f21c4e Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 18 Jan 2021 19:16:59 +0000 Subject: Better windows support --- tools/rasm/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/rasm') 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 -- cgit v1.2.3