summaryrefslogtreecommitdiff
path: root/cpp/config/Make.rules.bcc
blob: 4e4771f9268dc772564dbbc889f58093be936b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# **********************************************************************
#
# Copyright (c) 2003-2007 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.
#
# **********************************************************************

#
# This file is included by Make.rules.mak when using Borland C++Builder.
#
# The following warnings are suppressed when building Ice:
#
# -w-par: W8057 - Parameter is never used
# -w-lvc: W8031 - Temporary used for parameter
# -w-rch: W8066 - Unreachable code
#
# Ice and Ice applications must be built with multi-threaded support (-tWM)
# and linked with the multi-threaded runtime library (cw32mti.lib).
#

CXX		= bcc32.exe
CC		= bcc32.exe
LINK 		= ilink32.exe

PREOUT		= ,
PRELIBS		= ,,

!if "$(THIRDPARTY_HOME)" != ""
CPPFLAGS        = -I"$(THIRDPARTY_HOME)\include"
LDFLAGS		= -L"$(THIRDPARTY_HOME)\lib"
!endif

CPPFLAGS	= $(CPPFLAGS) -q -w-par -w-lvc -w-rch -vi- -tWM -c -DNO_STRICT;_NO_VCL;_RTLDLL

!if "$(OPTIMIZE)" == "yes"
CPPFLAGS	= $(CPPFLAGS) -O2 -k- -DNDEBUG
!else
CPPFLAGS	= $(CPPFLAGS) -Od -v -k -D_DEBUG
!endif

LDFLAGS		= $(LDFLAGS) -L"$(libdir)" -L"$(BCB)\lib" -q -Gn -v -x

LD_DLLFLAGS	= $(LDFLAGS) -Gi -Tpd c0d32.obj
LD_EXEFLAGS	= $(LDFLAGS) -Tpe c0x32.obj

ICE_OS_LIBS     = cw32mti.lib import32.lib

BASELIBS	= iceutil$(LIBSUFFIX).lib $(ICE_OS_LIBS)
LIBS		= ice$(LIBSUFFIX).lib $(BASELIBS)

BZIP2_LIBS      = libbz2.lib
DB_LIBS         = libdb45.lib