intl/locale/src/unix/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 08:48:56 +0200
changeset 101418 2ef51674316aadfe26a46877b16794f758bf4b6d
parent 95095 a1ee4f1b3bd801ba4df5c916ad0dc32d38ad4057
child 101426 1fc17369c9a6c85dfd5724b9b6ecc073f0b3cc6c
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= locale
LIBRARY_NAME	= platlocale_s
FORCE_STATIC_LIB= 1
LIBXUL_LIBRARY  = 1


CPPSRCS		= \
		nsCollationUnix.cpp \
		nsDateTimeFormatUnix.cpp \
		nsPosixLocale.cpp \
		$(NULL)

ifeq (Android,$(OS_TARGET))
CPPSRCS		+= nsAndroidCharset.cpp
else
CPPSRCS		+= nsUNIXCharset.cpp
endif

include $(topsrcdir)/config/rules.mk

INCLUDES	+= -I$(srcdir)/..

# CODESET is not automatically defined on some older versions of Redhat.
# Define _XOPEN_SOURCE so CODESET will get defined and thus allow
# nl_langinfo(CODESET) to compile on these systems.
ifeq ($(OS_ARCH), Linux)
DEFINES		+= -D_XOPEN_SOURCE=500
endif

DEFINES += -DOSTYPE=\"$(OS_CONFIG)\"

nsUNIXCharset.$(OBJ_SUFFIX): unixcharset.properties.h

unixcharset.properties.h: $(srcdir)/../props2arrays.py unixcharset.properties
	$(PYTHON) $^ $@

GARBAGE += \
	unixcharset.properties.h \
	$(NULL)