1 # Common settings for Borland 32-bit compilation (makefile.b32 files)
4 CFG = $(WXDIR)\src\msw\wxwin32.cfg
5 # Using a config file isn't compatible across all BC++ versions
6 # LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
7 WXLIBDIR = $(WXDIR)\lib
8 WXLIBDIR2 = $(WXDIR)\contrib\lib
9 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;
10 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
11 RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
13 # This should be changed to tlink32 if ilink32 is not available.
14 # Ilink32 is available on BC++ 5.02 and above, and all
15 # versions of C++ Builder.
27 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
30 DEBUG_FLAGS = -DUSE_DEFINE
37 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
40 # App use wxWin DLL 0 1 0
41 # DLL use wxWin DLL 0 1 1
42 # DLL use wxWin STATIC 0 0 1
45 !if "$(WXMAKINGDLL)" == "1"
46 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
47 WXLIB= $(WXLIBDIR)\wx232.lib
53 !if "$(WXUSINGDLL)" == "1"
54 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
55 WXLIB= $(WXLIBDIR)\wx232.lib
58 WXLIB= $(WXLIBDIR)\wx32.lib
63 !if "$(WXBUILDDLL)" == "1"
64 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
67 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
77 bcc32 $(CPPFLAGS) -c {$< }
80 bcc32 $(CPPFLAGS) -P- -c {$< }