summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile')
-rw-r--r--TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile82
1 files changed, 82 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile b/TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile
new file mode 100644
index 00000000000..1fd9165f7f5
--- /dev/null
+++ b/TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile
@@ -0,0 +1,82 @@
+#----------------------------------------------------------------------------
+#
+# $Id$
+#
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+# Local macros
+#----------------------------------------------------------------------------
+
+ifndef TAO_ROOT
+ TAO_ROOT = $(ACE_ROOT)/TAO
+endif # ! TAO_ROOT
+
+IDL_FILES += \
+ SLevel1_Test
+
+IDL_SRC = \
+ $(addsuffix S.cpp, $(IDL_FILES)) \
+ $(addsuffix C.cpp, $(IDL_FILES))
+
+BIN_UNCHECKED = client server
+
+SRC = $(addsuffix .cpp, $(BIN) $(IDLFILES) SLevel1_Test_i) $(IDL_SRC)
+
+CLIENT_OBJS = client.o SLevel1_TestC.o SLevel1_TestS.o
+SERVER_OBJS = server.o SLevel1_Test_i.o SLevel1_TestC.o SLevel1_TestS.o
+
+TAO_IDLFLAGS += -Ge 1
+
+#----------------------------------------------------------------------------
+# Include macros and targets
+#----------------------------------------------------------------------------
+
+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.
+
+ifeq ($(ssl),1)
+ BIN = $(BIN_UNCHECKED)
+endif # ssl == 1
+
+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 $(TAO_ROOT)/taoconfig.mk
+
+# Depending on what the new library is called: that
+# should also be linked
+
+ifeq ($(static_libs_only),1)
+CLNT_LIBS += -lTAO_SSLIOP
+SRVR_LIBS += -lTAO_SSLIOP
+endif # static_libs_only = 1
+
+CLNT_LIBS += -lTAO_PortableServer $(TAO_CLNT_LIBS)
+SRVR_LIBS += -lTAO_PortableServer $(TAO_SRVR_LIBS)
+
+#----------------------------------------------------------------------------
+# Local targets
+#----------------------------------------------------------------------------
+
+# Extra dependencies not caught by make depend.
+
+.PRECIOUS: $(foreach file, $(IDL_FILES), $(foreach ext, $(IDL_EXT), $(file)$(ext))))
+
+realclean: clean
+ -$(RM) $(foreach file, $(IDL_FILES), $(foreach ext, $(IDL_EXT), $(file)$(ext)))
+
+server: $(addprefix $(VDIR),$(SERVER_OBJS))
+ $(LINK.cc) $(LDFLAGS) -o $@ $^ $(SRVR_LIBS) $(POSTLINK)
+
+client: $(addprefix $(VDIR),$(CLIENT_OBJS))
+ $(LINK.cc) $(LDFLAGS) -o $@ $^ $(CLNT_LIBS) $(POSTLINK)
+
+
+# DO NOT DELETE THIS LINE -- g++dep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY