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