]> git.saurik.com Git - wxWidgets.git/blame - utils/wxrc/makefile.bcc
Disable build of utils/execmon.
[wxWidgets.git] / utils / wxrc / makefile.bcc
CommitLineData
cecc483e
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
cecc483e
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
cecc483e 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
cecc483e
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
c33fae85 16!include ../../build/msw/config.bcc
cecc483e
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
cecc483e
VS
22### Variables: ###
23
ae4ccf12 24WX_RELEASE_NODOT = 29
7379e476 25COMPILER_PREFIX = bcc
cecc483e 26OBJS = \
7379e476
VZ
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
31WXRC_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
36 -DwxUSE_GUI=0 $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
37WXRC_OBJECTS = \
38 $(OBJS)\wxrc_wxrc.obj
cecc483e
VS
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
d12d9eda 48!if "$(BUILD)" == "debug"
cecc483e
VS
49WXDEBUGFLAG = d
50!endif
cecc483e
VS
51!if "$(UNICODE)" == "1"
52WXUNICODEFLAG = u
53!endif
54!if "$(WXUNIV)" == "1"
55WXUNIVNAME = univ
56!endif
cecc483e 57!if "$(SHARED)" == "1"
b17c1746 58WXDLLFLAG = dll
3f55f5b8 59!endif
162a956b
JS
60!if "$(SHARED)" == "0"
61LIBTYPE_SUFFIX = lib
62!endif
63!if "$(SHARED)" == "1"
64LIBTYPE_SUFFIX = dll
65!endif
dd65d8c8
RN
66!if "$(MONOLITHIC)" == "0"
67EXTRALIBS_FOR_BASE =
68!endif
69!if "$(MONOLITHIC)" == "1"
70EXTRALIBS_FOR_BASE =
71!endif
d2ec8d84
VS
72!if "$(USE_XRC)" == "1"
73__wxrc___depname = $(OBJS)\wxrc.exe
74!endif
cecc483e
VS
75!if "$(BUILD)" == "debug"
76__OPTIMIZEFLAG_2 = -Od
77!endif
78!if "$(BUILD)" == "release"
79__OPTIMIZEFLAG_2 = -O2
80!endif
8c9f8f91
JS
81!if "$(USE_THREADS)" == "0"
82__THREADSFLAG_5 =
83!endif
84!if "$(USE_THREADS)" == "1"
85__THREADSFLAG_5 = mt
86!endif
87!if "$(USE_THREADS)" == "0"
88__THREADSFLAG_6 =
89!endif
90!if "$(USE_THREADS)" == "1"
91__THREADSFLAG_6 = -tWM
92!endif
cecc483e 93!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 94__RUNTIME_LIBS_7 = -tWR
cecc483e
VS
95!endif
96!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 97__RUNTIME_LIBS_7 =
cecc483e
VS
98!endif
99!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 100__RUNTIME_LIBS_8 = i
cecc483e
VS
101!endif
102!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 103__RUNTIME_LIBS_8 =
cecc483e 104!endif
b17c1746
DE
105!if "$(WXUNIV)" == "1"
106__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
107!endif
d12d9eda
VZ
108!if "$(DEBUG_FLAG)" == "0"
109__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
b17c1746 110!endif
8c9f8f91
JS
111!if "$(USE_EXCEPTIONS)" == "0"
112__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
113!endif
114!if "$(USE_RTTI)" == "0"
115__RTTI_DEFINE_p = -DwxNO_RTTI
116!endif
117!if "$(USE_THREADS)" == "0"
118__THREAD_DEFINE_p = -DwxNO_THREADS
119!endif
7379e476
VZ
120!if "$(UNICODE)" == "0"
121__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
122!endif
cecc483e 123!if "$(UNICODE)" == "1"
ec08d395 124__UNICODE_DEFINE_p = -D_UNICODE
cecc483e 125!endif
2113bc77
MW
126!if "$(MSLU)" == "1"
127__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
128!endif
3abcf424
RD
129!if "$(USE_GDIPLUS)" == "1"
130__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
131!endif
b17c1746
DE
132!if "$(SHARED)" == "1"
133__DLLFLAG_p = -DWXUSINGDLL
134!endif
135!if "$(MONOLITHIC)" == "0"
c33fae85
RN
136__WXLIB_XML_p = \
137 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
2265a2d5 138!endif
cecc483e 139!if "$(MONOLITHIC)" == "0"
c33fae85
RN
140__WXLIB_BASE_p = \
141 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
cecc483e
VS
142!endif
143!if "$(MONOLITHIC)" == "1"
144__WXLIB_MONO_p = \
c33fae85 145 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
cecc483e 146!endif
b17c1746
DE
147!if "$(MSLU)" == "1"
148__UNICOWS_LIB_p = unicows.lib
149!endif
3abcf424
RD
150!if "$(USE_GDIPLUS)" == "1"
151__GDIPLUS_LIB_p = gdiplus.lib
152!endif
b17c1746
DE
153!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154__DEBUGINFO = -v
155!endif
156!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
157__DEBUGINFO = -v-
158!endif
159!if "$(DEBUG_INFO)" == "0"
160__DEBUGINFO = -v-
161!endif
162!if "$(DEBUG_INFO)" == "1"
163__DEBUGINFO = -v
cecc483e
VS
164!endif
165
166
167all: $(OBJS)
168$(OBJS):
169 -if not exist $(OBJS) mkdir $(OBJS)
170
171### Targets: ###
172
d2ec8d84 173all: $(__wxrc___depname)
cecc483e 174
cecc483e
VS
175clean:
176 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
177 -if exist $(OBJS)\*.res del $(OBJS)\*.res
162a956b 178 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
cecc483e 179 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
ec08d395
JS
180 -if exist $(OBJS)\wxrc.tds del $(OBJS)\wxrc.tds
181 -if exist $(OBJS)\wxrc.ilc del $(OBJS)\wxrc.ilc
182 -if exist $(OBJS)\wxrc.ild del $(OBJS)\wxrc.ild
183 -if exist $(OBJS)\wxrc.ilf del $(OBJS)\wxrc.ilf
184 -if exist $(OBJS)\wxrc.ils del $(OBJS)\wxrc.ils
cecc483e 185
d2ec8d84 186!if "$(USE_XRC)" == "1"
3f55f5b8 187$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
03c6117e 188 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(LDFLAGS) @&&|
7379e476 189 c0x32.obj $(WXRC_OBJECTS),$@,, $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,,
cecc483e 190|
d2ec8d84 191!endif
b17c1746
DE
192
193$(OBJS)\wxrc_wxrc.obj: .\wxrc.cpp
6e0fbb3d 194 $(CXX) -q -c -P -o$@ $(WXRC_CXXFLAGS) .\wxrc.cpp
162a956b 195