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 # =========================================================================
11 !include ../../../build/msw/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
24 .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 XRCDEMO_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)
34 $(OBJS)\xrcdemo_xrcdemo.obj \
35 $(OBJS)\xrcdemo_myframe.obj \
36 $(OBJS)\xrcdemo_derivdlg.obj \
37 $(OBJS)\xrcdemo_custclas.obj
39 ### Conditionally set variables: ###
41 !if "$(USE_GUI)" == "0"
44 !if "$(USE_GUI)" == "1"
47 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
50 !if "$(DEBUG_FLAG)" == "1"
53 !if "$(SHARED)" == "1"
56 !if "$(UNICODE)" == "1"
59 !if "$(WXUNIV)" == "1"
62 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
65 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
68 !if "$(DEBUG_INFO)" == "0"
71 !if "$(DEBUG_INFO)" == "1"
74 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
75 __DEBUG_DEFINE_p = -D__WXDEBUG__
77 !if "$(DEBUG_FLAG)" == "1"
78 __DEBUG_DEFINE_p = -D__WXDEBUG__
80 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
81 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
83 !if "$(DEBUG_FLAG)" == "1"
84 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
86 !if "$(SHARED)" == "1"
87 __DLLFLAG_p = -DWXUSINGDLL
89 !if "$(SHARED)" == "1"
90 __DLLFLAG_p_1 = -dWXUSINGDLL
92 !if "$(USE_GUI)" == "1"
93 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
95 !if "$(USE_GUI)" == "1"
96 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
98 !if "$(USE_GUI)" == "1"
99 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
101 !if "$(BUILD)" == "debug"
102 __OPTIMIZEFLAG_2 = -Od
104 !if "$(BUILD)" == "release"
105 __OPTIMIZEFLAG_2 = -O2
107 !if "$(RUNTIME_LIBS)" == "dynamic"
108 __RUNTIME_LIBS_6 = -tWR
110 !if "$(RUNTIME_LIBS)" == "static"
113 !if "$(RUNTIME_LIBS)" == "dynamic"
116 !if "$(RUNTIME_LIBS)" == "static"
119 !if "$(UNICODE)" == "1"
120 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
122 !if "$(UNICODE)" == "1"
123 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
125 !if "$(MONOLITHIC)" == "0"
126 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
128 !if "$(MONOLITHIC)" == "0"
130 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
132 !if "$(MONOLITHIC)" == "0"
134 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
136 !if "$(MONOLITHIC)" == "1"
138 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
140 !if "$(MONOLITHIC)" == "0"
141 __WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib
143 !if "$(WXUNIV)" == "1"
144 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
146 !if "$(WXUNIV)" == "1"
147 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
150 MAKEARGS = -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)
155 -if not exist $(OBJS) mkdir $(OBJS)
159 all: $(OBJS)\xrcdemo.exe data
161 $(OBJS)\xrcdemo_custclas.obj: .\custclas.cpp
162 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
164 $(OBJS)\xrcdemo_derivdlg.obj: .\derivdlg.cpp
165 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
167 $(OBJS)\xrcdemo_myframe.obj: .\myframe.cpp
168 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
170 $(OBJS)\xrcdemo_xrcdemo.obj: .\xrcdemo.cpp
171 $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
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 $**
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
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
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