pjs/config/HP-UX.mk

140 строки
3.7 KiB
Makefile
Исходник Обычный вид История

1998-03-28 05:44:41 +03: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.
#
######################################################################
# Config stuff for HP-UX
######################################################################
#
######################################################################
# Version-independent
######################################################################
ARCH := hpux
CPU_ARCH := hppa
GFX_ARCH := x
OS_INCLUDES = -I/usr/include/X11R$(X11_REV) -I/usr/contrib/X11R$(X11_REV)/include -I/usr/include/Motif$(MOTIF_REV)_R$(X11_REV) -I/usr/include/Motif$(MOTIF_REV)
1998-03-28 05:44:41 +03:00
G++INCLUDES =
LOC_LIB_DIR = /usr/lib/X11
MOTIF =
MOTIFLIB =
MOTIF_REV = 1.2
1998-03-28 05:44:41 +03:00
OS_LIBS = -ldld
PLATFORM_FLAGS = $(DSO_CFLAGS) -DHPUX -Dhpux -DHPUX$(subst .,,$(subst .0,,$(suffix $(OS_RELEASE)))) -DHPUX$(subst .,,$(subst .0,,$(suffix $(OS_RELEASE))))$(subst .,_,$(OS_VERSION)) -D$(CPU_ARCH) $(ADDITIONAL_CFLAGS)
1998-03-28 05:44:41 +03:00
MOVEMAIL_FLAGS = -DHAVE_STRERROR
PORT_FLAGS = -D_HPUX_SOURCE -DSW_THREADS -DNO_SIGNED -DNO_FNDELAY -DHAVE_ODD_SELECT -DNO_CDEFS_H -DNEED_IOCTL_H -DNEED_MATH_H -DUSE_NODL_TABS -DMITSHM -DNEED_SYS_WAIT_H -DHAVE_INT32_T -DNEED_UINT_T -DNEED_H_ERRNO
1998-03-28 05:44:41 +03:00
PDJAVA_FLAGS =
OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/hpux.lm
EN_LOCALE = american.iso88591
DE_LOCALE = german.iso88591
FR_LOCALE = french.iso88591
JP_LOCALE = japanese.euc
SJIS_LOCALE = japanese
KR_LOCALE = korean
CN_LOCALE = chinese-s
TW_LOCALE = chinese-t.big5
I2_LOCALE = i2
IT_LOCALE = it
SV_LOCALE = sv
ES_LOCALE = es
NL_LOCALE = nl
PT_LOCALE = pt
######################################################################
# Version-specific stuff
######################################################################
ifeq ($(OS_RELEASE),A.09)
OS_LIBS += -L/lib/pa1.1 -lm
ifndef NS_USE_GCC
1998-03-28 05:44:41 +03:00
NO_INLINE = +d
endif
1998-03-28 05:44:41 +03:00
else
PORT_FLAGS += -DHAVE_SNPRINTF
1998-03-28 05:44:41 +03:00
OS_LIBS += -lm
endif
ifeq ($(OS_RELEASE),B.10)
PORT_FLAGS += -DRW_NO_OVERLOAD_SCHAR -DHAVE_MODEL_H
JAVA_PROG = $(CONTRIB_BIN)java
endif
ifeq ($(OS_RELEASE),B.11)
PLATFORM_FLAGS += -DHPUX10
MOTIF_REV = 2.1
1998-03-28 05:44:41 +03:00
endif
######################################################################
# Overrides for defaults in config.mk (or wherever)
######################################################################
ifndef NS_USE_GCC
1998-03-28 05:44:41 +03:00
CC = cc -Ae
CCC = CC -Aa +a1 $(NO_INLINE)
endif
BSDECHO = $(DIST)/bin/bsdecho
1998-03-28 05:44:41 +03:00
DLL_SUFFIX = sl
EMACS = /bin/true
1998-03-28 05:44:41 +03:00
PERL = $(LOCAL_BIN)perl
ifdef BUILD_OPT
ifdef NS_USE_GCC
OPTIMIZER = -O
else
OPTIMIZER = -O +Onolimit
endif
endif
1998-03-28 05:44:41 +03:00
######################################################################
# Other
######################################################################
ifdef MOZ_USE_X11R6
X11_REV = 6
else
X11_REV = 5
endif
1998-03-28 05:44:41 +03:00
ifdef SERVER_BUILD
ifndef NS_USE_GCC
PLATFORM_FLAGS += +DA1.0
endif
PLATFORM_FLAGS += -Wl,-E
1998-03-28 05:44:41 +03:00
endif
ELIBS_CFLAGS = -g -DHAVE_STRERROR
HAVE_PURIFY = 1
MUST_BOOTLEG_ALLOCA = 1
BUILD_UNIX_PLUGINS = 1
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -b
DSO_LDFLAGS =
ifdef NS_USE_GCC
DSO_CFLAGS = -fPIC
else
1998-03-28 05:44:41 +03:00
DSO_CFLAGS = +Z
endif