dbm/src/Makefile.in
author Gregory Szorc <gps@mozilla.com>
Tue, 12 Mar 2013 10:17:46 -0700
changeset 124632 d54481a205e308b645e33d977e40fe753c9e5682
parent 115133 5d514385c585f71d77e0bcd279e958bfc2d986d6
permissions -rw-r--r--
Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium This is the result of running |mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and reverting xpcom/sample/*.

#
# 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		= ../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

LIBRARY_NAME	= mozdbm_s
LIB_IS_C_ONLY	= 1

ifeq ($(OS_ARCH),WINNT)
LIBRARY_NAME	= dbm$(MOZ_BITS)
endif

CSRCS		= \
		db.c \
		h_bigkey.c \
		h_func.c \
		h_log2.c \
		h_page.c \
		hash.c \
		hash_buf.c \
		hsearch.c \
		mktemp.c \
		ndbm.c \
		strerror.c \
		nsres.c \
		$(NULL)

ifeq ($(OS_ARCH),WINNT)
CSRCS		+= memmove.c snprintf.c
else
ifeq (,$(filter -DHAVE_MEMMOVE=1,$(ACDEFINES)))
CSRCS += memmove.c
endif

ifeq (,$(filter -DHAVE_SNPRINTF=1,$(ACDEFINES)))
CSRCS += snprintf.c
endif
endif # WINNT

LOCAL_INCLUDES	= -I$(srcdir)/../include

FORCE_STATIC_LIB = 1
FORCE_USE_PIC = 1

include $(topsrcdir)/config/rules.mk

DEFINES		+= -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)

ifeq ($(OS_ARCH),AIX)
OS_LIBS		+= -lc_r
endif