1 # Common settings for Borland 32-bit compilation (makefile.b32 files)
8 CFG = $(WXDIR)\src\msw\wxwin32.cfg
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
19 # Using a config file isn't compatible across all BC++ versions
20 # LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
21 WXLIBDIR = $(WXDIR)\lib
22 WXLIBDIR2 = $(WXDIR)\contrib\lib
23 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
24 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
25 RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
27 # This should be changed to tlink32 if ilink32 is not available.
28 # Ilink32 is available on BC++ 5.02 and above, and all
29 # versions of C++ Builder.
41 DEBUG_FLAGS = -DUSE_DEFINE
45 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
53 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
56 # App use wxWin DLL 0 1 0
57 # DLL use wxWin DLL 0 1 1
58 # DLL use wxWin STATIC 0 0 1
61 # Determine the library name depending on the options, to allow
62 # multiple versions to coexist.
63 # Note that the clean target will only delete the appropriate .lib for the current
64 # options and all the obj files, and note that you must delete the obj files if you
65 # change the options so that they are compiled using the correct ones.
67 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
73 !if "$(UNICODE)" == "1"
74 WXLIBNAME=$(WXLIBNAME)u
78 WXLIBNAME=$(WXLIBNAME)$(FINAL)
79 !else if "$(FINAL)" == "hybrid"
80 WXLIBNAME=$(WXLIBNAME)h
82 guilibsdll= oldnames.lib kernel32.lib \
83 ws2_32.lib mswsock.lib advapi32.lib user32.lib \
84 gdi32.lib comdlg32.lib winspool.lib
85 WXLIBNAME=$(WXLIBNAME)d
88 !if "$(wxUSE_GUI)" == "0"
89 WXLIBNAME=$(WXLIBNAME)b
90 CPPFLAGS=-DwxUSE_GUI=0
93 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
101 WXLIB=$(WXLIBDIR)\$(WXLIBNAME).lib
102 WXDLL=$(WXLIBDIR)\$(WXLIBNAME).dll
104 !if "$(WXMAKINGDLL)" == "1"
105 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
108 !if "$(WXUSINGDLL)" == "1"
109 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
116 !if "$(WXBUILDDLL)" == "1"
117 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
120 CPPFLAGS=$(CPPFLAGS) $(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
130 bcc32 $(CPPFLAGS) -c {$< }
133 bcc32 $(CPPFLAGS) -P- -c {$< }