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