summaryrefslogtreecommitdiff
path: root/tools/mapjson/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapjson/Makefile')
-rw-r--r--tools/mapjson/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/mapjson/Makefile b/tools/mapjson/Makefile
index d09acad..c1f703f 100644
--- a/tools/mapjson/Makefile
+++ b/tools/mapjson/Makefile
@@ -1,4 +1,4 @@
-CXX := g++
+CXX ?= g++
CXXFLAGS := -Wall -std=c++11 -O2
@@ -6,7 +6,10 @@ SRCS := json11.cpp mapjson.cpp
HEADERS := mapjson.h
-.PHONY: clean
+.PHONY: all clean
+
+all: mapjson
+ @:
mapjson: $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)