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