summaryrefslogtreecommitdiff
path: root/tools/mid2agb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mid2agb/Makefile')
-rw-r--r--tools/mid2agb/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/mid2agb/Makefile b/tools/mid2agb/Makefile
index 451d4b3..553b785 100644
--- a/tools/mid2agb/Makefile
+++ b/tools/mid2agb/Makefile
@@ -6,12 +6,18 @@ SRCS := agb.cpp error.cpp main.cpp midi.cpp tables.cpp
HEADERS := agb.h error.h main.h midi.h tables.h
+ifeq ($(OS),Windows_NT)
+EXE := .exe
+else
+EXE :=
+endif
+
.PHONY: all clean
-all: mid2agb
+all: mid2agb$(EXE)
@:
-mid2agb: $(SRCS) $(HEADERS)
+mid2agb$(EXE): $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean: