2019-08-07 01:30:57 +02:00
|
|
|
CXX ?= g++
|
2019-04-27 21:50:53 +02:00
|
|
|
|
|
|
|
CXXFLAGS := -Wall -std=c++11 -O2
|
|
|
|
|
|
|
|
INCLUDES := -I .
|
|
|
|
|
|
|
|
SRCS := jsonproc.cpp
|
|
|
|
|
|
|
|
HEADERS := jsonproc.h inja.hpp nlohmann/json.hpp
|
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
EXE := .exe
|
|
|
|
else
|
|
|
|
EXE :=
|
|
|
|
endif
|
|
|
|
|
2019-07-23 22:17:00 +02:00
|
|
|
.PHONY: all clean
|
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
all: jsonproc$(EXE)
|
2019-07-23 22:17:00 +02:00
|
|
|
@:
|
2019-04-27 21:50:53 +02:00
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
jsonproc$(EXE): $(SRCS) $(HEADERS)
|
2019-04-27 21:50:53 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) jsonproc jsonproc.exe
|