From 6b884b930a9e1b7016f4e1a8967466cb9536ce45 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 25 Jan 2021 15:56:45 +0000 Subject: Better compatibility with Windows --- tools/rasm/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tools/rasm') diff --git a/tools/rasm/Makefile b/tools/rasm/Makefile index 8e7e71b..8f0c708 100644 --- a/tools/rasm/Makefile +++ b/tools/rasm/Makefile @@ -1,13 +1,17 @@ all: rasm +CC := gcc + ifdef ($(OS),Windows_NT) - TARGET = rasm.exe + TARGET := rasm.exe + LDFLAGS := -lrtm else - TARGET = rasm + TARGET := rasm + LDFLAGS := -lm -lrt endif rasm: rasm_v0120.c - $(CC) $< -s -O2 -lm -lrt -march=native -o $@ + $(CC) $< -s -O2 $(LDFLAGS) -march=native -o $@ cp $(TARGET) ../../bin rm -f $(TARGET) -- cgit v1.2.3