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