1999-06-03 07:14:45 +04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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 04:31:50 +04: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 07:14:45 +04:00
|
|
|
|
|
|
|
# We don't want -KPIC as it forces the compiler to generate a .i file.
|
1999-07-31 04:31:50 +04:00
|
|
|
DSO_PIC_CFLAGS =
|
1999-06-03 07:14:45 +04:00
|
|
|
|
|
|
|
# We don't want the standard set of UNIX libraries.
|
|
|
|
OS_LIBS =
|
|
|
|
|
|
|
|
# Define VMS
|
|
|
|
OS_CFLAGS += -DVMS
|
|
|
|
OS_CXXFLAGS += -DVMS
|
|
|
|
|
|
|
|
# If we are building POSIX images, then force it.
|
|
|
|
ifdef INTERNAL_TOOLS
|
|
|
|
CC = c89
|
|
|
|
CCC = cxx
|
1999-09-02 05:08:01 +04:00
|
|
|
ifeq ($(PROGRAM),xpidl)
|
|
|
|
OS_CFLAGS = $(ACDEFINES) -Wc,names=\(short,as\) -DAS_IS
|
|
|
|
else
|
1999-08-14 03:38:50 +04:00
|
|
|
OS_CFLAGS = $(ACDEFINES) -O -Wc,names=\(short,as\) -DAS_IS
|
1999-09-02 05:08:01 +04:00
|
|
|
endif
|
1999-08-14 03:38:50 +04:00
|
|
|
OS_CXXFLAGS = $(ACDEFINES) -O -Wc,names=\(short,as\) -DAS_IS
|
1999-06-03 07:14:45 +04:00
|
|
|
OS_LDFLAGS =
|
|
|
|
endif
|
|
|
|
|
1999-07-31 04:31:50 +04:00
|
|
|
# This is where our Sharable Image trickery goes.
|
1999-09-02 05:08:01 +04:00
|
|
|
AS = vmsas $(OS_CFLAGS)
|
1999-07-31 04:31:50 +04:00
|
|
|
LD = vmsld MODULE=$(LIBRARY_NAME) DIST=$(DIST) \
|
1999-09-02 05:08:01 +04:00
|
|
|
DISTNSPR=$(subst -L/,/,$(NSPR_LIBS:-l%=)) $(OS_LDFLAGS)
|
1999-07-31 04:31:50 +04:00
|
|
|
DSO_LDOPTS =
|
1999-08-14 03:38:50 +04:00
|
|
|
EXTRA_DSO_LDOPTS+= $(EXTRA_LIBS)
|
1999-07-31 04:31:50 +04:00
|
|
|
MKSHLIB = $(LD)
|