summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Security/Send_File/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Security/Send_File/Makefile')
-rw-r--r--TAO/orbsvcs/examples/Security/Send_File/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/TAO/orbsvcs/examples/Security/Send_File/Makefile b/TAO/orbsvcs/examples/Security/Send_File/Makefile
index 8cede8e2c17..a91b7c3fb30 100644
--- a/TAO/orbsvcs/examples/Security/Send_File/Makefile
+++ b/TAO/orbsvcs/examples/Security/Send_File/Makefile
@@ -19,7 +19,7 @@ IDL_SRC = \
$(addsuffix S.cpp, $(IDL_FILES)) \
$(addsuffix C.cpp, $(IDL_FILES))
-BIN = client server
+BIN_UNCHECKED = client server
SRC = $(addsuffix .cpp, $(BIN) $(IDLFILES) test_i) $(IDL_SRC)
@@ -35,6 +35,14 @@ TAO_IDLFLAGS += -Ge 1
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(TAO_ROOT)/rules.tao.GNU
+
+#### If the TAO orbsvcs library wasn't built with sufficient components,
+#### don't try to build here.
+TAO_ORBSVCS := $(shell sh $(ACE_ROOT)/bin/ace_components --orbsvcs)
+ifeq (Security, $(findstring Security, $(TAO_ORBSVCS)))
+ BIN = $(BIN_UNCHECKED)
+endif # Security
+
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU