2
# The contents of this file are subject to the Netscape Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/NPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is mozilla.org code.
14
# The Initial Developer of the Original Code is Netscape
15
# Communications Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
23
topsrcdir = @top_srcdir@
27
include $(DEPTH)/config/autoconf.mk
28
include $(srcdir)/objs.mk
31
LIBRARY_NAME = mozreg_s
33
# MacOSX requires the MoreFiles module
34
ifeq ($(OS_ARCH),Darwin)
35
REQUIRES = macmorefiles
38
CSRCS = $(MODULES_LIBREG_SRC_LCSRCS) nr_bufio.c
40
BIN_SRCS = VerReg.c reg.c vr_stubs.c
41
PROGOBJS = $(addprefix R_,$(BIN_SRCS:.c=.o))
43
# We don't want a shared lib. Static lib only.
49
include $(topsrcdir)/config/config.mk
51
DEFINES += -DUSE_BUFFERED_REGISTRY_IO
52
# Memory mapped files are not supported under QNX, Neutrino, HP-UX and BeOS
53
#ifeq (,$(filter BeOS HP-UX QNX,$(OS_ARCH)))
55
#DEFINES += -DUSE_MMAP_REGISTRY_IO
58
include $(topsrcdir)/config/rules.mk
61
$(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) -DSTANDALONE_REGISTRY $<