summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/LifeCycle_Service/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/LifeCycle_Service/Makefile')
-rw-r--r--TAO/orbsvcs/LifeCycle_Service/Makefile43
1 files changed, 22 insertions, 21 deletions
diff --git a/TAO/orbsvcs/LifeCycle_Service/Makefile b/TAO/orbsvcs/LifeCycle_Service/Makefile
index 20b9f4b48ec..88a6f53a4f1 100644
--- a/TAO/orbsvcs/LifeCycle_Service/Makefile
+++ b/TAO/orbsvcs/LifeCycle_Service/Makefile
@@ -10,53 +10,54 @@ endif # TAO_ROOT
TAO_IDLFLAGS=-I$(TAO_ROOT)/orbsvcs/orbsvcs
-
-BIN = LifeCycle_Service
-
-
# The following lines tell the souce code that the trading
# service is available.
LIFECYCLE_SERVICE_SRCS = \
- LifeCycle_Service.cpp LifeCycle_Service_i.cpp \
- Factory_Trader.cpp Criteria_Evaluator.cpp
-
+ LifeCycle_Service.cpp LifeCycle_Service_i.cpp \
+ Factory_Trader.cpp Criteria_Evaluator.cpp
LSRC= \
- LifeCycle_Service.cpp LifeCycle_Service_i.cpp \
- Factory_Trader.cpp Criteria_Evaluator.cpp
+ LifeCycle_Service.cpp LifeCycle_Service_i.cpp \
+ Factory_Trader.cpp Criteria_Evaluator.cpp
LIFECYCLE_SERVICE_OBJS = LifeCycle_Service.o LifeCycle_Service_i.o \
- Factory_Trader.o Criteria_Evaluator.o
+ Factory_Trader.o Criteria_Evaluator.o
LDLIBS = -lorbsvcs -lTAO
+BIN2 = LifeCycle_Service
+
+#### If the TAO orbsvcs library wasn't built with sufficient components,
+#### don't try to build here.
+TAO_ORBSVCS := $(shell $(ACE_ROOT)/bin/ace_components --orbsvcs)
+ifeq (LifeCycle,$(findstring LifeCycle,$(TAO_ORBSVCS)))
+ BIN = $(BIN2)
+endif # LifeCycle
+
#----------------------------------------------------------------------------
-# Include macros and targets
+# Include macros and targets
#----------------------------------------------------------------------------
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
+include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
+include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(TAO_ROOT)/rules.tao.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
+include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
+include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
+include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
#### Local rules and variables...
TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE
LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT)/orbsvcs/orbsvcs \
- -I$(TAO_ROOT) $(TSS_ORB_FLAG)
-
-realclean: clean
+ -I$(TAO_ROOT) $(TSS_ORB_FLAG)
LifeCycle_Service: $(addprefix $(VDIR),$(LIFECYCLE_SERVICE_OBJS))
$(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
#----------------------------------------------------------------------------
-# Dependencies
+# Dependencies
#----------------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- g++dep uses it.