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/.
7 topsrcdir
= @top_srcdir@
11 include $(DEPTH
)/config
/autoconf.mk
13 LIBRARY_NAME
= mozdbm_s
16 ifeq ($(OS_ARCH
),WINNT
)
17 LIBRARY_NAME
= dbm
$(MOZ_BITS
)
35 ifeq ($(OS_ARCH
),WINNT
)
36 CSRCS
+= memmove.c snprintf.c
38 ifeq (,$(filter -DHAVE_MEMMOVE
=1,$(ACDEFINES
)))
42 ifeq (,$(filter -DHAVE_SNPRINTF
=1,$(ACDEFINES
)))
47 LOCAL_INCLUDES
= -I
$(srcdir)/..
/include
52 include $(topsrcdir
)/config
/rules.mk
54 DEFINES
+= -DMEMMOVE
-D__DBINTERFACE_PRIVATE
$(SECURITY_FLAG
)
56 ifeq ($(OS_ARCH
),WINCE
)
57 DEFINES
+= -D__STDC__
-DDBM_REOPEN_ON_FLUSH