1 # Common settings for Borland 32-bit compilation (makefile.b32 files)
10 MAKEFLAGS=FINAL=$(FINAL) WXUSINGDLL=$(WXUSINGDLL) OUTPUTDIR=$(OUTPUTDIR) EXEDIR=$(EXEDIR)
16 OBJ_PATH=$(WXDIR)\BORL
17 OUTPUTDIR=$(WXDIR)\BORL
26 !if "$(BCCDIR)" == "\.."
27 !error Your Borland compiler does not define MAKEDIR. Pleasedefine the BCCDIR variable in makeb32.env line 10, e.g. BCCDIR=d:\bc4
30 ARCHINCDIR=$(WXDIR)\lib\$(BORLAND_SUFFIX)
31 ARCHSETUPH=$(ARCHINCDIR)\wx\setup.h
32 #see below for SETUPSRCDIR
35 WXLIBDIR = $(WXDIR)\lib
38 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
39 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
40 RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
42 # This should be changed to tlink32 if ilink32 is not available.
43 # Ilink32 is available on BC++ 5.02 and above, and all
44 # versions of C++ Builder.
60 DEBUG_FLAGS = -DUSE_DEFINE
64 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
68 # allow to use debugger but no wxDebugging functions
69 !if "$(FINAL)" == "hybrid"
82 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
85 # App use wxWin DLL 0 1 0
86 # DLL use wxWin DLL 0 1 1
87 # DLL use wxWin STATIC 0 0 1
90 # Determine the library name depending on the options, to allow
91 # multiple versions to coexist.
92 # Note that the clean target will only delete the appropriate .lib for the current
93 # options and all the obj files, and note that you must delete the obj files if you
94 # change the options so that they are compiled using the correct ones.
99 ## Use this if you want to use the UNIV controls set rather than the native ones
100 ## make -f makefile.b32 WXUSINGUNIV=1
101 !if "$(WXUSINGUNIV)" == "1"
103 BORLAND_SUFFIX=$(BORLAND_SUFFIX)v
104 ARCHINCDIR=$(ARCHINCDIR)v
105 SETUPSRCDIR=$(WXDIR)\include\wx\univ
110 SETUPSRCDIR=$(WXDIR)\include\wx\msw
113 #unicode builds handled inside setup.h
115 #a hybrid , does not set __WXDEBUG__ but sets -v (see above)
116 !if "$(FINAL)" == "hybrid"
117 DEBUG_SUFFIX=$(DEBUG_SUFFIX)h
120 !if "$(FINAL)" == "0"
121 DEBUG_SUFFIX=$(DEBUG_SUFFIX)d
124 !if "$(wxUSE_GUI)" == "0"
125 BORLAND_SUFFIX=$(BORLAND_SUFFIX)b
126 CPPFLAGS=-DwxUSE_GUI=0
129 !if "$(WXMAKINGDLL)" != "1" && "$(WXUSINGDLL)" != "1"
130 BORLAND_SUFFIX=$(BORLAND_SUFFIX)s
133 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
137 # final names determined here
138 WXLIB=$(WXLIBDIR)\$(WXLIBNAME)_$(BORLAND_SUFFIX)$(DEBUG_SUFFIX).lib
139 WXDLL=$(WXLIBDIR)\$(WXLIBNAME)_$(BORLAND_SUFFIX)$(DEBUG_SUFFIX).dll
140 LIBTARGET=$(WXLIBDIR)\$(LIBTARGET)_$(DEBUG_SUFFIX).lib
141 OBJ_PATH=$(OBJ_PATH)_$(BORLAND_SUFFIX)$(DEBUG_SUFFIX)
143 !if "$(WXMAKINGDLL)" == "1"
144 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
147 !if "$(WXUSINGDLL)" == "1"
148 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
155 !if "$(WXBUILDDLL)" == "1"
156 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
159 CFG=$(OBJ_PATH)\$(CFG).cfg
160 CPPFLAGS=$(CPPFLAGS) $(DLL_FLAGS) @$(CFG) $(EXTRACPPFLAGS)
170 bcc32 $(CPPFLAGS) -c -n$(OBJ_PATH) {$< }
173 bcc32 $(CPPFLAGS) -P- -c -n$(OBJ_PATH) {$< }