pokeemerald/tools/jsonproc/Makefile

27 lines
364 B
Makefile
Raw Normal View History

CXX ?= g++
CXXFLAGS := -Wall -std=c++17 -O2
INCLUDES := -I .
SRCS := jsonproc.cpp
HEADERS := jsonproc.h inja.hpp nlohmann/json.hpp
ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif
2019-07-23 22:17:00 +02:00
.PHONY: all clean
all: jsonproc$(EXE)
2019-07-23 22:17:00 +02:00
@:
jsonproc$(EXE): $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SRCS) -o $@ $(LDFLAGS)
clean:
$(RM) jsonproc jsonproc.exe