From a58371c419f0f8fc16eaf6335e8c9fb44f5f99a0 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 9 Feb 2021 20:24:01 +0000 Subject: Fixes in Makefile when detecting Windows OS --- tools/apultra/Makefile | 2 +- tools/hex2bin-2.0/Makefile | 2 +- tools/rasm/Makefile | 5 ++--- 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 -- cgit v1.2.3