1 # Author: Erwin Waterlander
\r
2 # Copyright (C) 2012-2014 Erwin Waterlander
\r
3 # This file is distributed under the same license as the dos2unix package.
\r
5 # This makefile is for use with MSYS2 and MinGW-w64 target 64 bit (x86_64)
\r
6 # http://sourceforge.net/projects/msys2/
\r
9 # Ruben van Boxem x86_64-w64-mingw32
\r
10 #CC = x86_64-w64-mingw32-gcc
\r
11 #STRIP = x86_64-w64-mingw32-strip
\r
12 #CRT_GLOB_OBJ = C:/mingw64/mingw/lib/CRT_glob.o
\r
17 CRT_GLOB_OBJ = C:/msys2/msys32/mingw64/x86_64-w64-mingw32/lib/CRT_glob.o
\r
19 prefix=c:/usr/local64
\r
23 LIBS_EXTRA = -lintl -liconv
\r
24 ZIPOBJ_EXTRA = bin/libintl-8.dll bin/libiconv-2.dll
\r
26 LIBS_EXTRA += $(CRT_GLOB_OBJ)
\r
29 $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw64/include
\r
32 cd test; $(MAKE) test
\r
37 $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw64/include
\r
40 $(MAKE) uninstall EXE=.exe prefix=$(prefix)
\r
43 $(MAKE) clean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)
\r
46 $(MAKE) mostlyclean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)
\r
49 $(MAKE) dist-zip EXE=.exe prefix=$(prefix) VERSIONSUFFIX="-win64" ZIPOBJ_EXTRA="${ZIPOBJ_EXTRA}" ENABLE_NLS=$(ENABLE_NLS)
\r
52 $(MAKE) strip LINK="cp -f" EXE=.exe STRIP=$(STRIP)
\r