db/sqlite3/src/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/db/sqlite3/src/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +LIB_IS_C_ONLY    = 1
    1.10 +
    1.11 +ifeq ($(OS_ARCH),WINNT)
    1.12 +DEFFILE = $(CURDIR)/sqlite-processed.def
    1.13 +
    1.14 +GARBAGE += \
    1.15 +  sqlite-version.h \
    1.16 +  $(DEFFILE) \
    1.17 +  $(NULL)
    1.18 +
    1.19 +# We generate the appropriate version header file with our python script.
    1.20 +sqlite-version.h: sqlite-version.py sqlite3.h
    1.21 +	$(PYTHON) $^ > $@
    1.22 +
    1.23 +# We have to preprocess our def file because we need different symbols in debug
    1.24 +# builds exposed that are not built in non-debug builds.
    1.25 +$(DEFFILE): sqlite.def
    1.26 +	@$(call py_action,preprocessor,$(DEFINES) \
    1.27 +	  $(srcdir)/sqlite.def -o $(DEFFILE))
    1.28 +
    1.29 +export:: sqlite-version.h
    1.30 +endif
    1.31 +
    1.32 +ifeq (Darwin,$(OS_TARGET))
    1.33 +# On OSX, with jemalloc enabled, having sqlite linked against mozglue
    1.34 +# causes crashes in NSS standalone tools.
    1.35 +MOZ_GLUE_LDFLAGS =
    1.36 +endif
    1.37 +
    1.38 +# XXX Force -O2 optimisation on Mac because using the default -O3 causes
    1.39 +# crashes. See bug 676499.
    1.40 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
    1.41 +MODULE_OPTIMIZE_FLAGS = -O2
    1.42 +endif
    1.43 +
    1.44 +# Force /O2 optimisation on Windows because using the default /O1 causes
    1.45 +# crashes with MSVC2005 and PGO. See bug 719584.
    1.46 +ifeq ($(OS_ARCH),WINNT)
    1.47 +MODULE_OPTIMIZE_FLAGS = -O2
    1.48 +endif
    1.49 +
    1.50 +include $(topsrcdir)/config/rules.mk

mercurial