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/apultra/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/apultra') diff --git a/tools/apultra/Makefile b/tools/apultra/Makefile index 308c9aa..a416702 100644 --- a/tools/apultra/Makefile +++ b/tools/apultra/Makefile @@ -21,11 +21,17 @@ OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o all: $(APP) +ifdef ($(OS),Windows_NT) + TARGET = apultra.exe +else + TARGET = apultra +endif + $(APP): $(OBJS) $(CC) $^ $(LDFLAGS) -o $(APP) - cp $(APP) ../../bin - @rm -rf $(APP) $(OBJDIR) + cp $(TARGET) ../../bin + @rm -rf $(TARGET) $(OBJDIR) clean: - @rm -rf $(APP) $(OBJDIR) + @rm -rf $(TARGET) $(OBJDIR) -- cgit v1.2.3