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/jsonproc | |
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/jsonproc')
-rwxr-xr-x | tools/jsonproc/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/jsonproc/Makefile b/tools/jsonproc/Makefile index 47198b171..eec73eb7b 100755 --- a/tools/jsonproc/Makefile +++ b/tools/jsonproc/Makefile @@ -8,12 +8,18 @@ SRCS := jsonproc.cpp HEADERS := jsonproc.h inja.hpp nlohmann/json.hpp +ifeq ($(OS),Windows_NT) +EXE := .exe +else +EXE := +endif + .PHONY: all clean -all: jsonproc +all: jsonproc$(EXE) @: -jsonproc: $(SRCS) $(HEADERS) +jsonproc$(EXE): $(SRCS) $(HEADERS) $(CXX) $(CXXFLAGS) $(INCLUDES) $(SRCS) -o $@ $(LDFLAGS) clean: |