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