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/bin2c | |
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/bin2c')
-rw-r--r-- | tools/bin2c/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/bin2c/Makefile b/tools/bin2c/Makefile index 52806e39c..4dbfab94f 100644 --- a/tools/bin2c/Makefile +++ b/tools/bin2c/Makefile @@ -6,10 +6,16 @@ CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 SRCS = bin2c.c -all: bin2c +ifeq ($(OS),Windows_NT) +EXE := .exe +else +EXE := +endif + +all: bin2c$(EXE) @: -bin2c: $(SRCS) +bin2c$(EXE): $(SRCS) $(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS) clean: |