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= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
44 DEBUG_FLAGS = -DUSE_DEFINE
51 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
54 # App use wxWin DLL 0 1 0
55 # DLL use wxWin DLL 0 1 1
56 # DLL use wxWin STATIC 0 0 1
59 !if "$(WXMAKINGDLL)" == "1"
60 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
61 WXLIB= $(WXLIBDIR)\wx233.lib
67 !if "$(WXUSINGDLL)" == "1"
68 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
69 WXLIB= $(WXLIBDIR)\wx233.lib
72 WXLIB= $(WXLIBDIR)\wx32.lib
77 !if "$(WXBUILDDLL)" == "1"
78 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
81 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
91 bcc32 $(CPPFLAGS) -c {$< }
94 bcc32 $(CPPFLAGS) -P- -c {$< }