]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeb32.env
Merged some STC fixes over to the main branch
[wxWidgets.git] / src / makeb32.env
... / ...
CommitLineData
1# Common settings for Borland 32-bit compilation (makefile.b32 files)
2
3WXDIR = $(WXWIN)
4CFG = $(WXDIR)\src\msw\wxwin32.cfg
5# Using a config file isn't compatible across all BC++ versions
6# LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
7WXLIBDIR = $(WXDIR)\lib
8WXLIBDIR2 = $(WXDIR)\contrib\lib
9WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc
10WIN95FLAG = -D__WIN95__ -D__WINDOWS__
11
12# This should be changed to tlink32 if ilink32 is not available.
13# Ilink32 is available on BC++ 5.02 and above, and all
14# versions of C++ Builder.
15!ifndef LINK
16LINK=ilink32
17#LINK=tlink32
18!endif
19
20!ifndef FINAL
21FINAL=0
22!endif
23
24!if "$(FINAL)" == "0"
25OPT = -Od
26DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
27!else
28OPT = -O2
29DEBUG_FLAGS = -DUSE_DEFINE
30!endif
31
32!ifndef DLL
33DLL=0
34!endif
35
36# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
37# wxWin DLL 1 0 1
38# wxWin STATIC 0 0 0
39# App use wxWin DLL 0 1 0
40# DLL use wxWin DLL 0 1 1
41# DLL use wxWin STATIC 0 0 1
42#
43
44!if "$(WXMAKINGDLL)" == "1"
45DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
46WXLIB= $(WXLIBDIR)\wx220.lib
47
48!else
49
50LINK_FLAGS= /aa /c
51
52!if "$(WXUSINGDLL)" == "1"
53DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
54WXLIB= $(WXLIBDIR)\wx220.lib
55!else
56DLL_FLAGS=
57WXLIB= $(WXLIBDIR)\wx32.lib
58!endif
59
60!endif
61
62!if "$(WXBUILDDLL)" == "1"
63LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
64!endif
65
66CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
67
68DUMMY=dummy
69
70SRCSUFF = cpp
71OBJSUFF = obj
72
73WAITFLAG = /w
74
75.$(SRCSUFF).obj:
76 bcc32 $(CPPFLAGS) -c {$< }
77
78.c.obj:
79 bcc32 $(CPPFLAGS) -P- -c {$< }