1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
# **********************************************************************
#
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# This file is included by Make.rules when uname is HP-UX.
#
$(warning ===================================================================)
$(warning HP-UX is currently an unsupported platform. The Ice team )
$(warning no longer maintains HP-UX specific portions of the source code or )
$(warning build system. Contact sales@zeroc.com if you wish to sponsor )
$(warning official support.)
$(warning ===================================================================)
CXX = aCC
ifeq ($(LP64),yes)
CXXARCHFLAGS = +DD64
else
CXXARCHFLAGS = +DA2.0N
endif
#
# TODO: add -Bhidden_def (for declspec), when it works
#
#
# Disable the following future errors and warnings:
# 849: External symbol too long, truncated from xxxx to 4000
DISABLEDWARNINGS = +W849
CXXFLAGS = -AA -mt $(DISABLEDWARNINGS) $(CXXARCHFLAGS)
ifneq ($(GENPIC),no)
CXXFLAGS += +Z
endif
ifeq ($(OPTIMIZE),yes)
ifeq ($(LP64),yes)
#
# 64 bits -O (+O2) optimized build fail in the IceGrid tests so we use +O1
#
CXXFLAGS += +O1 -DNDEBUG
else
CXXFLAGS += -O -DNDEBUG
endif
else
CXXFLAGS += -g0
endif
#
# C++ run-time libraries, necessary for linking some shared libraries.
#
CXXLIBS = -lCsup_v2 -lstd_v2
ifneq ($(embedded_runpath_prefix),)
LDPLATFORMFLAGS = -Wl,+s -Wl,+b$(runpath_libdir)
else
LDPLATFORMFLAGS = -Wl,+s
endif
mklibfilename = $(if $(2),lib$(1).$(2),lib$(1).sl)
mksoname = $(if $(2),lib$(1).$(2),lib$(1).sl)
ifeq ($(STATICLIBS),)
mklibname = lib$(1).sl
endif
mkshlib = $(CXX) -b -Wl,-Bsymbolic $(LDFLAGS) -o $(1) -Wl,+h$(2) $(3) $(4)
mklib = ar cr $(1) $(2)
rpathlink = -L$(1)
BASELIBS = -lIceUtil -lxnet -lpthread
LIBS = $(BZIP2_RPATH_LINK) -lIce $(BASELIBS)
ICEUTIL_OS_LIBS = -lpthread -lrt
ICE_OS_LIBS =
lp64suffix = /pa20_64
lp64binsuffix = /pa20_64
|