]> git.saurik.com Git - wxWidgets.git/blame - src/makeb32.env
1. wxFTP works (somehow)
[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
8e97b17b 5LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
2bda0e17 6WXLIBDIR = $(WXDIR)\lib
b14391d1
JS
7WXLIBDIR2 = $(WXDIR)\contrib\lib
8WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc
34138703 9WIN95FLAG = -D__WIN95__ -D__WINDOWS__
2bda0e17 10
8e97b17b
VZ
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.
14!ifndef LINK
a6e2b3a8 15LINK=ilink32
8e97b17b 16!endif
c3b177ae 17
2bda0e17
KB
18!ifndef FINAL
19FINAL=0
20!endif
21
2bda0e17
KB
22!if "$(FINAL)" == "0"
23OPT = -Od
b2aef89b 24DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE
2bda0e17
KB
25!else
26OPT = -O2
40e1a9c0 27DEBUG_FLAGS = -DUSE_DEFINE
2bda0e17 28!endif
2bda0e17 29
c740f496
GL
30!ifndef DLL
31DLL=0
32!endif
33
34# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
35# wxWin DLL 1 0 1
36# wxWin STATIC 0 0 0
37# App use wxWin DLL 0 1 0
38# DLL use wxWin DLL 0 1 1
39# DLL use wxWin STATIC 0 0 1
40#
41
42!if "$(WXMAKINGDLL)" == "1"
43DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL
44WXLIB= $(WXLIBDIR)\wx200.lib
45
46!else
47
48LINK_FLAGS= /Tpe /ap /c
49
50!if "$(WXUSINGDLL)" == "1"
51DLL_FLAGS= -DWXUSINGDLL=1
52WXLIB= $(WXLIBDIR)\wx200.lib
53!else
54DLL_FLAGS=
55WXLIB= $(WXLIBDIR)\wx32.lib
56!endif
57
58!endif
59
60!if "$(WXBUILDDLL)" == "1"
61DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL
dbda9e86 62LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS)
c740f496
GL
63!endif
64
dbda9e86 65CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG)
c740f496 66
2bda0e17
KB
67DUMMY=dummy
68
69SRCSUFF = cpp
70OBJSUFF = obj
71
c09f2879
VZ
72WAITFLAG = /w
73
2bda0e17
KB
74.$(SRCSUFF).obj:
75 bcc32 $(CPPFLAGS) -c {$< }
76
77.c.obj:
78 bcc32 $(CPPFLAGS) -P- -c {$< }