Make.rules.AIX
1.93 KB
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
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#
supported-platforms = ppc ppc64
ppc_cppflags = -q32 -D_LARGE_FILES
ppc_ldflags = $(ppc_cppflags)
ppc_targetdir = $(if $(filter %/build,$5),/ppc)
ppc64_cppflags = -q64
ppc64_ldflags = $(ppc64_cppflags)
ppc64_targetdir = $(if $(filter %/build,$5),/ppc64,$(if $(filter-out $($1_target),program),64))
ppc64_targetname = $(if $(and $(filter $(bindir)%,$($4_targetdir)),$(filter $($1_target),program)),_64)
shared_cppflags = -brtl
static_targetdir = $(if $(and $(filter-out %/build,$5),$(filter $($1_target),program)),,static)
platform_cxx = xlC_r
platform_ld = xlC_r
xlc_compiler = yes
cppflags = -qrtti=all -qstaticinline -qhalt=i $(if $(filter yes,$(OPTIMIZE)),-O2 -DNDEBUG,-g)
ifeq ($(OPTIMIZE),yes)
cppflags += -O2 -DNDEBUG
else
cppflags += -g
endif
ifeq ($(embedded_runpath),yes)
#
# Our default for embedded runpath prefix on AIX is $(prefix)
#
ifeq ($(embedded_runpath_prefix),)
embedded_runpath_prefix = $(prefix)
endif
endif
depend-cppflags = -qmakedep=gcc -MF $1
rpath-ldflag = -Wl,-blibpath:$1:/usr/lib
# $(call mklib,$1=target,$2=objects,$3=libname,$4=version,$5=soversion,$6=ldflags,$7=platform)
mklib = $(or $($7_ar),$(AR)) -X32_64 cr $1 $2
# $(call mkshlib,$1=target,$2=objects,$3=libname,$4=version,$5=soversion,$6=ldflags,$7=platform)
tmpsofile = $(dir $1)lib$2.so$(if $3,.$3)
mkshlib ?= $(or $($7_cxx),$(CXX)) -qmkshrobj -o $(call tmpsofile,$1,$3,$5) $2 $6 && \
$(or $($7_ar),$(AR)) -X32_64 cr $1 $(call tmpsofile,$1,$3,$5) && \
rm $(call tmpsofile,$1,$3,$5)
#
# $(call mkxxx,$1=libname,$2=version,$3=soversion)
#
mkshlibfilename = lib$(1).a
mkpymodulename = $(1).so
Ice_system_libs = -lcrypto
IceSSL_system_libs = -lssl -lcrypto
Glacier2CryptPermissionsVerifier_system_libs = -lcrypt