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