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