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