]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrcedit/makefile.bcc
wx-config2.6
[wxWidgets.git] / contrib / utils / wxrcedit / makefile.bcc
CommitLineData
40ff4100
JS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
40ff4100
JS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
40ff4100 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
40ff4100
JS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
40ff4100
JS
22### Variables: ###
23
24OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
28WXRCEDIT_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
40ff4100
JS
30 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
31 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
9bfe7ad9 32 $(CPPFLAGS) $(CXXFLAGS)
40ff4100
JS
33WXRCEDIT_OBJECTS = \
34 $(OBJS)\wxrcedit_edapp.obj \
35 $(OBJS)\wxrcedit_editor.obj \
36 $(OBJS)\wxrcedit_nodehnd.obj \
37 $(OBJS)\wxrcedit_nodesdb.obj \
38 $(OBJS)\wxrcedit_pe_adv.obj \
39 $(OBJS)\wxrcedit_pe_basic.obj \
40 $(OBJS)\wxrcedit_preview.obj \
41 $(OBJS)\wxrcedit_propedit.obj \
42 $(OBJS)\wxrcedit_propframe.obj \
43 $(OBJS)\wxrcedit_splittree.obj \
44 $(OBJS)\wxrcedit_xmlhelpr.obj
45
46### Conditionally set variables: ###
47
40ff4100
JS
48!if "$(USE_GUI)" == "0"
49PORTNAME = base
50!endif
51!if "$(USE_GUI)" == "1"
52PORTNAME = msw
53!endif
54!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55WXDEBUGFLAG = d
56!endif
57!if "$(DEBUG_FLAG)" == "1"
58WXDEBUGFLAG = d
59!endif
40ff4100
JS
60!if "$(UNICODE)" == "1"
61WXUNICODEFLAG = u
62!endif
63!if "$(WXUNIV)" == "1"
64WXUNIVNAME = univ
65!endif
40ff4100 66!if "$(SHARED)" == "1"
b17c1746 67WXDLLFLAG = dll
40ff4100
JS
68!endif
69!if "$(BUILD)" == "debug"
70__OPTIMIZEFLAG_2 = -Od
71!endif
72!if "$(BUILD)" == "release"
73__OPTIMIZEFLAG_2 = -O2
74!endif
75!if "$(RUNTIME_LIBS)" == "dynamic"
76__RUNTIME_LIBS_6 = -tWR
77!endif
78!if "$(RUNTIME_LIBS)" == "static"
79__RUNTIME_LIBS_6 =
80!endif
81!if "$(RUNTIME_LIBS)" == "dynamic"
82__RUNTIME_LIBS_7 = i
83!endif
84!if "$(RUNTIME_LIBS)" == "static"
85__RUNTIME_LIBS_7 =
86!endif
b17c1746
DE
87!if "$(WXUNIV)" == "1"
88__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
89!endif
90!if "$(WXUNIV)" == "1"
91__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
92!endif
93!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
94__DEBUG_DEFINE_p = -D__WXDEBUG__
95!endif
96!if "$(DEBUG_FLAG)" == "1"
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98!endif
99!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
100__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
101!endif
102!if "$(DEBUG_FLAG)" == "1"
103__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
104!endif
40ff4100
JS
105!if "$(UNICODE)" == "1"
106__UNICODE_DEFINE_p = -D_UNICODE
107!endif
108!if "$(UNICODE)" == "1"
109__UNICODE_DEFINE_p_1 = -d_UNICODE
110!endif
b17c1746
DE
111!if "$(SHARED)" == "1"
112__DLLFLAG_p = -DWXUSINGDLL
113!endif
114!if "$(SHARED)" == "1"
115__DLLFLAG_p_1 = -dWXUSINGDLL
40ff4100
JS
116!endif
117!if "$(MONOLITHIC)" == "0"
118__WXLIB_ADV_p = \
119 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
120!endif
121!if "$(MONOLITHIC)" == "0"
b17c1746
DE
122__WXLIB_HTML_p = \
123 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
40ff4100
JS
124!endif
125!if "$(MONOLITHIC)" == "0"
126__WXLIB_CORE_p = \
127 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
128!endif
129!if "$(MONOLITHIC)" == "0"
b17c1746
DE
130__WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib
131!endif
132!if "$(MONOLITHIC)" == "0"
133__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
40ff4100
JS
134!endif
135!if "$(MONOLITHIC)" == "1"
136__WXLIB_MONO_p = \
137 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
138!endif
b17c1746
DE
139!if "$(USE_GUI)" == "1"
140__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
40ff4100 141!endif
b17c1746
DE
142!if "$(USE_GUI)" == "1"
143__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
40ff4100 144!endif
b17c1746
DE
145!if "$(USE_GUI)" == "1"
146__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
147!endif
148!if "$(MSLU)" == "1"
149__UNICOWS_LIB_p = unicows.lib
150!endif
151!if "$(SHARED)" == "0"
152LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
153!endif
154!if "$(SHARED)" == "1"
155LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
156!endif
157!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
158__DEBUGINFO = -v
159!endif
160!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
161__DEBUGINFO = -v-
162!endif
163!if "$(DEBUG_INFO)" == "0"
164__DEBUGINFO = -v-
165!endif
166!if "$(DEBUG_INFO)" == "1"
167__DEBUGINFO = -v
40ff4100
JS
168!endif
169
170
171all: $(OBJS)
172$(OBJS):
173 -if not exist $(OBJS) mkdir $(OBJS)
174
175### Targets: ###
176
177all: $(OBJS)\wxrcedit.exe
178
b17c1746
DE
179clean:
180 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
181 -if exist $(OBJS)\*.res del $(OBJS)\*.res
182 -if exist $(OBJS)\wxrcedit.exe del $(OBJS)\wxrcedit.exe
183 -if exist $(OBJS)\wxrcedit.tds del $(OBJS)\wxrcedit.tds
184 -if exist $(OBJS)\wxrcedit.ilc del $(OBJS)\wxrcedit.ilc
185 -if exist $(OBJS)\wxrcedit.ild del $(OBJS)\wxrcedit.ild
186 -if exist $(OBJS)\wxrcedit.ilf del $(OBJS)\wxrcedit.ilf
187 -if exist $(OBJS)\wxrcedit.ils del $(OBJS)\wxrcedit.ils
188
189$(OBJS)\wxrcedit.exe: $(WXRCEDIT_OBJECTS) $(OBJS)\wxrcedit_wxrcedit.res
190 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
b92ca8cf 191 c0w32.obj $(WXRCEDIT_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc.lib $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\wxrcedit_wxrcedit.res
b17c1746
DE
192|
193
40ff4100
JS
194$(OBJS)\wxrcedit_edapp.obj: .\edapp.cpp
195 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
196
197$(OBJS)\wxrcedit_editor.obj: .\editor.cpp
198 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
199
200$(OBJS)\wxrcedit_nodehnd.obj: .\nodehnd.cpp
201 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
202
203$(OBJS)\wxrcedit_nodesdb.obj: .\nodesdb.cpp
204 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
205
206$(OBJS)\wxrcedit_pe_adv.obj: .\pe_adv.cpp
207 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
208
209$(OBJS)\wxrcedit_pe_basic.obj: .\pe_basic.cpp
210 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
211
212$(OBJS)\wxrcedit_preview.obj: .\preview.cpp
213 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
214
215$(OBJS)\wxrcedit_propedit.obj: .\propedit.cpp
216 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
217
218$(OBJS)\wxrcedit_propframe.obj: .\propframe.cpp
219 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
220
221$(OBJS)\wxrcedit_splittree.obj: .\splittree.cpp
222 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
223
40ff4100
JS
224$(OBJS)\wxrcedit_xmlhelpr.obj: .\xmlhelpr.cpp
225 $(CXX) -q -c -P -o$@ $(WXRCEDIT_CXXFLAGS) $**
226
b17c1746
DE
227$(OBJS)\wxrcedit_wxrcedit.res: .\wxrcedit.rc
228 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\..\samples -i.\..\..\include $**