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
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(MOD_DEPTH)/config/UNIX.mk
|
|
|
|
|
|
|
|
DLL_SUFFIX = sl
|
|
|
|
|
1998-05-28 03:13:47 +04:00
|
|
|
ifdef NS_USE_GCC
|
|
|
|
CC = gcc
|
|
|
|
CCC = g++
|
|
|
|
OS_CFLAGS =
|
|
|
|
else
|
1998-03-28 05:44:41 +03:00
|
|
|
CC = cc -Ae
|
|
|
|
CCC = CC
|
1998-05-28 03:13:47 +04:00
|
|
|
OS_CFLAGS = +ESlit
|
|
|
|
endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
RANLIB = echo
|
|
|
|
|
|
|
|
CPU_ARCH = hppa
|
|
|
|
|
1998-05-28 03:13:47 +04:00
|
|
|
OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#
|
1998-04-15 05:02:00 +04:00
|
|
|
# The header netdb.h on HP-UX 9 does not declare h_errno.
|
|
|
|
# On 10.10 and 10.20, netdb.h declares h_errno only if
|
|
|
|
# _XOPEN_SOURCE_EXTENDED is defined. So we need to declare
|
1998-03-28 05:44:41 +03:00
|
|
|
# h_errno ourselves.
|
|
|
|
#
|
1998-04-15 05:02:00 +04:00
|
|
|
ifeq ($(basename $(OS_RELEASE)),A.09)
|
|
|
|
OS_CFLAGS += -D_PR_NEED_H_ERRNO
|
|
|
|
endif
|
1998-03-28 05:44:41 +03:00
|
|
|
ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))
|
|
|
|
OS_CFLAGS += -D_PR_NEED_H_ERRNO
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# XXX
|
|
|
|
# Temporary define for the Client; to be removed when binary release is used
|
|
|
|
#
|
|
|
|
ifdef MOZILLA_CLIENT
|
|
|
|
CLASSIC_NSPR = 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# On HP-UX 9, the default (and only) implementation strategy is
|
|
|
|
# classic nspr.
|
|
|
|
#
|
|
|
|
# On HP-UX 10.10 and 10.20, the default implementation strategy is
|
|
|
|
# pthreads (actually DCE threads). Classic nspr is also available.
|
|
|
|
#
|
|
|
|
# On HP-UX 10.30 and 11.00, the default implementation strategy is
|
|
|
|
# pthreads. Classic nspr and pthreads-user are also available.
|
|
|
|
#
|
1998-04-15 05:02:00 +04:00
|
|
|
ifeq ($(basename $(OS_RELEASE)),A.09)
|
1998-03-28 05:44:41 +03:00
|
|
|
OS_CFLAGS += -DHPUX9
|
|
|
|
DEFAULT_IMPL_STRATEGY = _CLASSIC
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),B.10.01)
|
|
|
|
OS_CFLAGS += -DHPUX10
|
|
|
|
DEFAULT_IMPL_STRATEGY = _CLASSIC
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),B.10.10)
|
|
|
|
OS_CFLAGS += -DHPUX10 -DHPUX10_10
|
|
|
|
DEFAULT_IMPL_STRATEGY = _PTH
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),B.10.20)
|
|
|
|
OS_CFLAGS += -DHPUX10 -DHPUX10_20
|
|
|
|
DEFAULT_IMPL_STRATEGY = _PTH
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# On 10.30 and 11.00, we use the new ANSI C++ compiler aCC.
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),B.10.30)
|
1998-05-28 03:13:47 +04:00
|
|
|
ifndef NS_USE_GCC
|
1998-03-28 05:44:41 +03:00
|
|
|
CCC = /opt/aCC/bin/aCC
|
1998-05-28 03:13:47 +04:00
|
|
|
OS_CFLAGS += +DAportable +DS1.1
|
|
|
|
endif
|
|
|
|
OS_CFLAGS += -DHPUX10 -DHPUX10_30
|
1998-03-28 05:44:41 +03:00
|
|
|
DEFAULT_IMPL_STRATEGY = _PTH
|
|
|
|
endif
|
|
|
|
|
|
|
|
# 11.00 is similar to 10.30.
|
|
|
|
ifeq ($(OS_RELEASE),B.11.00)
|
1998-05-28 03:13:47 +04:00
|
|
|
ifndef NS_USE_GCC
|
1998-03-28 05:44:41 +03:00
|
|
|
CCC = /opt/aCC/bin/aCC
|
1998-05-28 03:13:47 +04:00
|
|
|
OS_CFLAGS += +DAportable +DS1.1
|
|
|
|
endif
|
|
|
|
OS_CFLAGS += -DHPUX10 -DHPUX11
|
1998-03-28 05:44:41 +03:00
|
|
|
DEFAULT_IMPL_STRATEGY = _PTH
|
|
|
|
endif
|
|
|
|
|
1998-04-15 05:02:00 +04:00
|
|
|
ifeq ($(DEFAULT_IMPL_STRATEGY),_CLASSIC)
|
|
|
|
CLASSIC_NSPR = 1
|
|
|
|
endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
|
|
|
|
USE_PTHREADS = 1
|
|
|
|
ifeq ($(CLASSIC_NSPR),1)
|
|
|
|
USE_PTHREADS =
|
|
|
|
IMPL_STRATEGY = _CLASSIC
|
|
|
|
endif
|
|
|
|
ifeq ($(PTHREADS_USER),1)
|
|
|
|
USE_PTHREADS =
|
|
|
|
IMPL_STRATEGY = _PTH_USER
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# XXX
|
|
|
|
# Temporary define for the Client; to be removed when binary release is used
|
|
|
|
#
|
|
|
|
ifdef MOZILLA_CLIENT
|
|
|
|
IMPL_STRATEGY =
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CLASSIC_NSPR),1)
|
|
|
|
DEFINES += -D_PR_LOCAL_THREADS_ONLY
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# To use the true pthread (kernel thread) library on 10.30 and
|
|
|
|
# 11.00, we should define _POSIX_C_SOURCE to be 199506L.
|
|
|
|
# The _REENTRANT macro is deprecated.
|
|
|
|
#
|
|
|
|
|
|
|
|
ifdef USE_PTHREADS
|
|
|
|
ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))
|
1998-04-21 21:21:53 +04:00
|
|
|
OS_CFLAGS += -D_REENTRANT -D_PR_DCETHREADS
|
1998-03-28 05:44:41 +03:00
|
|
|
else
|
|
|
|
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef PTHREADS_USER
|
|
|
|
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
|
|
|
|
endif
|
|
|
|
|
|
|
|
MKSHLIB = $(LD) $(DSO_LDOPTS)
|
|
|
|
|
|
|
|
DSO_LDOPTS = -b
|
|
|
|
DSO_LDFLAGS =
|
1998-05-28 03:13:47 +04:00
|
|
|
|
|
|
|
# -fPIC or +Z generates position independent code for use in shared
|
|
|
|
# libraries.
|
|
|
|
ifdef NS_USE_GCC
|
|
|
|
DSO_CFLAGS = -fPIC
|
|
|
|
else
|
1998-03-28 05:44:41 +03:00
|
|
|
DSO_CFLAGS = +Z
|
1998-05-28 03:13:47 +04:00
|
|
|
endif
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
HAVE_PURIFY = 1
|
1998-08-20 00:42:14 +04:00
|
|
|
|
|
|
|
ifdef USE_AUTOCONF
|
|
|
|
OS_CFLAGS =
|
|
|
|
endif
|