ICE 3.4.2
[php5-ice-freebsdport.git] / cpp / src / IceSSL / Makefile
bloba840b4e62066a84261f84d66b9113fc40153cb38
2 # **********************************************************************
4 # Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
6 # This copy of Ice is licensed to you under the terms described in the
7 # ICE_LICENSE file included in this distribution.
9 # **********************************************************************
11 top_srcdir = ../..
13 LIBFILENAME = $(call mklibfilename,IceSSL,$(VERSION))
14 SONAME = $(call mksoname,IceSSL,$(SOVERSION))
15 LIBNAME = $(call mklibname,IceSSL)
17 TARGETS = $(call mklibtargets,$(libdir)/$(LIBFILENAME),$(libdir)/$(SONAME),$(libdir)/$(LIBNAME))
19 OBJS = AcceptorI.o \
20 Certificate.o \
21 ConnectorI.o \
22 EndpointInfo.o \
23 ConnectionInfo.o \
24 EndpointI.o \
25 Instance.o \
26 PluginI.o \
27 TransceiverI.o \
28 Util.o \
29 RFC2253.o \
30 TrustManager.o
32 SRCS = $(OBJS:.o=.cpp)
34 SLICE_SRCS = $(SDIR)/EndpointInfo.ice \
35 $(SDIR)/ConnectionInfo.ice
37 HDIR = $(headerdir)/IceSSL
38 SDIR = $(slicedir)/IceSSL
40 include $(top_srcdir)/config/Make.rules
42 CPPFLAGS := -I.. $(CPPFLAGS) -DICE_SSL_API_EXPORTS $(OPENSSL_FLAGS)
43 SLICE2CPPFLAGS := --ice --include-dir IceSSL --dll-export ICE_SSL_API $(SLICE2CPPFLAGS)
45 LINKWITH := $(BZIP2_RPATH_LINK) -lIce -lIceUtil $(OPENSSL_LIBS) $(CXXLIBS)
47 $(libdir)/$(LIBFILENAME): $(OBJS)
48 rm -f $@
49 $(call mkshlib,$@,$(SONAME),$(OBJS),$(LINKWITH))
51 $(libdir)/$(SONAME): $(libdir)/$(LIBFILENAME)
52 rm -f $@
53 ln -s $(LIBFILENAME) $@
55 $(libdir)/$(LIBNAME): $(libdir)/$(SONAME)
56 rm -f $@
57 ln -s $(SONAME) $@
59 install:: all
60 $(call installlib,$(install_libdir),$(libdir),$(LIBFILENAME),$(SONAME),$(LIBNAME))
62 include .depend