]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeb32.env
Compilation fixes for wxPython's wxWizard, added wxRegionFromPoints
[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
10BCCDIR=$(MAKEDIR)\..
11
12!if "$(BCCDIR)" == "\.."
13!error Your Borland compiler does not define MAKEDIR. Pleasedefine the BCCDIR variable in makeb32.env line 10, e.g. BCCDIR=d:\bc4
14!endif
15
16ARCHINCDIR=$(WXDIR)\lib\msw
17ARCHSETUPH=$(ARCHINCDIR)\wx\setup.h
18
19# Using a config file isn't compatible across all BC++ versions
20# LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
21WXLIBDIR = $(WXDIR)\lib
22WXLIBDIR2 = $(WXDIR)\contrib\lib
23WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
24WIN95FLAG = -D__WIN95__ -D__WINDOWS__
25RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
26
27# This should be changed to tlink32 if ilink32 is not available.
28# Ilink32 is available on BC++ 5.02 and above, and all
29# versions of C++ Builder.
30!ifndef LINK
31LINK=ilink32
32#LINK=tlink32
33!endif
34
35!ifndef FINAL
36FINAL=0
37!endif
38
39!if "$(FINAL)" == "0"
40OPT = -Od
41DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
42!else
43OPT = -O2
44DEBUG_FLAGS = -DUSE_DEFINE
45!endif
46
47!ifndef DLL
48DLL=0
49!endif
50
51# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
52# wxWin DLL 1 0 1
53# wxWin STATIC 0 0 0
54# App use wxWin DLL 0 1 0
55# DLL use wxWin DLL 0 1 1
56# DLL use wxWin STATIC 0 0 1
57#
58
59!if "$(WXMAKINGDLL)" == "1"
60DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
61WXLIB= $(WXLIBDIR)\wx233.lib
62
63!else
64
65LINK_FLAGS= /aa /c
66
67!if "$(WXUSINGDLL)" == "1"
68DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
69WXLIB= $(WXLIBDIR)\wx233.lib
70!else
71DLL_FLAGS=
72WXLIB= $(WXLIBDIR)\wx32.lib
73!endif
74
75!endif
76
77!if "$(WXBUILDDLL)" == "1"
78LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
79!endif
80
81CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
82
83DUMMY=dummy
84
85SRCSUFF = cpp
86OBJSUFF = obj
87
88WAITFLAG = /w
89
90.$(SRCSUFF).obj:
91 bcc32 $(CPPFLAGS) -c {$< }
92
93.c.obj:
94 bcc32 $(CPPFLAGS) -P- -c {$< }