ba4315b04ccd9a7e35db99f2fc52cc60159dbabf
[platform/upstream/dos2unix.git] / mingw64.mak
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
4 \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
7 \r
8 # Ruben van Boxem x86_64-w64-mingw32\r
9 #CC = x86_64-w64-mingw32-gcc\r
10 #STRIP = x86_64-w64-mingw32-strip\r
11 #CRT_GLOB_OBJ = C:/mingw64/mingw/lib/CRT_glob.o\r
12 \r
13 # MSYS2\r
14 CC = gcc\r
15 STRIP = strip\r
16 CRT_GLOB_OBJ = C:/msys2/msys32/mingw64/x86_64-w64-mingw32/lib/CRT_glob.o\r
17 \r
18 prefix=c:/usr/local64\r
19 ENABLE_NLS=\r
20 \r
21 ifdef ENABLE_NLS\r
22 LIBS_EXTRA = -lintl -liconv\r
23 ZIPOBJ_EXTRA = bin/libintl-8.dll bin/libiconv-2.dll\r
24 endif\r
25 LIBS_EXTRA += $(CRT_GLOB_OBJ)\r
26 \r
27 all:\r
28         $(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
29 \r
30 install:\r
31         $(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
32 \r
33 uninstall:\r
34         $(MAKE) uninstall EXE=.exe prefix=$(prefix)\r
35 \r
36 clean:\r
37         $(MAKE) clean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)\r
38 \r
39 mostlyclean:\r
40         $(MAKE) mostlyclean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)\r
41 \r
42 dist:\r
43         $(MAKE) dist-zip EXE=.exe prefix=$(prefix) VERSIONSUFFIX="-win64" ZIPOBJ_EXTRA="${ZIPOBJ_EXTRA}" ENABLE_NLS=$(ENABLE_NLS)\r
44 \r
45 strip:\r
46         $(MAKE) strip LINK="cp -f" EXE=.exe  STRIP=$(STRIP)\r
47 \r