summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-07 15:13:20 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-07 15:13:20 +0000
commit8140945c7594d642bdedabaa288a656ae8054660 (patch)
treef224af5c12acd7b6772f1ae15ad6e5e3e41e1b9a
parente41de0d9210f75af7fd0f6778e1be61f76237262 (diff)
downloadATCD-8140945c7594d642bdedabaa288a656ae8054660.tar.gz
only build if the orbsvcs library was built with the Concurrency TAO_ORBSVCS component
-rw-r--r--TAO/orbsvcs/Concurrency_Service/Makefile23
-rw-r--r--TAO/orbsvcs/tests/Concurrency/Makefile37
2 files changed, 38 insertions, 22 deletions
diff --git a/TAO/orbsvcs/Concurrency_Service/Makefile b/TAO/orbsvcs/Concurrency_Service/Makefile
index a0fcc240b02..b93bcba3fa4 100644
--- a/TAO/orbsvcs/Concurrency_Service/Makefile
+++ b/TAO/orbsvcs/Concurrency_Service/Makefile
@@ -5,24 +5,27 @@
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
-# Local macros
+# Local macros
#----------------------------------------------------------------------------
-BIN = Concurrency_Service
-
-SRC=Concurrency_Service.cpp
+SRC = Concurrency_Service.cpp
LDLIBS = -lorbsvcs -lTAO
-
VLDLIBS = $(LDLIBS:%=%$(VAR))
-BUILD = $(VLIB) $(VSHLIB) $(SHLIBA) $(VBIN)
-
#----------------------------------------------------------------------------
-# Include macros and targets
+# Include macros and targets
#----------------------------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
+
+#### 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 (Concurrency,$(findstring Concurrency,$(TAO_ORBSVCS)))
+ BIN = Concurrency_Service
+endif # Concurrency
+
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
@@ -39,6 +42,10 @@ endif
LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) $(TSS_ORB_FLAG)#-H
+#----------------------------------------------------------------------------
+# Dependencies
+#----------------------------------------------------------------------------
+
# DO NOT DELETE THIS LINE -- g++dep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
diff --git a/TAO/orbsvcs/tests/Concurrency/Makefile b/TAO/orbsvcs/tests/Concurrency/Makefile
index de028460566..ad3cbe18959 100644
--- a/TAO/orbsvcs/tests/Concurrency/Makefile
+++ b/TAO/orbsvcs/tests/Concurrency/Makefile
@@ -1,13 +1,13 @@
#----------------------------------------------------------------------------
#
-# $Id$
+# $Id$
#
-# Makefile for the concurrency service test.
+# Makefile for the concurrency service test.
#
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
-# Local macros
+# Local macros
#----------------------------------------------------------------------------
ifndef TAO_ROOT
@@ -17,25 +17,31 @@ endif # ! TAO_ROOT
LDLIBS = -lorbsvcs -lTAO
PROG_SRCS = CC_client.cpp CC_tests.cpp CC_naming_service.cpp \
- tmplinst.cpp CC_command.tab.cpp \
- lex.CC_command.cpp CC_command.cpp CC_test_utils.cpp
+ tmplinst.cpp CC_command.tab.cpp \
+ lex.CC_command.cpp CC_command.cpp CC_test_utils.cpp
LSRC = $(PROG_SRCS)
CC_CLT_OBJS = CC_client.o CC_tests.o tmplinst.o CC_naming_service.o \
- CC_command.tab.o lex.CC_command.o \
- CC_command.o CC_test_utils.o
+ CC_command.tab.o lex.CC_command.o \
+ CC_command.o CC_test_utils.o
-BIN = CC_client
-BUILD = $(BIN)
VLDLIBS = $(LDLIBS:%=%$(VAR))
VBIN = $(BIN:%=%$(VAR))
#----------------------------------------------------------------------------
-# Include macros and targets
+# Include macros and targets
#----------------------------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
+
+#### 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 (Concurrency,$(findstring Concurrency,$(TAO_ORBSVCS)))
+ BIN = CC_client
+endif # Concurrency
+
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(TAO_ROOT)/rules.tao.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
@@ -44,13 +50,13 @@ include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
include $(TAO_ROOT)/taoconfig.mk
#----------------------------------------------------------------------------
-# Local targets
+# Local targets
#----------------------------------------------------------------------------
LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -L$(TAO_ROOT)/orbsvcs/Naming_Service
CPPFLAGS += -I$(TAO_ROOT)/orbsvcs
-lex.CC_command.cpp: CC_command.l CC_command.tab.h
+lex.CC_command.cpp: CC_command.l CC_command.tab.h
@echo "WARNING: Potentially outdated lex.CC_command.cpp"
@echo " either touch(1) the file or explicitly"
@echo " generate it using:"
@@ -73,7 +79,7 @@ lex.CC_command.cpp.target:
patch < lex.CC_command.cpp.diff
$(RM) -f /tmp/$(USER).CC_L1 /tmp/$(USER).CC_L2
-CC_command.tab.cpp CC_command.tab.h: CC_command.y
+CC_command.tab.cpp CC_command.tab.h: CC_command.y
@echo "WARNING: Potentially outdated CC_command.tab.cpp"
@echo " either touch(1) the file or explicitly "
@echo " generate it using:"
@@ -95,9 +101,12 @@ CC_command.tab: CC_command.y
cp /tmp/$(USER).CC_YH CC_command.tab.h
$(RM) -f /tmp/$(USER).CC_Y /tmp/$(USER).CC_YH y.tab.c y.tab.h
-CC_client: $(addprefix $(VDIR),$(CC_CLT_OBJS))
+CC_client: $(addprefix $(VDIR),$(CC_CLT_OBJS))
$(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
+#----------------------------------------------------------------------------
+# Dependencies
+#----------------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- g++dep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.