summaryrefslogtreecommitdiff
path: root/makefiles/gmake
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-11 22:09:58 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-11 22:09:58 +0100
commita1165f6b79efe2e3bab6ce3b3d1266af340a884b (patch)
treeaea10d806215f3b3afd74f8f3de35c2cfcb75981 /makefiles/gmake
parent758a20248659c61cf16351f2ce42e18e7da3858b (diff)
downloadwolfbones-a1165f6b79efe2e3bab6ce3b3d1266af340a884b.tar.gz
wolfbones-a1165f6b79efe2e3bab6ce3b3d1266af340a884b.tar.bz2
more clenup in i18n platform flags
Diffstat (limited to 'makefiles/gmake')
-rw-r--r--makefiles/gmake/platform.mk20
1 files changed, 13 insertions, 7 deletions
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk
index 4f643c1..749a461 100644
--- a/makefiles/gmake/platform.mk
+++ b/makefiles/gmake/platform.mk
@@ -23,6 +23,14 @@ 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 specific flags
+#########################
+
+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
@@ -61,6 +69,8 @@ endif
# enable or disable internationalization code
ENABLE_NLS = 1
+ifeq "$(ENABLE_NLS)" "1"
+
# the GNU internationalization support is sometimes in separate libarries
ifeq "$(PLATFORM)" "LINUX"
INCLUDE_FLAGS_LT =
@@ -98,11 +108,7 @@ LDFLAGS_LT =
LIBS_LT = -lintl
endif
-# platform specific flags
-#########################
+PLATFORM_COMPILE_FLAGS += \
+ -DENABLE_NLS=$(ENABLE_NLS) $(INCLUDE_FLAGS_LT)
-PLATFORM_COMPILE_FLAGS = \
- -D$(PLATFORM) \
- -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) \
- -DOS_MINOR_VERSION=$(OS_MINOR_VERSION) \
- $(INCLUDE_FLAGS_LT) -DENABLE_NLS=$(ENABLE_NLS)
+endif