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