Permalink
Browse files

Compile for Msys2

  • Loading branch information...
albfan committed Aug 6, 2017
1 parent de7f920 commit 072d241d1137d59b8608c24eea463e199d29c2bf
Showing with 9 additions and 0 deletions.
  1. +4 −0 INSTALL
  2. +5 −0 Makefile
View
@@ -43,3 +43,7 @@ Windows (Cygwin):
Windows (mingw32):
See win32/Dockerfile for a recipe build a windows package.
Windows (msys):
You need to specify the arch type.
-run make ARCH=32
-run make ARCH=64
View
@@ -73,6 +73,11 @@ ifeq ($(UNAME_O),Cygwin)
LIBS += -liconv
EXT = .exe
endif
ifeq ($(UNAME_O),Msys)
CFLAGS += -I/mingw$(ARCH)/lib/libzip/include
LIBS += -liconv -llibzip -lzip -lz -L/mingw$(ARCH)/lib
EXT = .exe
endif
ifneq ($(MINGW32),)
CFLAGS += -I$(REGEX_DIR) -I$(ZLIB_DIR) -I$(ICONV_DIR)/include/ -I$(LIBZIP_DIR)/lib/
LIBS = $(REGEX_DIR)/regex.o

0 comments on commit 072d241

Please sign in to comment.