aboutsummaryrefslogtreecommitdiff
path: root/tools/apultra/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-01-18 19:16:59 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-01-18 19:16:59 +0000
commit71124479ed9f7e88f7b11f3ad4175000e2f21c4e (patch)
tree7fe95b7cd81c96839f97ac514997652c2513f3b5 /tools/apultra/Makefile
parent97ba35b1bc0719dc3b0c981534de196c3d68d1a5 (diff)
downloadubox-msx-lib-71124479ed9f7e88f7b11f3ad4175000e2f21c4e.tar.gz
ubox-msx-lib-71124479ed9f7e88f7b11f3ad4175000e2f21c4e.zip
Better windows support
Diffstat (limited to 'tools/apultra/Makefile')
-rw-r--r--tools/apultra/Makefile12
1 files changed, 9 insertions, 3 deletions
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)