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

« back to all changes in this revision

Viewing changes to src/Glacier2/Makefile.mak

  • Committer: Bazaar Package Importer
  • Author(s): Francisco Moya
  • Date: 2008-02-12 16:28:20 UTC
  • mfrom: (4.1.5 hardy)
  • Revision ID: james.westby@ubuntu.com-20080212162820-x3e046s7nmabeswv
Tags: 3.2.1-8
Added -g to global compilation flags (Closes: #465074).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# **********************************************************************
2
2
#
3
 
# Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
 
3
# Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
4
4
#
5
5
# This copy of Ice is licensed to you under the terms described in the
6
6
# ICE_LICENSE file included in this distribution.
52
52
 
53
53
!ifdef BUILD_UTILS
54
54
 
55
 
CPPFLAGS        = -I.. $(CPPFLAGS)
 
55
CPPFLAGS        = -I.. $(CPPFLAGS) -DWIN32_LEAN_AND_MEAN
56
56
LINKWITH        = $(LIBS) $(OPENSSL_LIBS) glacier2$(LIBSUFFIX).lib icessl$(LIBSUFFIX).lib
 
57
!if "$(CPP_COMPILER)" != "BCC2006"
 
58
LINKWITH        = $(LINKWITH) ws2_32.lib
 
59
!endif
57
60
 
58
61
!else
59
62
 
61
64
 
62
65
!endif
63
66
 
 
67
!if "$(CPP_COMPILER)" != "BCC2006" && "$(OPTIMIZE)" != "yes"
 
68
PDBFLAGS        = /pdb:$(DLLNAME:.dll=.pdb)
 
69
RPDBFLAGS       = /pdb:$(ROUTER:.exe=.pdb)
 
70
!endif
 
71
 
64
72
SLICE2CPPFLAGS  = --include-dir Glacier2 --dll-export GLACIER2_API $(SLICE2CPPFLAGS)
65
73
 
66
74
$(LIBNAME): $(DLLNAME)
67
75
 
68
76
$(DLLNAME): $(OBJS)
69
 
        del /q $@
70
 
        $(LINK) $(LD_DLLFLAGS) $(OBJS), $(DLLNAME),, $(LIBS)
 
77
        $(LINK) $(LD_DLLFLAGS) $(PDBFLAGS) $(OBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS)
71
78
        move $(DLLNAME:.dll=.lib) $(LIBNAME)
 
79
        @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
 
80
            $(MT) -nologo -manifest $@.manifest -outputresource:$@;#2 && del /q $@.manifest
 
81
        @if exist $(DLLNAME:.dll=.exp) del /q $(DLLNAME:.dll=.exp)
72
82
 
73
83
$(ROUTER): $(ROBJS)
74
 
        del /q $@
75
 
        $(LINK) $(LD_EXEFLAGS) $(ROBJS), $@,, $(LINKWITH)
 
84
        $(LINK) $(LD_EXEFLAGS) $(RPDBFLAGS) $(ROBJS) $(SETARGV) $(PREOUT)$@ $(PRELIBS)$(LINKWITH)
 
85
        @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
 
86
            $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
76
87
 
77
88
!ifdef BUILD_UTILS
78
89
 
84
95
        del /q SessionF.cpp $(HDIR)\SessionF.h
85
96
        del /q Session.cpp $(HDIR)\Session.h
86
97
        del /q SSLInfo.cpp $(HDIR)\SSLInfo.h
 
98
        del /q $(DLLNAME:.dll=.*)
 
99
        del /q $(ROUTER:.exe=.*)
87
100
 
88
101
install:: all
89
102
        copy $(LIBNAME) $(install_libdir)
90
103
        copy $(DLLNAME) $(install_bindir)
 
104
        copy $(ROUTER) $(install_bindir)
 
105
 
 
106
!if "$(OPTIMIZE)" != "yes"
 
107
 
 
108
!if "$(CPP_COMPILER)" == "BCC2006"
 
109
 
 
110
install:: all
91
111
        copy $(DLLNAME:.dll=.tds) $(install_bindir)
92
 
        copy $(ROUTER) $(install_bindir)
 
112
        copy $(ROUTER:.exe=.tds) $(install_bindir)
 
113
 
 
114
!else
 
115
 
 
116
install:: all
 
117
        copy $(DLLNAME:.dll=.pdb) $(install_bindir)
 
118
        copy $(ROUTER:.exe=.pdb) $(install_bindir)
 
119
 
 
120
!endif
 
121
 
 
122
!endif
93
123
 
94
124
!else
95
125
 
96
126
install:: all
97
127
 
98
128
$(EVERYTHING)::
99
 
        $(MAKE) -nologo /f Makefile.mak BUILD_UTILS=1 $@ || exit 1
 
129
        $(MAKE) -nologo /f Makefile.mak BUILD_UTILS=1 $@
100
130
 
101
131
!endif
102
132