|
1 # |
|
2 # This Source Code Form is subject to the terms of the Mozilla Public |
|
3 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 |
|
6 |
|
7 # can't do this in manifest.mn because OS_TARGET isn't defined there. |
|
8 ifeq (,$(filter-out WIN%,$(OS_TARGET))) |
|
9 |
|
10 # don't want the 32 in the shared library name |
|
11 SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) |
|
12 IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) |
|
13 |
|
14 #RES = $(OBJDIR)/$(LIBRARY_NAME).res |
|
15 #RESNAME = $(LIBRARY_NAME).rc |
|
16 endif |
|
17 |
|
18 ifeq ($(OS_TARGET),AIX) |
|
19 EXTRA_LIBS += -lpthreads |
|
20 ifdef BUILD_OPT |
|
21 OPTIMIZER= |
|
22 endif |
|
23 endif |
|
24 |
|
25 ifeq ($(OS_TARGET),Darwin) |
|
26 # These version numbers come from the -version-info 8:6:8 libtool option in |
|
27 # sqlite upstream's Makefile.in. (Given -version-info current:revision:age, |
|
28 # libtool passes |
|
29 # -compatibility_version current+1 -current_version current+1.revision |
|
30 # to the linker.) Apple builds the system libsqlite3.dylib with these |
|
31 # version numbers, so we use the same to be compatible. |
|
32 DARWIN_DYLIB_VERSIONS = -compatibility_version 9 -current_version 9.6 |
|
33 |
|
34 # The SQLite code that uses the Apple zone allocator calls |
|
35 # OSAtomicCompareAndSwapPtrBarrier, which is only available on Mac OS X 10.5 |
|
36 # (Darwin 9.0) and later. Define SQLITE_WITHOUT_ZONEMALLOC to disable |
|
37 # that code for older versions of Mac OS X. See bug 820374. |
|
38 DARWIN_VER_MAJOR := $(shell uname -r | cut -f1 -d.) |
|
39 DARWIN_LT_9 := $(shell [ $(DARWIN_VER_MAJOR) -lt 9 ] && echo true) |
|
40 ifeq ($(DARWIN_LT_9),true) |
|
41 OS_CFLAGS += -DSQLITE_WITHOUT_ZONEMALLOC |
|
42 endif |
|
43 endif # Darwin |