source: trunk/third/mozilla/config/OpenVMS.mk @ 18860

Revision 18860, 2.4 KB checked in by rbasch, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18859, which included commits to RCS files with non-trunk default branches.
Line 
1#
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/
6#
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.
11#
12# The Original Code is mozilla.org code.
13#
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
17# Rights Reserved.
18#
19# Contributor(s):
20#
21#
22# Even though we use AUTOCONF, there are just too many things that need
23# fixing up to do it any other way than via an architecture specific file.
24#
25# If we're not using NSBUILDROOT, then make sure we use multiple object
26# directories. We want this name to be relatively short, and to be different
27# from what NSPR uses (so that we can wipe out Mozilla objects without
28# wiping NSPR objects.
29
30# We don't want -KPIC as it forces the compiler to generate a .i file.
31DSO_PIC_CFLAGS  =
32
33# We don't want the standard set of UNIX libraries.
34OS_LIBS         =
35
36# Define VMS
37OS_CFLAGS       += -DVMS -DVMS_AS_IS -Wc,names=\(short,as\)
38OS_CXXFLAGS     += -DVMS -DVMS_AS_IS -Wc,names=\(short,as\)
39
40# If we are building POSIX images, then these HOST symbols get used.
41# We don't want to compile any POSIX image debug, so always remove -g.
42# xpild accvio's if built with -O, so don't.
43HOST_CC         = c89
44HOST_CXX        = cxx
45ifeq ($(PROGRAM),xpidl)
46HOST_CFLAGS     = $(filter-out -g -O,$(OS_CFLAGS)) -DGETCWD_CANT_MALLOC
47else
48HOST_CFLAGS     = $(filter-out -g -O,$(OS_CFLAGS)) -DGETCWD_CANT_MALLOC -O
49endif
50HOST_CXXFLAGS   = $(filter-out -g -O,$(OS_CXXFLAGS)) -O
51
52# In addition, we want to lose the OS_FLAGS for POSIX builds.
53ifdef INTERNAL_TOOLS
54OS_LDFLAGS      =
55endif
56
57# Although IS_COMPONENT is set in the Makefile, for xpconnect it is not set
58# until AFTER config.mk (and therefore this file) included, hence it appears
59# as unset. So for this module only, set IS_COMPONENT here.
60ifeq ($(MODULE),xpconnect)
61IS_COMPONENT    = 1
62endif
63
64# This is where our Sharable Image trickery goes.
65AS              = vmsas $(OS_CFLAGS)
66ifdef IS_COMPONENT
67OS_LDFLAGS      += IS_COMPONENT SRCDIR=$(srcdir)
68endif
69LD              = vmsld $(OS_LDFLAGS)
70DSO_LDOPTS      =
71MKSHLIB         = $(LD)
Note: See TracBrowser for help on using the repository browser.