summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Makefile.CosNotification
blob: f5c853bd0855fc49081ed458eb0b1f155ce53d2c (plain)
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
#----------------------------------------------------------------------------
#       GNU Makefile
#----------------------------------------------------------------------------
MAKEFILE        = Makefile.CosNotification
DEPENDENCY_FILE = .depend.Makefile.CosNotification
LIB_UNCHECKED   = libTAO_CosNotification.a
SHLIB_UNCHECKED = libTAO_CosNotification.$(SOEXT)

ifndef TAO_ROOT
  TAO_ROOT = $(ACE_ROOT)/TAO
endif

IDL_FILES = CosEventComm CosEventChannelAdmin CosNotification CosNotifyComm CosNotifyFilter CosNotifyChannelAdmin NotifyExt Event_Forwarder
IDL_SRC = $(foreach ext, C.cpp S.cpp, $(foreach file, $(IDL_FILES), $(file)$(ext)))



Notify = \
  CosEventCommC \
  CosEventCommS \
  CosEventChannelAdminC \
  CosEventChannelAdminS \
  CosNotificationC \
  CosNotificationS \
  CosNotifyCommC \
  CosNotifyCommS \
  CosNotifyFilterC \
  CosNotifyFilterS \
  CosNotifyChannelAdminC \
  CosNotifyChannelAdminS \
  NotifyExtC \
  NotifyExtS \
  Event_ForwarderC \
  Event_ForwarderS \
  Notify/Admin \
  Notify/AdminProperties \
  Notify/Buffering_Strategy \
  Notify/Builder \
  Notify/Consumer \
  Notify/ConsumerAdmin \
  Notify/Container_T \
  Notify/CosNotify_Initializer \
  Notify/CosNotify_Service \
  Notify/Default_Factory \
  Notify/ETCL_Filter \
  Notify/ETCL_FilterFactory \
  Notify/Event \
  Notify/EventChannel \
  Notify/EventChannelFactory \
  Notify/EventType \
  Notify/EventTypeSeq \
  Notify/Event_Manager \
  Notify/Event_Map_Entry_T \
  Notify/Event_Map_T \
  Notify/FilterAdmin \
  Notify/Find_Worker_T \
  Notify/ID_Factory \
  Notify/Method_Request \
  Notify/Method_Request_Dispatch \
  Notify/Method_Request_Dispatch_No_Filtering \
  Notify/Method_Request_Lookup \
  Notify/Method_Request_Shutdown \
  Notify/Method_Request_Updates \
  Notify/Notify_Constraint_Interpreter \
  Notify/Notify_Constraint_Visitors \
  Notify/Notify_Default_Collection_Factory \
  Notify/Notify_Default_CO_Factory \
  Notify/Notify_Default_EMO_Factory \
  Notify/Notify_Default_POA_Factory \
  Notify/Notify_EventChannelFactory_i \
  Notify/Notify_Extensions \
  Notify/Object \
  Notify/Peer \
  Notify/POA_Helper \
  Notify/Properties \
  Notify/PropertySeq \
  Notify/Property_Boolean \
  Notify/Property_T \
  Notify/Proxy \
  Notify/ProxyConsumer \
  Notify/ProxyConsumer_T \
  Notify/ProxySupplier \
  Notify/ProxySupplier_T \
  Notify/Proxy_T \
  Notify/QoSProperties \
  Notify/Reactive_Task \
  Notify/Refcountable \
  Notify/Seq_Worker_T \
  Notify/Subscription_Change_Worker \
  Notify/Supplier \
  Notify/SupplierAdmin \
  Notify/ThreadPool_Task \
  Notify/Timer_Queue \
  Notify/Timer_Reactor \
  Notify/Worker_Task \
  Notify/Any/AnyEvent \
  Notify/Any/CosEC_ProxyPushConsumer \
  Notify/Any/CosEC_ProxyPushSupplier \
  Notify/Any/ProxyPushConsumer \
  Notify/Any/ProxyPushSupplier \
  Notify/Any/PushConsumer \
  Notify/Any/PushSupplier \
  Notify/Structured/StructuredEvent \
  Notify/Structured/StructuredProxyPushConsumer \
  Notify/Structured/StructuredProxyPushSupplier \
  Notify/Structured/StructuredPushConsumer \
  Notify/Structured/StructuredPushSupplier \
  Notify/Sequence/Batch_Buffering_Strategy \
  Notify/Sequence/SequenceProxyPushConsumer \
  Notify/Sequence/SequenceProxyPushSupplier \
  Notify/Sequence/SequencePushConsumer \
  Notify/Sequence/SequencePushSupplier

