]> git.saurik.com Git - wxWidgets.git/blame - src/makeb32.env
OGL: misc.cpp clashes with misc.c frim iODBC, therefore
[wxWidgets.git] / src / makeb32.env
CommitLineData
2bda0e17
KB
1# Common settings for Borland 32-bit compilation (makefile.b32 files)
2
3WXDIR = $(WXWIN)
4CFG = $(WXDIR)\src\msw\wxwin32.cfg
5WXLIBDIR = $(WXDIR)\lib
a46dafc8 6WXINC = $(WXDIR)\include;$(WXDIR)\src\iodbc
34138703 7WIN95FLAG = -D__WIN95__ -D__WINDOWS__
2bda0e17 8
c3b177ae
JS
9# This should be changed to ilink32 for C++Builder 4 and above
10LINK=tlink32
11
2bda0e17
KB
12!ifndef FINAL
13FINAL=0
14!endif
15
2bda0e17
KB
16!if "$(FINAL)" == "0"
17OPT = -Od
b2aef89b 18DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
2bda0e17
KB
19!else
20OPT = -O2
40e1a9c0 21DEBUG_FLAGS = -DUSE_DEFINE
2bda0e17 22!endif
2bda0e17 23
c740f496
GL
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
dbda9e86 56LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
c740f496
GL
57!endif
58
dbda9e86 59CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
c740f496 60
2bda0e17
KB
61DUMMY=dummy
62
63SRCSUFF = cpp
64OBJSUFF = obj
65
c09f2879
VZ
66WAITFLAG = /w
67
2bda0e17
KB
68.$(SRCSUFF).obj:
69 bcc32 $(CPPFLAGS) -c {$< }
70
71.c.obj:
72 bcc32 $(CPPFLAGS) -P- -c {$< }