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/hex2bin-2.0/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/hex2bin-2.0/Makefile') diff --git a/tools/hex2bin-2.0/Makefile b/tools/hex2bin-2.0/Makefile index c8ef10b..0939450 100755 --- a/tools/hex2bin-2.0/Makefile +++ b/tools/hex2bin-2.0/Makefile @@ -17,6 +17,12 @@ CPFLAGS = -std=gnu99 -O3 -fsigned-char -Wall -pedantic # Compile all: objectdir $(TGT_FILES) +ifdef ($(OS),Windows_NT) + TARGET = hex2bin.exe +else + TARGET = hex2bin +endif + $(OBJDIR)/%.o: $(SRCDIR)/%.c gcc -c $(CPFLAGS) $< -o $@ @@ -29,6 +35,7 @@ $(TGTDIR)/hex2bin.1: $(SRCDIR)/hex2bin.pod $(TGTDIR)/hex2bin: $(B_OBJFILES) gcc $(CPFLAGS) -o $(TGTDIR)/hex2bin $(B_OBJFILES) + cp bin/$(TARGET) ../../bin $(TGTDIR)/mot2bin: $(M_OBJFILES) gcc $(CPFLAGS) -o $(TGTDIR)/mot2bin $(M_OBJFILES) -- cgit v1.2.3