summaryrefslogtreecommitdiff
path: root/mingw64.mak
diff options
context:
space:
mode:
Diffstat (limited to 'mingw64.mak')
-rw-r--r--mingw64.mak27
1 files changed, 17 insertions, 10 deletions
diff --git a/mingw64.mak b/mingw64.mak
index 64ceb31..ba4315b 100644
--- a/mingw64.mak
+++ b/mingw64.mak
@@ -1,30 +1,37 @@
-
# Author: Erwin Waterlander
-# Copyright (C) 2012 Erwin Waterlander
+# Copyright (C) 2012-2014 Erwin Waterlander
# This file is distributed under the same license as the dos2unix package.
-CC = x86_64-w64-mingw32-gcc
-STRIP = x86_64-w64-mingw32-strip
-CRT_GLOB_OBJ = C:/mingw64/mingw/lib/CRT_glob.o
+# This makefile is for use with MSYS2 and MinGW-w64 target 64 bit (x86_64)
+# http://sourceforge.net/projects/msys2/
+
+# Ruben van Boxem x86_64-w64-mingw32
+#CC = x86_64-w64-mingw32-gcc
+#STRIP = x86_64-w64-mingw32-strip
+#CRT_GLOB_OBJ = C:/mingw64/mingw/lib/CRT_glob.o
+
+# MSYS2
+CC = gcc
+STRIP = strip
+CRT_GLOB_OBJ = C:/msys2/msys32/mingw64/x86_64-w64-mingw32/lib/CRT_glob.o
prefix=c:/usr/local64
ENABLE_NLS=
ifdef ENABLE_NLS
LIBS_EXTRA = -lintl -liconv
-# Using MinGW gettext,iconv
-#ZIPOBJ_EXTRA = bin/libintl-8.dll bin/libiconv-2.dll
+ZIPOBJ_EXTRA = bin/libintl-8.dll bin/libiconv-2.dll
endif
LIBS_EXTRA += $(CRT_GLOB_OBJ)
all:
- $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) EO_XNOTATION=1 MAN_NONLATIN=
+ $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw64/include
install:
- $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) EO_XNOTATION=1 MAN_NONLATIN=
+ $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw64/include
uninstall:
- $(MAKE) uninstall EXE=.exe prefix=$(prefix) MAN_NONLATIN=
+ $(MAKE) uninstall EXE=.exe prefix=$(prefix)
clean:
$(MAKE) clean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)