Files
Mozilla/mozilla/modules/libreg/src/Makefile.in
Jerry.Kirk%Nexwarecorp.com 54bebc7ad0 Disable Memory mapped file support for QNX and Neutrino platforms.
git-svn-id: svn://10.0.0.236/trunk@46338 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 12:42:23 +00:00

97 lines
2.2 KiB
Makefile

#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = libreg
LIBRARY_NAME = mozreg_s
REQUIRES = libreg pref js
CSRCS = reg.c VerReg.c vr_stubs.c mmapio.c
BIN_SRCS = VerReg.c reg.c vr_stubs.c
BIN_OBJS = $(addprefix R_,$(BIN_SRCS:.c=.o))
MKSHLIB :=
# We don't want a shared lib. Static lib only.
override NO_SHARED_LIB=1
override NO_STATIC_LIB=
include $(topsrcdir)/config/rules.mk
# Memory mapped files are not supported under QNX and Neutrino
ifneq ($(OS_ARCH),QNX)
DEFINES += -DUSE_MMAP_REGISTRY_IO
endif
# Override gtscc when building vreg on IRIX 5.3.
ifeq ($(OS_ARCH)$(OS_RELEASE),IRIX5)
ifneq ($(CC),gcc)
CC = cc
endif
endif
INCLUDES += -I$(topsrcdir)/include
GARBAGE += $(PROGRAM) $(BIN_OBJS)
PROGRAM = vreg$(BIN_SUFFIX)
$(PROGRAM): $(BIN_OBJS)
ifeq ($(OS_ARCH), OS2)
$(LINK_EXE) -OUT:$@ $(BIN_OBJS) $(LDFLAGS) $(OS_LIBS)
else
ifeq ($(OS_ARCH), OSF1)
$(CC) -o $@ $(BIN_OBJS) $(LDFLAGS)
else
$(CCF) -o $@ $(BIN_OBJS) $(LDFLAGS)
endif
endif
R_VerReg.o: VerReg.c
ifeq ($(OS_ARCH), OS2)
$(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
else
$(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
endif
R_reg.o: reg.c
ifeq ($(OS_ARCH), OS2)
$(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
else
$(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
endif
R_vr_stubs.o: vr_stubs.c
ifeq ($(OS_ARCH), OS2)
$(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
else
$(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
endif
$(BIN_OBJS): $(BIN_SRCS)
install:: $(PROGRAM)
$(INSTALL) -m 444 $(PROGRAM) $(DIST)/bin