2019-08-07 00:30:57 +01:00
|
|
|
CXX ?= g++
|
2019-02-02 19:22:41 +00:00
|
|
|
|
|
|
|
CXXFLAGS := -Wall -std=c++11 -O2
|
|
|
|
|
|
|
|
SRCS := json11.cpp mapjson.cpp
|
|
|
|
|
|
|
|
HEADERS := mapjson.h
|
|
|
|
|
2020-12-17 02:24:44 +00:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
EXE := .exe
|
|
|
|
else
|
|
|
|
EXE :=
|
|
|
|
endif
|
|
|
|
|
2019-07-23 21:17:00 +01:00
|
|
|
.PHONY: all clean
|
|
|
|
|
2020-12-17 02:24:44 +00:00
|
|
|
all: mapjson$(EXE)
|
2019-07-23 21:17:00 +01:00
|
|
|
@:
|
2019-02-02 19:22:41 +00:00
|
|
|
|
2020-12-17 02:24:44 +00:00
|
|
|
mapjson$(EXE): $(SRCS) $(HEADERS)
|
2019-02-02 19:22:41 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) mapjson mapjson.exe
|