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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
|
#
# %CopyrightBegin%
#
# Copyright Ericsson AB 1997-2012. All Rights Reserved.
#
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
# compliance with the License. You should have received a copy of the
# Erlang Public License along with this software. If not, it can be
# retrieved online at http://www.erlang.org/.
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
#
# %CopyrightEnd%
#
#
include $(ERL_TOP)/make/target.mk
include $(ERL_TOP)/make/$(TARGET)/otp.mk
# To get hold of SYSTEM_VSN (e.g. R9C).
#include $(ERL_TOP)/erts/vsn.mk
# ----------------------------------------------------
# Application version
# ----------------------------------------------------
include ../vsn.mk
# ----------------------------------------------------
# Release directory specification
# ----------------------------------------------------
RELSYSDIR = $(RELEASE_PATH)/lib/orber-$(ORBER_VSN)
# ----------------------------------------------------
# Target Specs
# ----------------------------------------------------
MODULES= \
orber \
corba \
corba_boa \
corba_object \
any \
iop_ior \
orber_tc \
orber_typedefs \
orber_request_number \
orber_objectkeys \
orber_initial_references \
cdrlib \
cdr_encode \
cdr_decode \
orber_iiop \
orber_iiop_net \
orber_iiop_net_accept \
orber_iiop_insup \
orber_iiop_inproxy \
orber_iiop_inrequest \
orber_iiop_pm \
orber_iiop_outsup \
orber_iiop_outproxy \
orber_iiop_socketsup \
orber_socket \
orber_ifr \
orber_ifr_aliasdef \
orber_ifr_arraydef \
orber_ifr_attributedef \
orber_ifr_constantdef \
orber_ifr_contained \
orber_ifr_container \
orber_ifr_enumdef \
orber_ifr_exceptiondef \
orber_ifr_idltype \
orber_ifr_interfacedef \
orber_ifr_irobject \
orber_ifr_moduledef \
orber_ifr_operationdef \
orber_ifr_orb \
orber_ifr_primitivedef \
orber_ifr_repository \
orber_ifr_sequencedef \
orber_ifr_stringdef \
orber_ifr_wstringdef \
orber_ifr_structdef \
orber_ifr_typecode \
orber_ifr_typedef \
orber_ifr_uniondef \
orber_ifr_fixeddef \
orber_ifr_utils \
OrberApp_IFR_impl \
orber_pi \
orber_web \
orber_web_server \
orber_iiop_tracer \
orber_iiop_tracer_silent \
orber_iiop_tracer_stealth \
fixed \
orber_exceptions \
orber_diagnostics \
orber_acl \
orber_env \
orber_tb
ASN_MODULES = OrberCSIv2
ASN_SET = $(ASN_MODULES:%=%.set.asn)
ASN_ASNS = $(ASN_MODULES:%=%.asn1)
GEN_ASN_ERL = $(ASN_MODULES:%=%.erl)
GEN_ASN_HRL = $(ASN_MODULES:%=%.hrl)
GEN_ASN_DBS = $(ASN_MODULES:%=%.asn1db)
GEN_ASN_TABLES = $(ASN_MODULES:%=%.table)
PKIX_FILES = \
OrberCSIv2.asn1 \
PKIXAttributeCertificate.asn1 \
PKIX1Explicit88.asn1 \
PKIX1Algorithms88.asn1 \
PKIX1Implicit88.asn1 \
OrberCSIv2.set.asn
EXTERNAL_HRL_FILES= ../include/corba.hrl \
../include/ifr_types.hrl \
../include/orber_pi.hrl
INTERNAL_HRL_FILES = \
orber_iiop.hrl \
ifr_objects.hrl \
orber_ifr.hrl
ERL_FILES= $(MODULES:%=%.erl)
GEN_ERL_FILES1 = \
oe_erlang.erl \
erlang_pid.erl \
erlang_port.erl \
erlang_ref.erl \
erlang_binary.erl
GEN_ERL_FILES2 = \
oe_CORBA.erl
GEN_ERL_FILES3 = \
oe_OrberIFR.erl \
OrberApp_IFR.erl
GEN_ERL_FILES = $(GEN_ERL_FILES1) $(GEN_ERL_FILES2) \
$(GEN_ERL_FILES3) \
# $(GEN_ASN_ERL)
GEN_HRL_FILES1 = \
oe_erlang.hrl \
erlang.hrl
GEN_HRL_FILES2 = \
CORBA.hrl \
oe_CORBA.hrl
GEN_HRL_FILES3 = \
OrberApp_IFR.hrl \
oe_OrberIFR.hrl \
OrberApp.hrl
GEN_HRL_FILES_EXT = $(GEN_HRL_FILES1)
GEN_HRL_FILES_LOC = $(GEN_HRL_FILES2) $(GEN_HRL_FILES3) \
# $(GEN_ASN_HRL)
GEN_FILES = \
$(GEN_ERL_FILES) \
$(GEN_HRL_FILES_LOC) \
$(GEN_HRL_FILES_EXT) \
# $(GEN_ASN_DBS) \
# $(GEN_ASN_TABLES)
TARGET_FILES = \
$(GEN_ERL_FILES:%.erl=$(EBIN)/%.$(EMULATOR)) \
$(MODULES:%=$(EBIN)/%.$(EMULATOR))
APPUP_FILE = orber.appup
APPUP_SRC = $(APPUP_FILE).src
APPUP_TARGET = $(EBIN)/$(APPUP_FILE)
APP_FILE = orber.app
APP_SRC = $(APP_FILE).src
APP_TARGET = $(EBIN)/$(APP_FILE)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_IDL_FLAGS += -pa $(ERL_TOP)/lib/orber/ebin
# The -pa option is just used temporary until erlc can handle
# includes from other directories than ../include .
ERL_COMPILE_FLAGS += $(ERL_IDL_FLAGS) \
-I$(ERL_TOP)/lib/orber/include \
+'{parse_transform,sys_pre_attributes}' \
+'{attribute,insert,app_vsn,"orber_$(ORBER_VSN)"}' \
-D'ORBVSN="$(ORBER_VSN)"'
ASN_FLAGS = -bber +der +compact_bit_string +nowarn_unused_record
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
debug:
@${MAKE} TYPE=debug opt
opt: $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET)
clean:
rm -f $(TARGET_FILES) $(GEN_FILES) $(APP_TARGET) $(APPUP_TARGET) IDL-GENERATED
rm -f errs core *~
$(APP_TARGET): $(APP_SRC) ../vsn.mk
sed -e 's;%VSN%;$(ORBER_VSN);' $< > $@
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
sed -e 's;%VSN%;$(ORBER_VSN);' $< > $@
docs:
# ----------------------------------------------------
# Special Build Targets
# ----------------------------------------------------
IDL-GENERATED: $(ERL_TOP)/lib/ic/include/erlang.idl CORBA.idl OrberIFR.idl
erlc $(ERL_IDL_FLAGS) $(ERL_TOP)/lib/ic/include/erlang.idl
erlc $(ERL_IDL_FLAGS) CORBA.idl
erlc $(ERL_IDL_FLAGS) +'{this,"Orber::IFR"}' OrberIFR.idl
>IDL-GENERATED
$(GEN_ERL_FILES): IDL-GENERATED
$(TARGET_FILES): IDL-GENERATED
$(GEN_ASN_ERL) $(GEN_ASN_HRL): OrberCSIv2.asn1 OrberCSIv2.set.asn
erlc $(ERL_COMPILE_FLAGS) $(ASN_FLAGS) +'{inline,"OrberCSIv2"}' OrberCSIv2.set.asn
rm -f $(GEN_ASN_ERL:%.erl=%.beam)
# erlc $(ERL_COMPILE_FLAGS) $(ASN_FLAGS) OrberCSIv2.asn1 ;\
# erlc $(GEN_ASN_ERL)
# Use the following when we safely can inline the ASN1 runtime code.
# Requires igor (part of syntax_tools (introduced in R10B
# erlc $(ERL_COMPILE_FLAGS) $(ASN_FLAGS) +'{inline,"OrberCSIv2"}' OrberCSIv2.set.asn ; \
# ----------------------------------------------------
# Release Target
# ----------------------------------------------------
include $(ERL_TOP)/make/otp_release_targets.mk
release_spec: opt
$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
$(INSTALL_DIR) "$(RELSYSDIR)/src"
$(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(GEN_HRL_FILES_LOC) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
$(INSTALL_DIR) "$(RELSYSDIR)/include"
$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) $(GEN_HRL_FILES_EXT) "$(RELSYSDIR)/include"
release_docs_spec:
|