]> git.saurik.com Git - wxWidgets.git/blame - src/makeb32.env
added test for writing empty value to the config
[wxWidgets.git] / src / makeb32.env
CommitLineData
2bda0e17
KB
1# Common settings for Borland 32-bit compilation (makefile.b32 files)
2
3WXDIR = $(WXWIN)
4CFG = $(WXDIR)\src\msw\wxwin32.cfg
b2cf617c
JS
5# Using a config file isn't compatible across all BC++ versions
6# LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
2bda0e17 7WXLIBDIR = $(WXDIR)\lib
b14391d1 8WXLIBDIR2 = $(WXDIR)\contrib\lib
0a36d7eb 9WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;
34138703 10WIN95FLAG = -D__WIN95__ -D__WINDOWS__
cbf65655 11RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src
2bda0e17 12
8e97b17b
VZ
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.
16!ifndef LINK
a6e2b3a8 17LINK=ilink32
b2cf617c 18#LINK=tlink32
8e97b17b 19!endif
c3b177ae 20
2bda0e17
KB
21!ifndef FINAL
22FINAL=0
23!endif
24
2bda0e17
KB
25!if "$(FINAL)" == "0"
26OPT = -Od
b2aef89b 27DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
2bda0e17
KB
28!else
29OPT = -O2
40e1a9c0 30DEBUG_FLAGS = -DUSE_DEFINE
2bda0e17 31!endif
2bda0e17 32
c740f496
GL
33!ifndef DLL
34DLL=0
35!endif
36
37# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
38# wxWin DLL 1 0 1
39# wxWin STATIC 0 0 0
40# App use wxWin DLL 0 1 0
41# DLL use wxWin DLL 0 1 1
42# DLL use wxWin STATIC 0 0 1
43#
44
45!if "$(WXMAKINGDLL)" == "1"
f6bcfd97 46DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL
9806a0e7 47WXLIB= $(WXLIBDIR)\wx232.lib
c740f496
GL
48
49!else
50
741f371c 51LINK_FLAGS= /aa /c
c740f496
GL
52
53!if "$(WXUSINGDLL)" == "1"
f6bcfd97 54DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL
9806a0e7 55WXLIB= $(WXLIBDIR)\wx232.lib
c740f496
GL
56!else
57DLL_FLAGS=
58WXLIB= $(WXLIBDIR)\wx32.lib
59!endif
60
61!endif
62
63!if "$(WXBUILDDLL)" == "1"
741f371c 64LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS)
c740f496
GL
65!endif
66
dbda9e86 67CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
c740f496 68
2bda0e17
KB
69DUMMY=dummy
70
71SRCSUFF = cpp
72OBJSUFF = obj
73
c09f2879
VZ
74WAITFLAG = /w
75
2bda0e17
KB
76.$(SRCSUFF).obj:
77 bcc32 $(CPPFLAGS) -c {$< }
78
79.c.obj:
80 bcc32 $(CPPFLAGS) -P- -c {$< }