1 # Common settings for Borland 32-bit compilation (makefile.b32 files)
8 CFG = $(WXDIR)\src\msw\wxw32
12 !if "$(BCCDIR)" == "\.."
13 !error Your Borland compiler does not define MAKEDIR. Pleasedefine the BCCDIR variable in makeb32.env line 10, e.g. BCCDIR=d:\bc4
16 ARCHINCDIR=$(WXDIR)\lib\msw
17 ARCHSETUPH=$(ARCHINCDIR)\wx\setup.h
18 #see below for SETUPSRCDIR
21 # Using a config file isn't compatible across all BC++ versions
22 # LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
23 WXLIBDIR = $(WXDIR)\lib
24 WXLIBDIR2 = $(WXDIR)\contrib\lib
25 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
26 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
27 RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
29 # This should be changed to tlink32 if ilink32 is not available.
30 # Ilink32 is available on BC++ 5.02 and above, and all
31 # versions of C++ Builder.
47 DEBUG_FLAGS = -DUSE_DEFINE
51 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
55 # allow to use debugger but no wxDebugging functions
56 !if "$(FINAL)" == "hybrid"
66 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
69 # App use wxWin DLL 0 1 0
70 # DLL use wxWin DLL 0 1 1
71 # DLL use wxWin STATIC 0 0 1
74 # Determine the library name depending on the options, to allow
75 # multiple versions to coexist.
76 # Note that the clean target will only delete the appropriate .lib for the current
77 # options and all the obj files, and note that you must delete the obj files if you
78 # change the options so that they are compiled using the correct ones.
80 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
86 ## Use this if you want to use the UNIV controls set rather than the native ones
87 ## make -f makefile.b32 WXUSINGUNIV=1
88 !if "$(WXUSINGUNIV)" == "1"
91 WXLIBNAME=$(WXLIBNAME)v
92 ARCHINCDIR=$(ARCHINCDIR)v
93 SETUPSRCDIR=$(WXDIR)\include\wx\univ
98 SETUPSRCDIR=$(WXDIR)\include\wx\msw
101 #not sure what to do with unicode builds - we need to define something ?
102 #!if "$(UNICODE)" == "1"
103 #WXLIBNAME=$(WXLIBNAME)u
107 #a hybrid , does not set __WXDEBUG__ but sets -v (see above)
108 !if "$(FINAL)" == "hybrid"
109 WXLIBNAME=$(WXLIBNAME)h
113 !if "$(FINAL)" == "0"
114 WXLIBNAME=$(WXLIBNAME)d
118 !if "$(wxUSE_GUI)" == "0"
119 WXLIBNAME=$(WXLIBNAME)b
121 CPPFLAGS=-DwxUSE_GUI=0
124 !if "$(WXMAKINGDLL)" != "1" && "$(WXUSINGDLL)" != "1"
125 WXLIBNAME=$(WXLIBNAME)s
128 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
133 WXLIBDIR=$(WXDIR)\lib
136 WXLIB=$(WXLIBDIR)\$(WXLIBNAME).lib
137 WXDLL=$(WXLIBDIR)\$(WXLIBNAME).dll
139 !if "$(WXMAKINGDLL)" == "1"
140 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
143 !if "$(WXUSINGDLL)" == "1"
144 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
151 !if "$(WXBUILDDLL)" == "1"
152 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
156 CPPFLAGS=$(CPPFLAGS) $(DLL_FLAGS) @$(CFG) $(EXTRACPPFLAGS)
166 bcc32 $(CPPFLAGS) -c {$< }
169 bcc32 $(CPPFLAGS) -P- -c {$< }