diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Glacier2/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/cpp/src/Glacier2/Makefile b/cpp/src/Glacier2/Makefile new file mode 100644 index 00000000000..946a48ad45a --- /dev/null +++ b/cpp/src/Glacier2/Makefile @@ -0,0 +1,65 @@ +# ********************************************************************** +# +# Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +top_srcdir = ../.. + +LIBFILENAME = $(call mklibfilename,Glacier2,$(VERSION)) +SONAME = $(call mksoname,Glacier2,$(SOVERSION)) +LIBNAME = $(call mklibname,Glacier2) + +ROUTER = $(top_srcdir)/bin/glacier2router + +LIBTARGETS = $(call mklibtargets,$(libdir)/$(LIBFILENAME),$(libdir)/$(SONAME),$(libdir)/$(LIBNAME)) +TARGETS = $(LIBTARGETS) $(ROUTER) + +OBJS = Router.o + +ROBJS = Glacier2Router.o \ + ServantLocator.o \ + RouterI.o \ + Blobject.o \ + ClientBlobject.o \ + ServerBlobject.o \ + RequestQueue.o + +SRCS = $(OBJS:.o=.cpp) \ + $(ROBJS:.o=.cpp) + +SLICE_SRCS = $(SDIR)/Router.ice + +HDIR = $(includedir)/Glacier2 +SDIR = $(slicedir)/Glacier2 + +include $(top_srcdir)/config/Make.rules + +CPPFLAGS := -I.. $(CPPFLAGS) -DGLACIER2_API_EXPORTS +SLICE2CPPFLAGS := --checksum --include-dir Glacier2 --dll-export GLACIER2_API $(SLICE2CPPFLAGS) +LINKWITH := -lIce -lIceUtil + +$(libdir)/$(LIBFILENAME): $(OBJS) + rm -f $@ + $(call mkshlib,$@,$(SONAME),$(OBJS),$(LINKWITH)) + +$(libdir)/$(SONAME): $(libdir)/$(LIBFILENAME) + rm -f $@ + ln -s $(LIBFILENAME) $@ + +$(libdir)/$(LIBNAME): $(libdir)/$(SONAME) + rm -f $@ + ln -s $(SONAME) $@ + +$(ROUTER): $(ROBJS) $(LIBTARGETS) + rm -f $@ + $(CXX) $(LDFLAGS) -o $@ $(ROBJS) -lGlacier2 $(LIBS) $(OPENSSL_LIBS) $(EXPAT_LIBS) + +install:: all + $(call installlib,$(install_libdir),$(libdir),$(LIBFILENAME),$(SONAME),$(LIBNAME)) + $(INSTALL_PROGRAM) $(ROUTER) $(install_bindir) + +include .depend |