]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeb32.env
1. added range checks in wxGridStringTable
[wxWidgets.git] / src / makeb32.env
... / ...
CommitLineData
1# Common settings for Borland 32-bit compilation (makefile.b32 files)
2
3WXDIR = $(WXWIN)
4CFG = $(WXDIR)\src\msw\wxwin32.cfg
5WXLIBDIR = $(WXDIR)\lib
6WXINC = $(WXDIR)\include;$(WXDIR)\src\iodbc
7WIN95FLAG = -D__WIN95__ -D__WINDOWS__
8
9# This should be changed to ilink32 for C++Builder 4 and above
10LINK=tlink32
11
12!ifndef FINAL
13FINAL=0
14!endif
15
16!if "$(FINAL)" == "0"
17OPT = -Od
18DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
19!else
20OPT = -O2
21DEBUG_FLAGS = -DUSE_DEFINE
22!endif
23
24!ifndef DLL
25DLL=0
26!endif
27
28# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
29# wxWin DLL 1 0 1
30# wxWin STATIC 0 0 0
31# App use wxWin DLL 0 1 0
32# DLL use wxWin DLL 0 1 1
33# DLL use wxWin STATIC 0 0 1
34#
35
36!if "$(WXMAKINGDLL)" == "1"
37DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL
38WXLIB= $(WXLIBDIR)\wx200.lib
39
40!else
41
42LINK_FLAGS= /Tpe /ap /c
43
44!if "$(WXUSINGDLL)" == "1"
45DLL_FLAGS= -DWXUSINGDLL=1
46WXLIB= $(WXLIBDIR)\wx200.lib
47!else
48DLL_FLAGS=
49WXLIB= $(WXLIBDIR)\wx32.lib
50!endif
51
52!endif
53
54!if "$(WXBUILDDLL)" == "1"
55DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL
56LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
57!endif
58
59CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
60
61DUMMY=dummy
62
63SRCSUFF = cpp
64OBJSUFF = obj
65
66WAITFLAG = /w
67
68.$(SRCSUFF).obj:
69 bcc32 $(CPPFLAGS) -c {$< }
70
71.c.obj:
72 bcc32 $(CPPFLAGS) -P- -c {$< }