dbm/src/Makefile.in
author wtc%netscape.com
Thu, 03 Oct 2002 02:11:01 +0000
changeset 3675 7b7c134f49e648bed8725c58a03dc7f85cc9b9d5
parent 3524 34b69743fed093792805f20eff188c7f3c49b510
child 3603 5bf2d4ba1ec6ab1269cc2782ef4005794d6da046
child 3976 8a79571b9a4e06061f87cfe81de276d3210d99e0
child 4363 416a9100fcdb4b9762fcacf0271499ce4db350d2
permissions -rw-r--r--
Restored a # that was accidentally deleted.

#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): 
#

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,$(DEFS)))
CSRCS += memmove.c
endif

ifeq (,$(filter -DHAVE_SNPRINTF=1,$(DEFS)))
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), Linux)
DEFINES         += -D_BSD_SOURCE
endif

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