Add msys2 and Cygwin instructions, also add .exe extension to built tools.

Todo: actually extensively test out msys2 and Cygwin, and double check the readme.
This commit is contained in:
luckytyphlosion
2020-11-26 20:21:16 -05:00
parent 59a6d18679
commit 976b967732
13 changed files with 213 additions and 36 deletions

View File

@@ -6,12 +6,18 @@ SRCS := json11.cpp mapjson.cpp
HEADERS := mapjson.h
ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif
.PHONY: all clean
all: mapjson
all: mapjson$(EXE)
@:
mapjson: $(SRCS) $(HEADERS)
mapjson$(EXE): $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean: