]> git.saurik.com Git - wxWidgets.git/blame - src/makeb32.env
Found bug that skrewed up display wrt horizontal
[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
b14391d1
JS
6WXLIBDIR2 = $(WXDIR)\contrib\lib
7WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc
34138703 8WIN95FLAG = -D__WIN95__ -D__WINDOWS__
2bda0e17 9
a6e2b3a8
VZ
10# This should be changed to tlink32 if ilink32 is not available
11# Available on C++ 5.02 and above
12LINK=ilink32
c3b177ae 13
2bda0e17
KB
14!ifndef FINAL
15FINAL=0
16!endif
17
2bda0e17
KB
18!if "$(FINAL)" == "0"
19OPT = -Od
b2aef89b 20DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
2bda0e17
KB
21!else
22OPT = -O2
40e1a9c0 23DEBUG_FLAGS = -DUSE_DEFINE
2bda0e17 24!endif
2bda0e17 25
c740f496
GL
26!ifndef DLL
27DLL=0
28!endif
29
30# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
31# wxWin DLL 1 0 1
32# wxWin STATIC 0 0 0
33# App use wxWin DLL 0 1 0
34# DLL use wxWin DLL 0 1 1
35# DLL use wxWin STATIC 0 0 1
36#
37
38!if "$(WXMAKINGDLL)" == "1"
39DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL
40WXLIB= $(WXLIBDIR)\wx200.lib
41
42!else
43
44LINK_FLAGS= /Tpe /ap /c
45
46!if "$(WXUSINGDLL)" == "1"
47DLL_FLAGS= -DWXUSINGDLL=1
48WXLIB= $(WXLIBDIR)\wx200.lib
49!else
50DLL_FLAGS=
51WXLIB= $(WXLIBDIR)\wx32.lib
52!endif
53
54!endif
55
56!if "$(WXBUILDDLL)" == "1"
57DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL
dbda9e86 58LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
c740f496
GL
59!endif
60
dbda9e86 61CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
c740f496 62
2bda0e17
KB
63DUMMY=dummy
64
65SRCSUFF = cpp
66OBJSUFF = obj
67
c09f2879
VZ
68WAITFLAG = /w
69
2bda0e17
KB
70.$(SRCSUFF).obj:
71 bcc32 $(CPPFLAGS) -c {$< }
72
73.c.obj:
74 bcc32 $(CPPFLAGS) -P- -c {$< }