diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-17 02:57:02 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-17 02:57:02 +0000 |
commit | 0ae825a6649df32a334c667e8fd74bb5efab1f77 (patch) | |
tree | 7fbc662698080cb416c4e56b5613408eef39b9e8 /TAO/examples/Simple/bank/Makefile | |
parent | be21b6b66af6024db5e13603f57e2bc870284b8d (diff) | |
download | ATCD-0ae825a6649df32a334c667e8fd74bb5efab1f77.tar.gz |
only build if the orbsvcs library was built with the Naming TAO_ORBSVCS component
Diffstat (limited to 'TAO/examples/Simple/bank/Makefile')
-rw-r--r-- | TAO/examples/Simple/bank/Makefile | 67 |
1 files changed, 38 insertions, 29 deletions
diff --git a/TAO/examples/Simple/bank/Makefile b/TAO/examples/Simple/bank/Makefile index 302b79eae79..ac450f116d6 100644 --- a/TAO/examples/Simple/bank/Makefile +++ b/TAO/examples/Simple/bank/Makefile @@ -5,7 +5,7 @@ #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- -# Local macros +# Local macros #---------------------------------------------------------------------------- ifndef TAO_ROOT @@ -14,41 +14,46 @@ endif LDLIBS = -lorbsvcs -lTAO -IDL_SRC = BankC.cpp BankS.cpp +IDL_SRC = BankC.cpp BankS.cpp PROG_SRCS = \ - client.cpp \ - server.cpp \ - Account_i.cpp \ - AccountManager_i.cpp \ - Bank_Client_i.cpp\ - ../Simple_util.cpp - + client.cpp \ + server.cpp \ + Account_i.cpp \ + AccountManager_i.cpp \ + Bank_Client_i.cpp\ + ../Simple_util.cpp SRC = $(IDL_SRC) $(PROG_SRCS) SIMPLE_CLT_OBJS = \ - BankC.o \ - BankS.o \ - client.o \ - ../Simple_util.o \ - Bank_Client_i.o + BankC.o \ + BankS.o \ + client.o \ + ../Simple_util.o \ + Bank_Client_i.o SIMPLE_SVR_OBJS = \ - BankC.o \ - BankS.o \ - Account_i.o \ - AccountManager_i.o \ - ../Simple_util.o \ - server.o + BankC.o \ + BankS.o \ + Account_i.o \ + AccountManager_i.o \ + ../Simple_util.o \ + server.o -BIN = server \ - client -BUILD = $(BIN) VLDLIBS = $(LDLIBS:%=%$(VAR)) -VBIN = $(BIN:%=%$(VAR)) + +BIN2 = server \ + client + +#### 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 (Naming,$(findstring Naming,$(TAO_ORBSVCS))) + BIN = $(BIN2) +endif # Naming #---------------------------------------------------------------------------- -# Include macros and targets +# Include macros and targets #---------------------------------------------------------------------------- include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU @@ -60,7 +65,7 @@ include $(ACE_ROOT)/include/makeinclude/rules.local.GNU include $(TAO_ROOT)/taoconfig.mk #---------------------------------------------------------------------------- -# Local targets +# Local targets #---------------------------------------------------------------------------- @@ -71,14 +76,18 @@ CPPFLAGS += -I$(TAO_ROOT)/orbsvcs .PRECIOUS: BankS.cpp BankS.i BankS.h .PRECIOUS: BankS_T.cpp BankS_T.i BankS_T.h -server: $(addprefix $(VDIR),$(SIMPLE_SVR_OBJS)) +server: $(addprefix $(VDIR),$(SIMPLE_SVR_OBJS)) $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) -client: $(addprefix $(VDIR),$(SIMPLE_CLT_OBJS)) +client: $(addprefix $(VDIR),$(SIMPLE_CLT_OBJS)) $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) realclean: clean - -/bin/rm -rf BankC.* BankS.* BankS_T.* + -$(RM) BankC.* BankS.* BankS_T.* + +#---------------------------------------------------------------------------- +# Dependencies +#---------------------------------------------------------------------------- # DO NOT DELETE THIS LINE -- g++dep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |