]> git.saurik.com Git - wxWidgets.git/blob - src/makeb32.env
added conversion to mac native filenames from local filesystem handler
[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 # Using a config file isn't compatible across all BC++ versions
10 # LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
11 WXLIBDIR = $(WXDIR)\lib
12 WXLIBDIR2 = $(WXDIR)\contrib\lib
13 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
14 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
15 RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
16
17 # This should be changed to tlink32 if ilink32 is not available.
18 # Ilink32 is available on BC++ 5.02 and above, and all
19 # versions of C++ Builder.
20 !ifndef LINK
21 LINK=ilink32
22 #LINK=tlink32
23 !endif
24
25 !ifndef FINAL
26 FINAL=0
27 !endif
28
29 !if "$(FINAL)" == "0"
30 OPT = -Od
31 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
32 !else
33 OPT = -O2
34 DEBUG_FLAGS = -DUSE_DEFINE
35 !endif
36
37 !ifndef DLL
38 DLL=0
39 !endif
40
41 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
42 # wxWin DLL 1 0 1
43 # wxWin STATIC 0 0 0
44 # App use wxWin DLL 0 1 0
45 # DLL use wxWin DLL 0 1 1
46 # DLL use wxWin STATIC 0 0 1
47 #
48
49 !if "$(WXMAKINGDLL)" == "1"
50 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
51 WXLIB= $(WXLIBDIR)\wx232.lib
52
53 !else
54
55 LINK_FLAGS= /aa /c
56
57 !if "$(WXUSINGDLL)" == "1"
58 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
59 WXLIB= $(WXLIBDIR)\wx232.lib
60 !else
61 DLL_FLAGS=
62 WXLIB= $(WXLIBDIR)\wx32.lib
63 !endif
64
65 !endif
66
67 !if "$(WXBUILDDLL)" == "1"
68 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
69 !endif
70
71 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
72
73 DUMMY=dummy
74
75 SRCSUFF = cpp
76 OBJSUFF = obj
77
78 WAITFLAG = /w
79
80 .$(SRCSUFF).obj:
81 bcc32 $(CPPFLAGS) -c {$< }
82
83 .c.obj:
84 bcc32 $(CPPFLAGS) -P- -c {$< }