1999-06-03 03:14:45 +00:00
|
|
|
#
|
1999-11-06 03:40:37 +00:00
|
|
|
# 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/
|
1999-06-03 03:14:45 +00:00
|
|
|
#
|
1999-11-06 03:40:37 +00:00
|
|
|
# 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.
|
1999-06-03 03:14:45 +00:00
|
|
|
#
|
1999-11-06 03:40:37 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1999-06-03 03:14:45 +00:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:40:37 +00:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-06-03 03:14:45 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# Even though we use AUTOCONF, there are just too many things that need
|
|
|
|
# fixing up to do it any other way than via an architecture specific file.
|
|
|
|
#
|
1999-07-31 00:31:50 +00:00
|
|
|
# If we're not using NSBUILDROOT, then make sure we use multiple object
|
|
|
|
# directories. We want this name to be relatively short, and to be different
|
|
|
|
# from what NSPR uses (so that we can wipe out Mozilla objects without
|
|
|
|
# wiping NSPR objects.
|
1999-06-03 03:14:45 +00:00
|
|
|
|
|
|
|
# We don't want -KPIC as it forces the compiler to generate a .i file.
|
1999-07-31 00:31:50 +00:00
|
|
|
DSO_PIC_CFLAGS =
|
1999-06-03 03:14:45 +00:00
|
|
|
|
|
|
|
# We don't want the standard set of UNIX libraries.
|
|
|
|
OS_LIBS =
|
|
|
|
|
|
|
|
# Define VMS
|
1999-09-08 19:00:07 +00:00
|
|
|
OS_CFLAGS += -DVMS -DVMS_AS_IS -Wc,names=\(short,as\)
|
|
|
|
OS_CXXFLAGS += -DVMS -DVMS_AS_IS -Wc,names=\(short,as\)
|
1999-06-03 03:14:45 +00:00
|
|
|
|
1999-09-08 19:00:07 +00:00
|
|
|
# If we are building POSIX images, then these HOST symbols get used.
|
|
|
|
# We don't want to compile any POSIX image debug, so always remove -g.
|
|
|
|
# xpild accvio's if built with -O, so don't.
|
|
|
|
HOST_CC = c89
|
|
|
|
HOST_CXX = cxx
|
1999-09-02 01:08:01 +00:00
|
|
|
ifeq ($(PROGRAM),xpidl)
|
1999-09-08 19:00:07 +00:00
|
|
|
HOST_CFLAGS = $(filter-out -g -O,$(OS_CFLAGS)) -DGETCWD_CANT_MALLOC
|
1999-09-02 01:08:01 +00:00
|
|
|
else
|
1999-09-08 19:00:07 +00:00
|
|
|
HOST_CFLAGS = $(filter-out -g -O,$(OS_CFLAGS)) -DGETCWD_CANT_MALLOC -O
|
1999-09-02 01:08:01 +00:00
|
|
|
endif
|
2000-02-21 21:49:45 +00:00
|
|
|
HOST_CXXFLAGS = $(filter-out -g -O,$(OS_CXXFLAGS)) -O
|
1999-09-08 19:00:07 +00:00
|
|
|
|
|
|
|
# In addition, we want to lose the OS_FLAGS for POSIX builds.
|
|
|
|
ifdef INTERNAL_TOOLS
|
1999-06-03 03:14:45 +00:00
|
|
|
OS_LDFLAGS =
|
|
|
|
endif
|
|
|
|
|
1999-09-15 18:26:57 +00:00
|
|
|
# Although IS_COMPONENT is set in the Makefile, for xpconnect it is not set
|
|
|
|
# until AFTER config.mk (and therefore this file) included, hence it appears
|
|
|
|
# as unset. So for this module only, set IS_COMPONENT here.
|
|
|
|
ifeq ($(MODULE),xpconnect)
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
endif
|
|
|
|
|
1999-07-31 00:31:50 +00:00
|
|
|
# This is where our Sharable Image trickery goes.
|
1999-09-02 01:08:01 +00:00
|
|
|
AS = vmsas $(OS_CFLAGS)
|
1999-09-13 12:22:28 +00:00
|
|
|
ifdef IS_COMPONENT
|
|
|
|
OS_LDFLAGS += IS_COMPONENT SRCDIR=$(srcdir)
|
|
|
|
endif
|
2001-03-05 12:15:43 +00:00
|
|
|
LD = vmsld $(OS_LDFLAGS)
|
1999-07-31 00:31:50 +00:00
|
|
|
DSO_LDOPTS =
|
|
|
|
MKSHLIB = $(LD)
|