diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-01-25 15:56:45 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-01-25 15:56:45 +0000 |
commit | 6b884b930a9e1b7016f4e1a8967466cb9536ce45 (patch) | |
tree | 7af0506cbd95b5000b577030f53f9575fdf05937 /tools | |
parent | 71124479ed9f7e88f7b11f3ad4175000e2f21c4e (diff) | |
download | ubox-msx-lib-6b884b930a9e1b7016f4e1a8967466cb9536ce45.tar.gz ubox-msx-lib-6b884b930a9e1b7016f4e1a8967466cb9536ce45.zip |
Better compatibility with Windows
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rasm/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
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) |