ifndef ORBSVCS_COMPONENTS
  ORBSVCS_COMPONENTS = \
    Notify
endif # ORBSVCS_COMPONENTS

ifneq (,$(findstring Notify, $(ORBSVCS_COMPONENTS)))
  FILES += $(Notify)
endif # Notify

VPATH = .:Notify:Notify/Any:Notify/Sequence:Notify/Structured

ifeq (,$(TAO_ORBSVCS))
LIB   = $(LIB_UNCHECKED)
SHLIB = $(SHLIB_UNCHECKED)
else
  ifeq (Notify, $(findstring Notify, $(TAO_ORBSVCS)))
    LIB   = $(LIB_UNCHECKED)
    SHLIB = $(SHLIB_UNCHECKED)
  endif
endif

#----------------------------------------------------------------------------
#       Include macros and targets
#----------------------------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(TAO_ROOT)/rules.tao.GNU
LSRC   = $(addsuffix .cpp, $(FILES))
ifeq (,$(TAO_ORBSVCS))
BUILD += ORBSVCS_COMPONENTS
else
  ifeq (Notify, $(findstring Notify, $(TAO_ORBSVCS)))
    BUILD += ORBSVCS_COMPONENTS
  endif
endif
ACELIB = -lACE

include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
include $(TAO_ROOT)/taoconfig.mk

CPPFLAGS     += -I../../orbsvcs -I../.. -I../../tao -I../../..
ifeq ($(shared_libs),1)
  ifneq ($(SHLIB),)
    CPPFLAGS += -DTAO_NOTIFY_BUILD_DLL
  endif
endif
ifeq ($(static_libs),1)
  ifneq ($(LIB),)
    CPPFLAGS += -DTAO_AS_STATIC_LIBS -DACE_AS_STATIC_LIBS
  endif
endif


LDFLAGS      += -L../../tao/PortableServer -L../../tao/DynamicAny -L../../orbsvcs/orbsvcs/ETCL -L../../orbsvcs/orbsvcs -L../../tao -L../../../ace
TAO_IDLFLAGS += -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -Wb,export_macro=TAO_Notify_Export -Wb,export_include=Notify/notify_export.h -I../.. -I$(TAO_ROOT)/orbsvcs -Ge 1 -Sc

ACE_SHLIBS = -lTAO_Svc_Utils -lTAO_ETCL -lTAO_PortableServer -lTAO_DynamicAny -lTAO $(ACELIB)

#----------------------------------------------------------------------------
#       Local targets
#----------------------------------------------------------------------------

.PHONY: ORBSVCS_COMPONENTS
ORBSVCS_COMPONENTS:
	@sh ../../../bin/ace_components --orbsvcs --append '$(ORBSVCS_COMPONENTS)'

compclean:
	@sh $(ACE_ROOT)/bin/ace_components --orbsvcs --remove

ADDITIONAL_IDL_TARGETS =
# IDL File Directory: .
# IDL File Directory: .
# IDL File Directory: .
# IDL File Directory: .
# IDL File Directory: .
# IDL File Directory: .
# IDL File Directory: .
# IDL File Directory: .

ifneq ($(ADDITIONAL_IDL_TARGETS),)
idl_stubs: $(ADDITIONAL_IDL_TARGETS)
endif

ifneq ($(SHLIB),)
all: idl_stubs
endif

.PRECIOUS: $(foreach ext, $(IDL_EXT), $(foreach file, $(IDL_FILES), $(file)$(ext)))

realclean: clean compclean
	-$(RM) $(foreach ext, $(IDL_EXT), $(foreach file, $(IDL_FILES), $(file)$(ext)))