]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/xrc/makefile.bcc
fixed Common Headers group for VC++ definition
[wxWidgets.git] / contrib / samples / xrc / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
10
11!include ../../../build/msw/config.bcc
12
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
16
17!if "$(BCCDIR)" == "\.."
18!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19!endif
20
21### Variables: ###
22
23LIBDIRNAME = \
24 .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27XRCDEMO_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
28 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
30 -I$(LIBDIRNAME) -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg \
31 -I.\..\..\..\src\png -I.\..\..\..\src\zlib -I.\..\..\..\src\regex \
32 -I.\..\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I.\..\..\include $(CXXFLAGS)
33XRCDEMO_OBJECTS = \
34 $(OBJS)\xrcdemo_xrcdemo.obj \
35 $(OBJS)\xrcdemo_myframe.obj \
36 $(OBJS)\xrcdemo_derivdlg.obj \
37 $(OBJS)\xrcdemo_custclas.obj
38
39### Conditionally set variables: ###
40
41!if "$(USE_GUI)" == "0"
42PORTNAME = base
43!endif
44!if "$(USE_GUI)" == "1"
45PORTNAME = msw
46!endif
47!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
48WXDEBUGFLAG = d
49!endif
50!if "$(DEBUG_FLAG)" == "1"
51WXDEBUGFLAG = d
52!endif
53!if "$(SHARED)" == "1"
54WXDLLFLAG = dll
55!endif
56!if "$(UNICODE)" == "1"
57WXUNICODEFLAG = u
58!endif
59!if "$(WXUNIV)" == "1"
60WXUNIVNAME = univ
61!endif
62!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
63__DEBUGINFO = -v
64!endif
65!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
66__DEBUGINFO = -v-
67!endif
68!if "$(DEBUG_INFO)" == "0"
69__DEBUGINFO = -v-
70!endif
71!if "$(DEBUG_INFO)" == "1"
72__DEBUGINFO = -v
73!endif
74!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
75__DEBUG_DEFINE_p = -D__WXDEBUG__
76!endif
77!if "$(DEBUG_FLAG)" == "1"
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79!endif
80!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
81__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
82!endif
83!if "$(DEBUG_FLAG)" == "1"
84__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
85!endif
86!if "$(SHARED)" == "1"
87__DLLFLAG_p = -DWXUSINGDLL
88!endif
89!if "$(SHARED)" == "1"
90__DLLFLAG_p_1 = -dWXUSINGDLL
91!endif
92!if "$(USE_GUI)" == "1"
93__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
94!endif
95!if "$(USE_GUI)" == "1"
96__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
97!endif
98!if "$(USE_GUI)" == "1"
99__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
100!endif
101!if "$(BUILD)" == "debug"
102__OPTIMIZEFLAG_2 = -Od
103!endif
104!if "$(BUILD)" == "release"
105__OPTIMIZEFLAG_2 = -O2
106!endif
107!if "$(RUNTIME_LIBS)" == "dynamic"
108__RUNTIME_LIBS_6 = -tWR
109!endif
110!if "$(RUNTIME_LIBS)" == "static"
111__RUNTIME_LIBS_6 =
112!endif
113!if "$(RUNTIME_LIBS)" == "dynamic"
114__RUNTIME_LIBS_7 = i
115!endif
116!if "$(RUNTIME_LIBS)" == "static"
117__RUNTIME_LIBS_7 =
118!endif
119!if "$(UNICODE)" == "1"
120__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
121!endif
122!if "$(UNICODE)" == "1"
123__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
124!endif
125!if "$(MONOLITHIC)" == "0"
126__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
127!endif
128!if "$(MONOLITHIC)" == "0"
129__WXLIB_CORE_p = \
130 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
131!endif
132!if "$(MONOLITHIC)" == "0"
133__WXLIB_HTML_p = \
134 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
135!endif
136!if "$(MONOLITHIC)" == "1"
137__WXLIB_MONO_p = \
138 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
139!endif
140!if "$(MONOLITHIC)" == "0"
141__WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib
142!endif
143!if "$(WXUNIV)" == "1"
144__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
145!endif
146!if "$(WXUNIV)" == "1"
147__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
148!endif
149
150MAKEARGS = -DBUILD=$(BUILD) -DCFG=$(CFG) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DWXUNIV=$(WXUNIV)
151
152
153all: $(OBJS)
154$(OBJS):
155 -if not exist $(OBJS) mkdir $(OBJS)
156
157### Targets: ###
158
159all: $(OBJS)\xrcdemo.exe data
160
161$(OBJS)\xrcdemo_custclas.obj: .\custclas.cpp
162 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
163
164$(OBJS)\xrcdemo_derivdlg.obj: .\derivdlg.cpp
165 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
166
167$(OBJS)\xrcdemo_myframe.obj: .\myframe.cpp
168 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
169
170$(OBJS)\xrcdemo_xrcdemo.obj: .\xrcdemo.cpp
171 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
172
173$(OBJS)\xrcdemo_xrcdemo.res: .\xrcdemo.rc
174 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\include -i$(LIBDIRNAME) -i.\..\..\..\src\tiff -i.\..\..\..\src\jpeg -i.\..\..\..\src\png -i.\..\..\..\src\zlib -i.\..\..\..\src\regex -i.\..\..\..\src\expat\lib -i. $(__DLLFLAG_p_1) -i.\..\..\include $**
175
176clean:
177 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
178 -if exist $(OBJS)\*.res del $(OBJS)\*.res
179 -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe
180
181data:
182 if not exist $(OBJS)/rc mkdir $(OBJS)/rc
183 for %f in (appicon.ico appicon.xpm artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc scanning.gif sppicon.ico toolbar.xrc uncenter.xpm uncenter.xrc update.gif variable.xpm variable.xrc) do if not exist $(OBJS)/rc\%f copy ./rc\%f $(OBJS)/rc
184
185$(OBJS)\xrcdemo.exe: $(XRCDEMO_OBJECTS) $(OBJS)\xrcdemo_xrcdemo.res
186 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
187 c0w32.obj $(XRCDEMO_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc.lib $(__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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\xrcdemo_xrcdemo.res
188|