aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-02-09 20:24:01 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-02-09 20:29:59 +0000
commita58371c419f0f8fc16eaf6335e8c9fb44f5f99a0 (patch)
treed0e8d5566432ef496a489112388eb8a3583b993d /tools
parentce9fedef58f4e826bcefd4ece392b435388e0486 (diff)
downloadubox-msx-lib-a58371c419f0f8fc16eaf6335e8c9fb44f5f99a0.tar.gz
ubox-msx-lib-a58371c419f0f8fc16eaf6335e8c9fb44f5f99a0.zip
Fixes in Makefile when detecting Windows OS
Diffstat (limited to 'tools')
-rw-r--r--tools/apultra/Makefile2
-rwxr-xr-xtools/hex2bin-2.0/Makefile2
-rw-r--r--tools/rasm/Makefile5
3 files changed, 4 insertions, 5 deletions
diff --git a/tools/apultra/Makefile b/tools/apultra/Makefile
index a416702..1b246aa 100644
--- a/tools/apultra/Makefile
+++ b/tools/apultra/Makefile
@@ -21,7 +21,7 @@ OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o
all: $(APP)
-ifdef ($(OS),Windows_NT)
+ifeq ($(OS),Windows_NT)
TARGET = apultra.exe
else
TARGET = apultra
diff --git a/tools/hex2bin-2.0/Makefile b/tools/hex2bin-2.0/Makefile
index 0939450..6981b27 100755
--- a/tools/hex2bin-2.0/Makefile
+++ b/tools/hex2bin-2.0/Makefile
@@ -17,7 +17,7 @@ CPFLAGS = -std=gnu99 -O3 -fsigned-char -Wall -pedantic
# Compile
all: objectdir $(TGT_FILES)
-ifdef ($(OS),Windows_NT)
+ifeq ($(OS),Windows_NT)
TARGET = hex2bin.exe
else
TARGET = hex2bin
diff --git a/tools/rasm/Makefile b/tools/rasm/Makefile
index 8f0c708..2fb4627 100644
--- a/tools/rasm/Makefile
+++ b/tools/rasm/Makefile
@@ -1,13 +1,12 @@
all: rasm
CC := gcc
+LDFLAGS := -lm -lrt
-ifdef ($(OS),Windows_NT)
+ifeq ($(OS),Windows_NT)
TARGET := rasm.exe
- LDFLAGS := -lrtm
else
TARGET := rasm
- LDFLAGS := -lm -lrt
endif
rasm: rasm_v0120.c