db/sqlite3/src/Makefile.in
author Luke Wagner <luke@mozilla.com>
Thu, 15 May 2014 12:30:45 -0500
changeset 202615 ce34c13388f2e45d763ad017b757d4ce965bd93f
parent 186529 eed4ef04aa7647fd00d1d08fb36fa3812affb5e1
child 209723 769c0d39a5b499cf5946defb2adbad8bc2aff873
permissions -rw-r--r--
Bug 1007383 - Include asm.js frames in JS::DescribeStack (r=jandem,robcee)

#
# 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/.

LIB_IS_C_ONLY    = 1

ifeq ($(OS_ARCH),WINNT)
DEFFILE = $(CURDIR)/sqlite-processed.def

GARBAGE += \
  sqlite-version.h \
  $(DEFFILE) \
  $(NULL)

# We generate the appropriate version header file with our python script.
sqlite-version.h: sqlite-version.py sqlite3.h
	$(PYTHON) $^ > $@

# We have to preprocess our def file because we need different symbols in debug
# builds exposed that are not built in non-debug builds.
$(DEFFILE): sqlite.def
	@$(call py_action,preprocessor,$(DEFINES) \
	  $(srcdir)/sqlite.def -o $(DEFFILE))

export:: sqlite-version.h
endif

ifeq (Darwin,$(OS_TARGET))
# On OSX, with jemalloc enabled, having sqlite linked against mozglue
# causes crashes in NSS standalone tools.
MOZ_GLUE_LDFLAGS =
endif

# XXX Force -O2 optimisation on Mac because using the default -O3 causes
# crashes. See bug 676499.
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
MODULE_OPTIMIZE_FLAGS = -O2
endif

# Force /O2 optimisation on Windows because using the default /O1 causes
# crashes with MSVC2005 and PGO. See bug 719584.
ifeq ($(OS_ARCH),WINNT)
MODULE_OPTIMIZE_FLAGS = -O2
endif

include $(topsrcdir)/config/rules.mk