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
+8 -2
View File
@@ -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: