1 # Common settings for Borland 32-bit compilation (makefile.b32 files)
4 CFG = $(WXDIR)\src\msw\wxwin32.cfg
5 LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
6 WXLIBDIR = $(WXDIR)\lib
7 WXLIBDIR2 = $(WXDIR)\contrib\lib
8 WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc
9 WIN95FLAG = -D__WIN95__ -D__WINDOWS__
11 # This should be changed to tlink32 if ilink32 is not available.
12 # Ilink32 is available on BC++ 5.02 and above, and all
13 # versions of C++ Builder.
24 DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
27 DEBUG_FLAGS = -DUSE_DEFINE
34 # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
37 # App use wxWin DLL 0 1 0
38 # DLL use wxWin DLL 0 1 1
39 # DLL use wxWin STATIC 0 0 1
42 !if "$(WXMAKINGDLL)" == "1"
43 DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL
44 WXLIB= $(WXLIBDIR)\wx200.lib
48 LINK_FLAGS= /Tpe /ap /c
50 !if "$(WXUSINGDLL)" == "1"
51 DLL_FLAGS= -DWXUSINGDLL=1
52 WXLIB= $(WXLIBDIR)\wx200.lib
55 WXLIB= $(WXLIBDIR)\wx32.lib
60 !if "$(WXBUILDDLL)" == "1"
61 DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL
62 LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
65 CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
75 bcc32 $(CPPFLAGS) -c {$< }
78 bcc32 $(CPPFLAGS) -P- -c {$< }