pokeemerald/tools/mapjson/Makefile

25 lines
312 B
Makefile
Raw Permalink Normal View History

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