]> git.saurik.com Git - wxWidgets.git/blame - src/makeb32.env
fixed uninitialized m_bPassMessages and wxLogChain::SetLog() which was completely...
[wxWidgets.git] / src / makeb32.env
CommitLineData
2bda0e17
KB
1# Common settings for Borland 32-bit compilation (makefile.b32 files)
2
3b50432a
GT
3!if "$(RM)" == ""
4RM= erase
5!endif
6
2bda0e17
KB
7WXDIR = $(WXWIN)
8CFG = $(WXDIR)\src\msw\wxwin32.cfg
4deae7a0
VZ
9
10ARCHINCDIR=$(WXDIR)\lib\msw
11ARCHSETUPH=$(ARCHINCDIR)\wx\setup.h
12
b2cf617c
JS
13# Using a config file isn't compatible across all BC++ versions
14# LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
2bda0e17 15WXLIBDIR = $(WXDIR)\lib
b14391d1 16WXLIBDIR2 = $(WXDIR)\contrib\lib
3b50432a 17WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
34138703 18WIN95FLAG = -D__WIN95__ -D__WINDOWS__
cbf65655 19RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
2bda0e17 20
8e97b17b
VZ
21# This should be changed to tlink32 if ilink32 is not available.
22# Ilink32 is available on BC++ 5.02 and above, and all
23# versions of C++ Builder.
24!ifndef LINK
a6e2b3a8 25LINK=ilink32
b2cf617c 26#LINK=tlink32
8e97b17b 27!endif
c3b177ae 28
2bda0e17
KB
29!ifndef FINAL
30FINAL=0
31!endif
32
2bda0e17
KB
33!if "$(FINAL)" == "0"
34OPT = -Od
b2aef89b 35DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
2bda0e17
KB
36!else
37OPT = -O2
40e1a9c0 38DEBUG_FLAGS = -DUSE_DEFINE
2bda0e17 39!endif
2bda0e17 40
c740f496
GL
41!ifndef DLL
42DLL=0
43!endif
44
45# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
46# wxWin DLL 1 0 1
47# wxWin STATIC 0 0 0
48# App use wxWin DLL 0 1 0
49# DLL use wxWin DLL 0 1 1
50# DLL use wxWin STATIC 0 0 1
51#
52
53!if "$(WXMAKINGDLL)" == "1"
f6bcfd97 54DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
9f24e0b5 55WXLIB= $(WXLIBDIR)\wx233.lib
c740f496
GL
56
57!else
58
741f371c 59LINK_FLAGS= /aa /c
c740f496
GL
60
61!if "$(WXUSINGDLL)" == "1"
f6bcfd97 62DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
9f24e0b5 63WXLIB= $(WXLIBDIR)\wx233.lib
c740f496
GL
64!else
65DLL_FLAGS=
66WXLIB= $(WXLIBDIR)\wx32.lib
67!endif
68
69!endif
70
71!if "$(WXBUILDDLL)" == "1"
741f371c 72LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
c740f496
GL
73!endif
74
dbda9e86 75CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
c740f496 76
2bda0e17
KB
77DUMMY=dummy
78
79SRCSUFF = cpp
80OBJSUFF = obj
81
c09f2879
VZ
82WAITFLAG = /w
83
2bda0e17
KB
84.$(SRCSUFF).obj:
85 bcc32 $(CPPFLAGS) -c {$< }
86
87.c.obj:
88 bcc32 $(CPPFLAGS) -P- -c {$< }