1 # Common settings for Borland 32-bit compilation (makefile.b32 files)
8 CFG = $(WXDIR)\src\msw\wxwin32.cfg
10 ARCHINCDIR=$(WXDIR)\lib\msw
11 ARCHSETUPH=$(ARCHINCDIR)\wx\setup.h
13 # Using a config file isn't compatible across all BC++ versions
14 # LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
15 WXLIBDIR = $(WXDIR)\lib
16 WXLIBDIR2 = $(WXDIR)\contrib\lib
17 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex;
18 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
19 RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
21 # This should be changed to tlink32 if ilink32 is not available.
22 # Ilink32 is available on BC++ 5.02 and above, and all
23 # versions of C++ Builder.
35 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
38 DEBUG_FLAGS = -DUSE_DEFINE
45 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
48 # App use wxWin DLL 0 1 0
49 # DLL use wxWin DLL 0 1 1
50 # DLL use wxWin STATIC 0 0 1
53 !if "$(WXMAKINGDLL)" == "1"
54 DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
55 WXLIB= $(WXLIBDIR)\wx233.lib
61 !if "$(WXUSINGDLL)" == "1"
62 DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
63 WXLIB= $(WXLIBDIR)\wx233.lib
66 WXLIB= $(WXLIBDIR)\wx32.lib
71 !if "$(WXBUILDDLL)" == "1"
72 LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
75 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
85 bcc32 $(CPPFLAGS) -c {$< }
88 bcc32 $(CPPFLAGS) -P- -c {$< }