~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cpp/src/Glacier2Lib/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# **********************************************************************
 
2
#
 
3
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
4
#
 
5
# This copy of Ice is licensed to you under the terms described in the
 
6
# ICE_LICENSE file included in this distribution.
 
7
#
 
8
# **********************************************************************
 
9
 
 
10
top_srcdir      = ../..
 
11
 
 
12
LIBFILENAME     = $(call mklibfilename,Glacier2,$(VERSION))
 
13
SONAME          = $(call mksoname,Glacier2,$(SOVERSION))  
 
14
LIBNAME         = $(call mklibname,Glacier2)
 
15
 
 
16
 
 
17
TARGETS         = $(call mklibtargets,$(libdir)/$(LIBFILENAME),$(libdir)/$(SONAME),$(libdir)/$(LIBNAME))
 
18
 
 
19
OBJS            = PermissionsVerifier.o \
 
20
                  Router.o \
 
21
                  SSLInfo.o \
 
22
                  Session.o \
 
23
                  Application.o
 
24
 
 
25
SRCS            = $(OBJS:.o=.cpp)
 
26
 
 
27
SLICE_SRCS      = $(SDIR)/PermissionsVerifierF.ice \
 
28
                  $(SDIR)/PermissionsVerifier.ice \
 
29
                  $(SDIR)/Router.ice \
 
30
                  $(SDIR)/RouterF.ice \
 
31
                  $(SDIR)/Session.ice \
 
32
                  $(SDIR)/SSLInfo.ice
 
33
 
 
34
HDIR            = $(headerdir)/Glacier2
 
35
SDIR            = $(slicedir)/Glacier2
 
36
 
 
37
include $(top_srcdir)/config/Make.rules
 
38
 
 
39
CPPFLAGS        := -I.. $(CPPFLAGS) $(OPENSSL_FLAGS)
 
40
SLICE2CPPFLAGS  := --include-dir Glacier2 --dll-export GLACIER2_API $(SLICE2CPPFLAGS)
 
41
LINKWITH        := $(BZIP2_RPATH_LINK) -lIce -lIceUtil
 
42
 
 
43
$(libdir)/$(LIBFILENAME): $(OBJS) $(HDIR)/PermissionsVerifierF.h $(HDIR)/RouterF.h
 
44
        rm -f $@
 
45
        $(call mkshlib,$@,$(SONAME),$(OBJS),$(LINKWITH))
 
46
 
 
47
$(libdir)/$(SONAME): $(libdir)/$(LIBFILENAME)
 
48
        rm -f $@
 
49
        ln -s $(LIBFILENAME) $@
 
50
 
 
51
$(libdir)/$(LIBNAME): $(libdir)/$(SONAME)
 
52
        rm -f $@
 
53
        ln -s $(SONAME) $@
 
54
 
 
55
install:: all
 
56
        $(call installlib,$(install_libdir),$(libdir),$(LIBFILENAME),$(SONAME),$(LIBNAME))
 
57
 
 
58
include .depend