summaryrefslogtreecommitdiff
path: root/makefiles/gmake/platform.mk
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-11 11:26:51 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-11 11:26:51 +0100
commit3187b7f378162d81831a5360e618d99fd0023ad2 (patch)
treeac894ca75fb1d7cc10515ecf514f69bc26b9d60a /makefiles/gmake/platform.mk
parent089056558bf3ad4aef31518b1812da95a8c56e85 (diff)
downloadwolfbones-3187b7f378162d81831a5360e618d99fd0023ad2.tar.gz
wolfbones-3187b7f378162d81831a5360e618d99fd0023ad2.tar.bz2
gettext on FreeBSD
Diffstat (limited to 'makefiles/gmake/platform.mk')
-rw-r--r--makefiles/gmake/platform.mk36
1 files changed, 29 insertions, 7 deletions
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk
index cf5210b..e58d900 100644
--- a/makefiles/gmake/platform.mk
+++ b/makefiles/gmake/platform.mk
@@ -23,11 +23,6 @@ OS_MAJOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-major-versi
OS_MINOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-minor-version $(CC) "$(CURDIR)" $(TOPDIR))
COMPILER ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --compiler $(CC) "$(CURDIR)" $(TOPDIR))
-PLATFORM_COMPILE_FLAGS = \
- -D$(PLATFORM) \
- -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) \
- -DOS_MINOR_VERSION=$(OS_MINOR_VERSION)
-
# extensions for binaries
ifeq "$(PLATFORM)" "CYGWIN"
EXE = .exe
@@ -48,6 +43,9 @@ else
INSTALL = install
endif
+# dynamic linker
+################
+
# the linker library for dynamically loadable modules
# (TODO: check for all platforms, as soon we add loadable modules here from
# old TextWolf)
@@ -57,9 +55,33 @@ else
LIBS_DL =
endif
+# gettext/libintl
+#################
+
# the GNU internationalization support is sometimes in separate libarries
+ifeq "$(PLATFORM)" "LINUX"
+INCLUDE_FLAGS_LT =
+LDFLAGS_LT =
+LIBS_LT =
+endif
+
+ifeq "$(PLATFORM)" "FREEBSD"
+INCLUDE_FLAGS_LT = -I/usr/local/include
+LDFLAGS_LT = -L/usr/local/lib
+LIBS_LT = -lintl
+endif
+
ifeq "$(PLATFORM)" "NETBSD"
+INCLUDE_FLAGS_LT =
+LDFLAGS_LT =
LIBS_LT = -lintl
-else
-LIBS_LT =
endif
+
+# platform specific flags
+#########################
+
+PLATFORM_COMPILE_FLAGS = \
+ -D$(PLATFORM) \
+ -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) \
+ -DOS_MINOR_VERSION=$(OS_MINOR_VERSION) \
+ $(INCLUDE_FLAGS_LT)