diff options
| author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-11-26 20:21:16 -0500 |
|---|---|---|
| committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-11-26 20:21:16 -0500 |
| commit | 976b967732454b3171ac5b5d61b865f1cc3a5777 (patch) | |
| tree | 2cf2ca940416bc4be1bc44a3e44483d0efd46998 /tools/mapjson | |
| parent | 59a6d18679365cb3a2e2d7fa7571fa2495652939 (diff) | |
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.
Diffstat (limited to 'tools/mapjson')
| -rw-r--r-- | tools/mapjson/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/mapjson/Makefile b/tools/mapjson/Makefile index c1f703f9f..100e809c6 100644 --- a/tools/mapjson/Makefile +++ b/tools/mapjson/Makefile @@ -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: |
