summaryrefslogtreecommitdiff
path: root/os2.mak
diff options
context:
space:
mode:
Diffstat (limited to 'os2.mak')
-rw-r--r--os2.mak35
1 files changed, 35 insertions, 0 deletions
diff --git a/os2.mak b/os2.mak
new file mode 100644
index 0000000..99fa4a0
--- /dev/null
+++ b/os2.mak
@@ -0,0 +1,35 @@
+
+# Author: Erwin Waterlander
+# Copyright (C) 2009-2012 Erwin Waterlander
+# This file is distributed under the same license as the dos2unix package.
+
+prefix=c:/usr
+ENABLE_NLS=1
+LDFLAGS_EXTRA = -Zargs-wild
+
+ifdef ENABLE_NLS
+LDFLAGS_EXTRA += -lintl -liconv
+endif
+ZIPOBJ_EXTRA =
+
+all:
+ $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LDFLAGS_EXTRA="$(LDFLAGS_EXTRA)" prefix=$(prefix) LINK="cp -f" EO_XNOTATION=1 UCS=
+
+install:
+ $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LDFLAGS_EXTRA="$(LDFLAGS_EXTRA)" prefix=$(prefix) LINK="cp -f" EO_XNOTATION=1 UCS=
+
+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="-os2" ZIPOBJ_EXTRA="${ZIPOBJ_EXTRA}" ENABLE_NLS=$(ENABLE_NLS)
+
+strip:
+ $(MAKE) strip LINK="cp -f" EXE=.exe
+