1 martin 1.45 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.46 #//
|
3 martin 1.45 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
|
9 martin 1.46 #//
|
10 martin 1.45 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
|
16 martin 1.46 #//
|
17 martin 1.45 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.46 #//
|
20 martin 1.45 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.46 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.45 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.46 #//
|
28 martin 1.45 #//////////////////////////////////////////////////////////////////////////
|
29 aruran.ms 1.19 include $(ROOT)/mak/config-unix.mak
30
31 OS = zos
32
33 ARCHITECTURE = zseries
34
35 COMPILER = ibm
36
|
37 kumpf 1.48 SYS_INCLUDES = -I/usr/lpp/tcpip/include -I/usr/lpp/ioclib/include -I$(ROOT)/src/stdcxx/zOS
|
38 marek 1.23 #SYS_INCLUDES = -I/usr/lpp/tcpip/include -I/usr/lpp/ioclib/include
|
39 marek 1.49 DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -D _OPEN_SYS_IF_EXT -D _OPEN_SYS_DIR_EXT -D _OPEN_SYS_FILE_EXT -D_ALL_SOURCE -D_UNIX03_SOURCE -D_OPEN_THREADS=3 -D_OPEN_SYS_SOCK_IPV6 -D_ENHANCED_ASCII_EXT=0xFFFFFFFF -D_XOPEN_SOURCE=600 -D_UNIX03_WITHDRAWN
|
40 aruran.ms 1.19
|
41 r.kieninger 1.43 DEFINES += -DPEGASUS_OS_ZOS
42
|
43 r.kieninger 1.30 DEFINES += -DPEGASUS_USE_SYSLOGS
44
|
45 aruran.ms 1.19 ifdef PEGASUS_KERBEROS_AUTHENTICATION
46 DEFINES += -DPEGASUS_KERBEROS_AUTHENTICATION
47 endif
48
49
50
51 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS
|
52 marek 1.38 FLAGS = -W "c,debug,ASCII,XPLINK,dll,expo,langlvl(extended,newexcp),rtti(dynamiccast),float(ieee),goff"
53 PR_FLAGS = -W "c,debug,ASCII,XPLINK,dll,expo,langlvl(extended,newexcp),rtti(dynamiccast),FLOAT(IEEE),goff" -W "l,XPLINK,dll"
|
54 aruran.ms 1.19 else
|
55 thilo.boehm 1.42 FLAGS = -O2 -W "c,ASCII,XPLINK,dll,expo,langlvl(extended,newexcp),rtti(dynamiccast),float(ieee),goff,INLINE(AUTO,REPORT,1000,8000)"
56 PR_FLAGS = -O2 -W "c,ASCII,XPLINK,dll,expo,langlvl(extended,newexcp),rtti(dynamiccast),FLOAT(IEEE),goff,INLINE(AUTO,REPORT,1000,8000)" -W "l,XPLINK,dll,EDIT=NO"
|
57 aruran.ms 1.19 endif
58
|
59 gong.zhe 1.50 # The CSECT parameter for the compiler does not bear dots.
60 # replace '.' with '_'
61 _CSECT_PATH = $(subst .,_,$(DIR))
62 FLAGS += -W"c,CSECT($(_CSECT_PATH)) "
63 PR_FLAGS += -W"c,CSECT($(_CSECT_PATH)) "
64
|
65 r.kieninger 1.32 ifdef PEGASUS_GENERATE_LISTINGS
66 FLAGS += -W"c,LIST,XREF"
67 PR_FLAGS += -W"c,LIST,XREF" -W"l,MAP,LIST"
68 endif
69
70
|
71 thilo.boehm 1.31 PEGASUS_ZOS_BUILD_DATE := $(shell date '+%Y%m%d+')
|
72 marek 1.24
73 ifdef PEGASUS_ZOS_SERVICE_STRING
74 FLAGS += -W "c,SERVICE($(PEGASUS_ZOS_SERVICE_STRING)$(PEGASUS_ZOS_BUILD_DATE))"
75 PR_FLAGS += -W "c,SERVICE($(PEGASUS_ZOS_SERVICE_STRING)$(PEGASUS_ZOS_BUILD_DATE))"
|
76 r.kieninger 1.32 DEFINES += -DPEGASUS_ZOS_SERVICE_STRING=\"$(PEGASUS_ZOS_SERVICE_STRING)$(PEGASUS_ZOS_BUILD_DATE)\"
|
77 marek 1.24 else
78 FLAGS += -W "c,SERVICE(NOTVALI--CIM--NOTVALID--XXX--$(PEGASUS_ZOS_BUILD_DATE))"
79 PR_FLAGS += -W "c,SERVICE(NOTVALI--CIM--NOTVALID--XXX--$(PEGASUS_ZOS_BUILD_DATE))"
|
80 kumpf 1.47 endif
|
81 marek 1.24
|
82 marek 1.39 # supported values for PEGASUS_ZOS_TARGET_LEVEL are the following:
83 # zOSV1R7, zOSV1R8, zOSV1R9
84 ifdef PEGASUS_ZOS_TARGET_LEVEL
85 FLAGS += -W "c,TARGET($(PEGASUS_ZOS_TARGET_LEVEL))"
86 PR_FLAGS += -W "c,TARGET($(PEGASUS_ZOS_TARGET_LEVEL))"
87 endif
|
88 kumpf 1.40
|
89 aruran.ms 1.19 ifdef PEGASUS_ZOS_SECURITY
90 DEFINES += -DPEGASUS_ZOS_SECURITY
91 endif
92
93 ifdef PEGASUS_HAS_MY_KERBEROS
94 FLAGS+= -L/usr/local/lib
95 PR_FLAGS+= -L/usr/local/lib
96 endif
97
98 ifdef PEGASUS_ZOS_THREADLEVEL_SECURITY
99 DEFINES += -DPEGASUS_ZOS_THREADLEVEL_SECURITY
100 endif
101
|
102 marek 1.20
|
103 r.kieninger 1.21 # if PEGASUS_ENABLE_SLP is already set then honor the users preference else
104 # Enable the compilation of the SLP functions.
105 #
106 ifndef PEGASUS_ENABLE_SLP
107 PEGASUS_ENABLE_SLP = true
108 endif
109
|
110 aruran.ms 1.19 SYS_LIBS =
111
112 CXX = c++ -+
113
|
114 thilo.boehm 1.35 CC = cc -W "c,SSCOMM"
|
115 aruran.ms 1.19
116 SH = sh
117
118 YACC = bison
119
120 RM = rm -f
121
122 DIFF = diff
123
124 SORT = sort
125
126 COPY = cp
127
128 MOVE = mv
129
|
130 r.kieninger 1.32 ZIP = zip
131
|
132 aruran.ms 1.19 LIB_SUFFIX = .so
133
|
134 r.kieninger 1.43 DYNLIB_SUFFIX = .x
135
|
136 marek 1.44 STATLIB_SUFFIX = .a
137
|
138 aruran.ms 1.19 PEGASUS_SUPPORTS_DYNLIB = yes
139
140 PEGASUS_HAS_MAKEDEPEND = yes
|