diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:52:30 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:52:30 -0800 |
commit | abbdb46243b3340f9a73adff8a0941931eab0daa (patch) | |
tree | 6cdd357003d675da2dee748f8028148ce52c5a7a /mingw64.mak | |
download | dos2unix-abbdb46243b3340f9a73adff8a0941931eab0daa.tar.gz dos2unix-abbdb46243b3340f9a73adff8a0941931eab0daa.tar.bz2 dos2unix-abbdb46243b3340f9a73adff8a0941931eab0daa.zip |
Imported Upstream version 6.0upstream/6.0
Diffstat (limited to 'mingw64.mak')
-rw-r--r-- | mingw64.mak | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mingw64.mak b/mingw64.mak new file mode 100644 index 0000000..32f9e6a --- /dev/null +++ b/mingw64.mak @@ -0,0 +1,40 @@ +
+# Author: Erwin Waterlander
+# Copyright (C) 2012 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
+
+prefix=c:/usr/local64
+ENABLE_NLS=
+
+ifdef ENABLE_NLS
+LDFLAGS_EXTRA = -lintl -liconv
+# Using MinGW gettext,iconv
+#ZIPOBJ_EXTRA = bin/libintl-8.dll bin/libiconv-2.dll
+endif
+LDFLAGS_EXTRA += $(CRT_GLOB_OBJ)
+
+all:
+ $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LDFLAGS_EXTRA="$(LDFLAGS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) EO_XNOTATION=1
+
+install:
+ $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LDFLAGS_EXTRA="$(LDFLAGS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) EO_XNOTATION=1
+
+uninstall:
+ $(MAKE) uninstall EXE=.exe prefix=$(prefix)
+
+clean:
+ $(MAKE) clean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)
+
+mostlyclean:
+ $(MAKE) mostlyclean EXE=.exe ENABLE_NLS=$(ENABLE_NLS) prefix=$(prefix)
+
+dist:
+ $(MAKE) dist-zip EXE=.exe prefix=$(prefix) VERSIONSUFFIX="-win64" ZIPOBJ_EXTRA="${ZIPOBJ_EXTRA}" ENABLE_NLS=$(ENABLE_NLS)
+
+strip:
+ $(MAKE) strip LINK="cp -f" EXE=.exe STRIP=$(STRIP)
+
|