]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | !ifndef BCCDIR | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
11 | !include ../../../build/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 | ||
3f55f5b8 VS |
23 | LIBDIRNAME = \ |
24 | .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
25 | OBJS = \ |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
3f55f5b8 | 27 | XRCDEMO_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \ |
250700e4 RD |
28 | $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
29 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
3f55f5b8 VS |
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) | |
33 | XRCDEMO_OBJECTS = \ | |
34 | $(OBJS)\xrcdemo_xrcdemo.obj \ | |
35 | $(OBJS)\xrcdemo_myframe.obj \ | |
36 | $(OBJS)\xrcdemo_derivdlg.obj \ | |
37 | $(OBJS)\xrcdemo_custclas.obj | |
250700e4 RD |
38 | |
39 | ### Conditionally set variables: ### | |
40 | ||
41 | !if "$(USE_GUI)" == "0" | |
42 | PORTNAME = base | |
43 | !endif | |
44 | !if "$(USE_GUI)" == "1" | |
45 | PORTNAME = msw | |
46 | !endif | |
3f55f5b8 VS |
47 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
48 | WXDEBUGFLAG = d | |
49 | !endif | |
50 | !if "$(DEBUG_FLAG)" == "1" | |
250700e4 RD |
51 | WXDEBUGFLAG = d |
52 | !endif | |
53 | !if "$(SHARED)" == "1" | |
54 | WXDLLFLAG = dll | |
55 | !endif | |
56 | !if "$(UNICODE)" == "1" | |
57 | WXUNICODEFLAG = u | |
58 | !endif | |
59 | !if "$(WXUNIV)" == "1" | |
60 | WXUNIVNAME = univ | |
61 | !endif | |
3f55f5b8 VS |
62 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
63 | __DEBUGINFO = -v | |
250700e4 | 64 | !endif |
3f55f5b8 VS |
65 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
66 | __DEBUGINFO = -v- | |
250700e4 | 67 | !endif |
3f55f5b8 VS |
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" | |
250700e4 RD |
75 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
76 | !endif | |
3f55f5b8 VS |
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" | |
250700e4 RD |
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 | |
3f55f5b8 VS |
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 | |
250700e4 RD |
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 | |
3f55f5b8 VS |
140 | !if "$(MONOLITHIC)" == "0" |
141 | __WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib | |
142 | !endif | |
250700e4 RD |
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 | ||
150 | ||
151 | all: $(OBJS) | |
152 | $(OBJS): | |
153 | -if not exist $(OBJS) mkdir $(OBJS) | |
154 | ||
155 | ### Targets: ### | |
156 | ||
157 | all: $(OBJS)\xrcdemo.exe data | |
158 | ||
159 | $(OBJS)\xrcdemo_custclas.obj: .\custclas.cpp | |
160 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $** | |
161 | ||
162 | $(OBJS)\xrcdemo_derivdlg.obj: .\derivdlg.cpp | |
163 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $** | |
164 | ||
165 | $(OBJS)\xrcdemo_myframe.obj: .\myframe.cpp | |
166 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $** | |
167 | ||
168 | $(OBJS)\xrcdemo_xrcdemo.obj: .\xrcdemo.cpp | |
169 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $** | |
170 | ||
171 | $(OBJS)\xrcdemo_xrcdemo.res: .\xrcdemo.rc | |
3f55f5b8 | 172 | 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 $** |
250700e4 RD |
173 | |
174 | clean: | |
175 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
176 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
177 | -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe | |
178 | ||
179 | data: | |
180 | if not exist $(OBJS)/rc mkdir $(OBJS)/rc | |
181 | 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 | |
182 | ||
3f55f5b8 VS |
183 | $(OBJS)\xrcdemo.exe: $(XRCDEMO_OBJECTS) $(OBJS)\xrcdemo_xrcdemo.res |
184 | ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| | |
185 | 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 | |
250700e4 | 186 | | |