[18859] | 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. |
---|
| 31 | DSO_PIC_CFLAGS = |
---|
| 32 | |
---|
| 33 | # We don't want the standard set of UNIX libraries. |
---|
| 34 | OS_LIBS = |
---|
| 35 | |
---|
| 36 | # Define VMS |
---|
| 37 | OS_CFLAGS += -DVMS -DVMS_AS_IS -Wc,names=\(short,as\) |
---|
| 38 | OS_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. |
---|
| 43 | HOST_CC = c89 |
---|
| 44 | HOST_CXX = cxx |
---|
| 45 | ifeq ($(PROGRAM),xpidl) |
---|
| 46 | HOST_CFLAGS = $(filter-out -g -O,$(OS_CFLAGS)) -DGETCWD_CANT_MALLOC |
---|
| 47 | else |
---|
| 48 | HOST_CFLAGS = $(filter-out -g -O,$(OS_CFLAGS)) -DGETCWD_CANT_MALLOC -O |
---|
| 49 | endif |
---|
| 50 | HOST_CXXFLAGS = $(filter-out -g -O,$(OS_CXXFLAGS)) -O |
---|
| 51 | |
---|
| 52 | # In addition, we want to lose the OS_FLAGS for POSIX builds. |
---|
| 53 | ifdef INTERNAL_TOOLS |
---|
| 54 | OS_LDFLAGS = |
---|
| 55 | endif |
---|
| 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. |
---|
| 60 | ifeq ($(MODULE),xpconnect) |
---|
| 61 | IS_COMPONENT = 1 |
---|
| 62 | endif |
---|
| 63 | |
---|
| 64 | # This is where our Sharable Image trickery goes. |
---|
| 65 | AS = vmsas $(OS_CFLAGS) |
---|
| 66 | ifdef IS_COMPONENT |
---|
| 67 | OS_LDFLAGS += IS_COMPONENT SRCDIR=$(srcdir) |
---|
| 68 | endif |
---|
| 69 | LD = vmsld $(OS_LDFLAGS) |
---|
| 70 | DSO_LDOPTS = |
---|
| 71 | MKSHLIB = $(LD) |
---|