]>
Commit | Line | Data |
---|---|---|
15e8daec VS |
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 | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
fd9f42b6 | 11 | !include ../../../build/msw/config.bcc |
15e8daec VS |
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 | ||
15e8daec VS |
23 | OBJS = \ |
24 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
1c3a6972 VS |
25 | PLOTDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
26 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
27 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
28 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \ | |
75a0a7b7 VS |
29 | -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT $(CXXFLAGS) \ |
30 | -Hu -H=$(OBJS)\wxprec_plotdll.csm | |
15e8daec VS |
31 | PLOTDLL_OBJECTS = \ |
32 | $(OBJS)\plotdll_dummy.obj \ | |
33 | $(OBJS)\plotdll_plot.obj | |
1c3a6972 VS |
34 | PLOTLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
35 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
36 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
37 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \ | |
75a0a7b7 VS |
38 | -I..\..\src\plot\..\..\include $(CXXFLAGS) -Hu \ |
39 | -H=$(OBJS)\wxprec_plotlib.csm | |
15e8daec VS |
40 | PLOTLIB_OBJECTS = \ |
41 | $(OBJS)\plotlib_dummy.obj \ | |
42 | $(OBJS)\plotlib_plot.obj | |
75a0a7b7 VS |
43 | SETUPHDIR = \ |
44 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
15e8daec VS |
45 | |
46 | ### Conditionally set variables: ### | |
47 | ||
75a0a7b7 VS |
48 | !if "$(SHARED)" == "0" |
49 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\bcc_lib$(CFG) | |
50 | !endif | |
51 | !if "$(SHARED)" == "1" | |
52 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\bcc_dll$(CFG) | |
53 | !endif | |
15e8daec VS |
54 | !if "$(USE_GUI)" == "0" |
55 | PORTNAME = base | |
56 | !endif | |
57 | !if "$(USE_GUI)" == "1" | |
58 | PORTNAME = msw | |
59 | !endif | |
60 | !if "$(OFFICIAL_BUILD)" == "0" | |
61 | VENDORTAG = _$(VENDOR) | |
62 | !endif | |
63 | !if "$(OFFICIAL_BUILD)" == "1" | |
64 | VENDORTAG = | |
65 | !endif | |
66 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
67 | WXDEBUGFLAG = d | |
68 | !endif | |
69 | !if "$(DEBUG_FLAG)" == "1" | |
70 | WXDEBUGFLAG = d | |
71 | !endif | |
72 | !if "$(SHARED)" == "1" | |
73 | WXDLLFLAG = dll | |
74 | !endif | |
75 | !if "$(UNICODE)" == "1" | |
76 | WXUNICODEFLAG = u | |
77 | !endif | |
78 | !if "$(WXUNIV)" == "1" | |
79 | WXUNIVNAME = univ | |
80 | !endif | |
81 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
82 | __DEBUGINFO = -v | |
83 | !endif | |
84 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
85 | __DEBUGINFO = -v- | |
86 | !endif | |
87 | !if "$(DEBUG_INFO)" == "0" | |
88 | __DEBUGINFO = -v- | |
89 | !endif | |
90 | !if "$(DEBUG_INFO)" == "1" | |
91 | __DEBUGINFO = -v | |
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 "$(USE_GUI)" == "1" | |
100 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
101 | !endif | |
102 | !if "$(USE_GUI)" == "1" | |
103 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
104 | !endif | |
105 | !if "$(USE_GUI)" == "1" | |
106 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
107 | !endif | |
108 | !if "$(BUILD)" == "debug" | |
109 | __OPTIMIZEFLAG = -Od | |
110 | !endif | |
111 | !if "$(BUILD)" == "release" | |
112 | __OPTIMIZEFLAG = -O2 | |
113 | !endif | |
114 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
115 | __RUNTIME_LIBS = -tWR | |
116 | !endif | |
117 | !if "$(RUNTIME_LIBS)" == "static" | |
118 | __RUNTIME_LIBS = | |
119 | !endif | |
120 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
121 | __RUNTIME_LIBS_7 = i | |
122 | !endif | |
123 | !if "$(RUNTIME_LIBS)" == "static" | |
124 | __RUNTIME_LIBS_7 = | |
125 | !endif | |
126 | !if "$(UNICODE)" == "1" | |
ec08d395 | 127 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 128 | !endif |
2265a2d5 VS |
129 | !if "$(MSLU)" == "1" |
130 | __UNICOWS_LIB_p = unicows.lib | |
131 | !endif | |
15e8daec VS |
132 | !if "$(MONOLITHIC)" == "0" |
133 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
134 | !endif | |
135 | !if "$(MONOLITHIC)" == "0" | |
136 | __WXLIB_CORE_p = \ | |
137 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
138 | !endif | |
139 | !if "$(MONOLITHIC)" == "1" | |
140 | __WXLIB_MONO_p = \ | |
141 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
142 | !endif | |
143 | !if "$(WXUNIV)" == "1" | |
144 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
145 | !endif | |
146 | !if "$(SHARED)" == "1" | |
147 | __plotdll___depname = \ | |
ec08d395 | 148 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll |
15e8daec VS |
149 | !endif |
150 | !if "$(SHARED)" == "0" | |
151 | __plotlib___depname = \ | |
152 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib | |
153 | !endif | |
154 | ||
155 | ||
156 | all: $(OBJS) | |
157 | $(OBJS): | |
158 | -if not exist $(OBJS) mkdir $(OBJS) | |
159 | ||
160 | ### Targets: ### | |
161 | ||
162 | all: $(__plotdll___depname) $(__plotlib___depname) | |
163 | ||
164 | $(OBJS)\plotdll_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp | |
165 | $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) -H $** | |
166 | ||
167 | $(OBJS)\plotdll_plot.obj: ../../src/plot\plot.cpp | |
168 | $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) $** | |
169 | ||
170 | $(OBJS)\plotlib_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp | |
171 | $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) -H $** | |
172 | ||
173 | $(OBJS)\plotlib_plot.obj: ../../src/plot\plot.cpp | |
174 | $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) $** | |
175 | ||
176 | clean: | |
177 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
178 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
ec08d395 JS |
179 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll |
180 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).tds | |
181 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ilc | |
182 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ild | |
183 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ilf | |
184 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).ils | |
15e8daec VS |
185 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib |
186 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib | |
187 | ||
188 | !if "$(SHARED)" == "1" | |
ec08d395 | 189 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll: $(OBJS)\plotdll_dummy.obj $(PLOTDLL_OBJECTS) |
1c3a6972 | 190 | ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) @&&| |
ec08d395 | 191 | c0d32.obj $(PLOTDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, |
15e8daec VS |
192 | | |
193 | implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot $@ | |
194 | !endif | |
195 | ||
196 | !if "$(SHARED)" == "0" | |
75a0a7b7 | 197 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib: $(OBJS)\plotlib_dummy.obj $(PLOTLIB_OBJECTS) |
15e8daec VS |
198 | if exist $@ del $@ |
199 | tlib /a /p2048 $@ @&&| | |
200 | $(PLOTLIB_OBJECTS) | |
201 | | | |
202 | !endif |