]> git.saurik.com Git - wxWidgets.git/blob - src/makeb32.env
Added many WXUNUSED, untabified once again.
[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 tlink32 if ilink32 is not available
11 # Available on C++ 5.02 and above
12 LINK=ilink32
13
14 !ifndef FINAL
15 FINAL=0
16 !endif
17
18 !if "$(FINAL)" == "0"
19 OPT = -Od
20 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
21 !else
22 OPT = -O2
23 DEBUG_FLAGS = -DUSE_DEFINE
24 !endif
25
26 !ifndef DLL
27 DLL=0
28 !endif
29
30 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
31 # wxWin DLL 1 0 1
32 # wxWin STATIC 0 0 0
33 # App use wxWin DLL 0 1 0
34 # DLL use wxWin DLL 0 1 1
35 # DLL use wxWin STATIC 0 0 1
36 #
37
38 !if "$(WXMAKINGDLL)" == "1"
39 DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL
40 WXLIB= $(WXLIBDIR)\wx200.lib
41
42 !else
43
44 LINK_FLAGS= /Tpe /ap /c
45
46 !if "$(WXUSINGDLL)" == "1"
47 DLL_FLAGS= -DWXUSINGDLL=1
48 WXLIB= $(WXLIBDIR)\wx200.lib
49 !else
50 DLL_FLAGS=
51 WXLIB= $(WXLIBDIR)\wx32.lib
52 !endif
53
54 !endif
55
56 !if "$(WXBUILDDLL)" == "1"
57 DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL
58 LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
59 !endif
60
61 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
62
63 DUMMY=dummy
64
65 SRCSUFF = cpp
66 OBJSUFF = obj
67
68 WAITFLAG = /w
69
70 .$(SRCSUFF).obj:
71 bcc32 $(CPPFLAGS) -c {$< }
72
73 .c.obj:
74 bcc32 $(CPPFLAGS) -P- -c {$< }