mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-23 03:40:17 +01:00
976b967732
Todo: actually extensively test out msys2 and Cygwin, and double check the readme.
25 lines
312 B
Makefile
25 lines
312 B
Makefile
CXX ?= g++
|
|
|
|
CXXFLAGS := -Wall -std=c++11 -O2
|
|
|
|
SRCS := json11.cpp mapjson.cpp
|
|
|
|
HEADERS := mapjson.h
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
EXE := .exe
|
|
else
|
|
EXE :=
|
|
endif
|
|
|
|
.PHONY: all clean
|
|
|
|
all: mapjson$(EXE)
|
|
@:
|
|
|
|
mapjson$(EXE): $(SRCS) $(HEADERS)
|
|
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
clean:
|
|
$(RM) mapjson mapjson.exe
|