]> git.saurik.com Git - wxWidgets.git/blob - src/makeb32.env
mingw32 compilation fixes
[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 WXINC = $(WXDIR)\include
7 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
8
9 !ifndef FINAL
10 FINAL=0
11 !endif
12
13 !if "$(FINAL)" == "0"
14 OPT = -Od
15 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
16 !else
17 OPT = -O2
18 DEBUG_FLAGS = -DUSE_DEFINE
19 !endif
20
21 !ifndef DLL
22 DLL=0
23 !endif
24
25 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
26 # wxWin DLL 1 0 1
27 # wxWin STATIC 0 0 0
28 # App use wxWin DLL 0 1 0
29 # DLL use wxWin DLL 0 1 1
30 # DLL use wxWin STATIC 0 0 1
31 #
32
33 !if "$(WXMAKINGDLL)" == "1"
34 DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL
35 WXLIB= $(WXLIBDIR)\wx200.lib
36
37 !else
38
39 LINK_FLAGS= /Tpe /ap /c
40
41 !if "$(WXUSINGDLL)" == "1"
42 DLL_FLAGS= -DWXUSINGDLL=1
43 WXLIB= $(WXLIBDIR)\wx200.lib
44 !else
45 DLL_FLAGS=
46 WXLIB= $(WXLIBDIR)\wx32.lib
47 !endif
48
49 !endif
50
51 !if "$(WXBUILDDLL)" == "1"
52 DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL
53 LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
54 !endif
55
56 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
57
58 DUMMY=dummy
59
60 SRCSUFF = cpp
61 OBJSUFF = obj
62
63 WAITFLAG = /w
64
65 .$(SRCSUFF).obj:
66 bcc32 $(CPPFLAGS) -c {$< }
67
68 .c.obj:
69 bcc32 $(CPPFLAGS) -P- -c {$< }