-rw-r--r-- | Makefile.Embedded | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile.Embedded b/Makefile.Embedded index b7e0e33..7cc6952 100644 --- a/Makefile.Embedded +++ b/Makefile.Embedded | |||
@@ -1,75 +1,73 @@ | |||
1 | export KDEPIMDIR = $(shell pwd) | 1 | export KDEPIMDIR = $(shell pwd) |
2 | 2 | ||
3 | 3 | ||
4 | ifeq ($(PLATFORM) , zaurus) | 4 | ifeq ($(PLATFORM) , zaurus) |
5 | BUILD_NO_LDAP_PLUGIN=1 | 5 | BUILD_NO_LDAP_PLUGIN=1 |
6 | BUILD_NO_GAMMU=1 | ||
7 | endif | 6 | endif |
8 | 7 | ||
9 | ifneq ($(PLATFORM) , zaurus) | 8 | ifneq ($(PLATFORM) , zaurus) |
10 | BUILD_NO_SHARP_PLUGIN=1 | 9 | BUILD_NO_SHARP_PLUGIN=1 |
11 | BUILD_NO_GAMMU=1 | ||
12 | endif | 10 | endif |
13 | 11 | ||
14 | SUBDIRS_MICROKDE = \ | 12 | SUBDIRS_MICROKDE = \ |
15 | libical/src/libical \ | 13 | libical/src/libical \ |
16 | libical/src/libicalss \ | 14 | libical/src/libicalss \ |
17 | qtcompat \ | 15 | qtcompat \ |
18 | microkde \ | 16 | microkde \ |
19 | libkcal \ | 17 | libkcal \ |
20 | libkdepim \ | 18 | libkdepim \ |
21 | kabc \ | 19 | kabc \ |
22 | kabc/formats/binary \ | 20 | kabc/formats/binary \ |
23 | kabc/plugins/file \ | 21 | kabc/plugins/file \ |
24 | kabc/plugins/dir \ | 22 | kabc/plugins/dir \ |
25 | korganizer \ | 23 | korganizer \ |
26 | kalarmd \ | 24 | kalarmd \ |
27 | kaddressbook | 25 | kaddressbook |
28 | 26 | ||
29 | SUBDIRS_QTOPIA_PLUGIN = \ | 27 | SUBDIRS_QTOPIA_PLUGIN = \ |
30 | kabc/plugins/qtopia | 28 | kabc/plugins/qtopia |
31 | 29 | ||
32 | SUBDIRS_OPIE_PLUGIN = \ | 30 | SUBDIRS_OPIE_PLUGIN = \ |
33 | kabc/plugins/opie | 31 | kabc/plugins/opie |
34 | 32 | ||
35 | SUBDIRS_SHARP_PLUGIN = \ | 33 | SUBDIRS_SHARP_PLUGIN = \ |
36 | kabc/plugins/sharpdtm | 34 | kabc/plugins/sharpdtm |
37 | 35 | ||
38 | SUBDIRS_LDAP_PLUGIN = \ | 36 | SUBDIRS_LDAP_PLUGIN = \ |
39 | kabc/plugins/ldap | 37 | kabc/plugins/ldap |
40 | 38 | ||
41 | SUBDIRS_MICROMAIL = \ | 39 | SUBDIRS_MICROMAIL = \ |
42 | kmicromail/libetpan \ | 40 | kmicromail/libetpan \ |
43 | kmicromail/libmailwrapper \ | 41 | kmicromail/libmailwrapper \ |
44 | kmicromail | 42 | kmicromail |
45 | 43 | ||
46 | SUBDIRS_GAMMU = \ | 44 | SUBDIRS_GAMMU = \ |
47 | gammu/emb/common \ | 45 | gammu/emb/common \ |
48 | gammu/emb/gammu | 46 | gammu/emb/gammu |
49 | 47 | ||
50 | SUBDIRS = \ | 48 | SUBDIRS = \ |
51 | $(SUBDIRS_MICROKDE) \ | 49 | $(SUBDIRS_MICROKDE) \ |
52 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 50 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
53 | $(SUBDIRS_OPIE_PLUGIN) \ | 51 | $(SUBDIRS_OPIE_PLUGIN) \ |
54 | $(SUBDIRS_SHARP_PLUGIN) \ | 52 | $(SUBDIRS_SHARP_PLUGIN) \ |
55 | $(SUBDIRS_LDAP_PLUGIN) \ | 53 | $(SUBDIRS_LDAP_PLUGIN) \ |
56 | $(SUBDIRS_MICROMAIL) \ | 54 | $(SUBDIRS_MICROMAIL) \ |
57 | $(SUBDIRS_GAMMU) | 55 | $(SUBDIRS_GAMMU) |
58 | 56 | ||
59 | all: build_microkde \ | 57 | all: build_microkde \ |
60 | build_qtopia_plugin \ | 58 | build_qtopia_plugin \ |
61 | build_opie_plugin \ | 59 | build_opie_plugin \ |
62 | build_sharp_plugin \ | 60 | build_sharp_plugin \ |
63 | build_ldap_plugin \ | 61 | build_ldap_plugin \ |
64 | build_micromail \ | 62 | build_micromail \ |
65 | build_gammu | 63 | build_gammu |
66 | 64 | ||
67 | 65 | ||
68 | build_microkde: variable_test tmake | 66 | build_microkde: variable_test tmake |
69 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ | 67 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ |
70 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 68 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
71 | done | 69 | done |
72 | 70 | ||
73 | build_qtopia_plugin: build_microkde | 71 | build_qtopia_plugin: build_microkde |
74 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ | 72 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ |
75 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 73 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
@@ -140,129 +138,129 @@ variable_info: | |||
140 | endif | 138 | endif |
141 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) | 139 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) |
142 | @echo -------------------------------------- | 140 | @echo -------------------------------------- |
143 | 141 | ||
144 | variable_test: variable_info | 142 | variable_test: variable_info |
145 | @echo KDEPIM buildsystem, variablecheck... | 143 | @echo KDEPIM buildsystem, variablecheck... |
146 | ifndef KDEPIMDIR | 144 | ifndef KDEPIMDIR |
147 | @echo KDEPIMDIR is not defined. | 145 | @echo KDEPIMDIR is not defined. |
148 | $(error KDEPIMDIR is not defined) | 146 | $(error KDEPIMDIR is not defined) |
149 | endif | 147 | endif |
150 | ifndef PLATFORM | 148 | ifndef PLATFORM |
151 | @echo PLATFORM is not defined. | 149 | @echo PLATFORM is not defined. |
152 | $(error PLATFORM is not defined) | 150 | $(error PLATFORM is not defined) |
153 | endif | 151 | endif |
154 | ifdef BUILD_NO_LDAP_PLUGIN | 152 | ifdef BUILD_NO_LDAP_PLUGIN |
155 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | 153 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) |
156 | endif | 154 | endif |
157 | ifdef BUILD_NO_OPIE_PLUGIN | 155 | ifdef BUILD_NO_OPIE_PLUGIN |
158 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | 156 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) |
159 | endif | 157 | endif |
160 | ifdef BUILD_NO_MICROMAIL | 158 | ifdef BUILD_NO_MICROMAIL |
161 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | 159 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) |
162 | endif | 160 | endif |
163 | ifdef BUILD_NO_SHARP_PLUGIN | 161 | ifdef BUILD_NO_SHARP_PLUGIN |
164 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | 162 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) |
165 | else | 163 | else |
166 | ifndef SHARPDTMSDK | 164 | ifndef SHARPDTMSDK |
167 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) | 165 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) |
168 | $(error SHARPDTMSDK is not defined) | 166 | $(error SHARPDTMSDK is not defined) |
169 | endif | 167 | endif |
170 | endif | 168 | endif |
171 | @echo -------------------------------------- | 169 | @echo -------------------------------------- |
172 | 170 | ||
173 | 171 | ||
174 | objects: | 172 | objects: |
175 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 173 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
176 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 174 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
177 | mkdir -p libical/lib/$(PLATFORM) | 175 | mkdir -p libical/lib/$(PLATFORM) |
178 | 176 | ||
179 | clean: | 177 | clean: |
180 | rm -rf libical/lib/$(PLATFORM)/*; | 178 | rm -rf libical/lib/$(PLATFORM)/*; |
181 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 179 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
182 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 180 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ |
183 | done | 181 | done |
184 | install: | 182 | install: |
185 | cd bin/kdepim; make install | 183 | cd bin/kdepim; make install |
186 | cp db2file/db2file $(QPEDIR)/bin/db2file | 184 | cp db2file/db2file $(QPEDIR)/bin/db2file |
187 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 185 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
188 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 186 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
189 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | 187 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop |
190 | 188 | ||
191 | dist: | 189 | dist: |
192 | @echo Dont forget to do "make install" before "make dist" | 190 | @echo Dont forget to do "make install" before "make dist" |
193 | rm -f *arm.ipk | 191 | rm -f *arm.ipk |
194 | rm -f *~ | 192 | rm -f *~ |
195 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim | 193 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim |
196 | ./mkipks kmicrokdelibs.control | 194 | ./mkipks kmicrokdelibs.control |
197 | ./mkipks korganizer.control | 195 | ./mkipks korganizer.control |
198 | ./mkipks kaddressbook.control | 196 | ./mkipks kaddressbook.control |
199 | ifndef BUILD_NO_MICROMAIL | 197 | ifndef BUILD_NO_MICROMAIL |
200 | ./mkipks kopiemail.control | 198 | ./mkipks kopiemail.control |
201 | endif | 199 | endif |
202 | ./mkipks korganizer-alarm.control | 200 | ./mkipks korganizer-alarm.control |
203 | ifndef BUILD_NO_GAMMU | 201 | ifndef BUILD_NO_GAMMU |
204 | ./mkipks gammu.control | 202 | ./mkipks kammu.control |
205 | endif | 203 | endif |
206 | 204 | ||
207 | tmake: objects \ | 205 | tmake: objects \ |
208 | qtcompat/Makefile$(PLATFORM) \ | 206 | qtcompat/Makefile$(PLATFORM) \ |
209 | microkde/Makefile$(PLATFORM) \ | 207 | microkde/Makefile$(PLATFORM) \ |
210 | libkcal/Makefile$(PLATFORM) \ | 208 | libkcal/Makefile$(PLATFORM) \ |
211 | libkdepim/Makefile$(PLATFORM) \ | 209 | libkdepim/Makefile$(PLATFORM) \ |
212 | korganizer/Makefile$(PLATFORM) \ | 210 | korganizer/Makefile$(PLATFORM) \ |
213 | kalarmd/Makefile$(PLATFORM) \ | 211 | kalarmd/Makefile$(PLATFORM) \ |
214 | libical/src/libical/Makefile$(PLATFORM) \ | 212 | libical/src/libical/Makefile$(PLATFORM) \ |
215 | libical/src/libicalss/Makefile$(PLATFORM) \ | 213 | libical/src/libicalss/Makefile$(PLATFORM) \ |
216 | kabc/Makefile$(PLATFORM) \ | 214 | kabc/Makefile$(PLATFORM) \ |
217 | kabc/formats/binary/Makefile$(PLATFORM) \ | 215 | kabc/formats/binary/Makefile$(PLATFORM) \ |
218 | kabc/plugins/file/Makefile$(PLATFORM) \ | 216 | kabc/plugins/file/Makefile$(PLATFORM) \ |
219 | kabc/plugins/dir/Makefile$(PLATFORM) \ | 217 | kabc/plugins/dir/Makefile$(PLATFORM) \ |
220 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | 218 | kabc/plugins/ldap/Makefile$(PLATFORM) \ |
221 | kabc/plugins/opie/Makefile$(PLATFORM) \ | 219 | kabc/plugins/opie/Makefile$(PLATFORM) \ |
222 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ | 220 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ |
223 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ | 221 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ |
224 | kaddressbook/Makefile$(PLATFORM) \ | 222 | kaddressbook/Makefile$(PLATFORM) \ |
225 | kmicromail/Makefile$(PLATFORM) \ | 223 | kmicromail/Makefile$(PLATFORM) \ |
226 | kmicromail/libetpan/Makefile$(PLATFORM) \ | 224 | kmicromail/libetpan/Makefile$(PLATFORM) \ |
227 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ | 225 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ |
228 | gammu/emb/common/Makefile$(PLATFORM) \ | 226 | gammu/emb/common/Makefile$(PLATFORM) \ |
229 | gammu/emb/gammu/Makefile$(PLATFORM) \ | 227 | gammu/emb/gammu/Makefile$(PLATFORM) \ |
230 | 228 | ||
231 | 229 | ||
232 | 230 | ||
233 | 231 | ||
234 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | 232 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro |
235 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) | 233 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) |
236 | 234 | ||
237 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | 235 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro |
238 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) | 236 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) |
239 | 237 | ||
240 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | 238 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro |
241 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) | 239 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) |
242 | 240 | ||
243 | 241 | ||
244 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | 242 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro |
245 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) | 243 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) |
246 | 244 | ||
247 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | 245 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro |
248 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) | 246 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) |
249 | 247 | ||
250 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | 248 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro |
251 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) | 249 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) |
252 | 250 | ||
253 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro | 251 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro |
254 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) | 252 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) |
255 | 253 | ||
256 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro | 254 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro |
257 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) | 255 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) |
258 | 256 | ||
259 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | 257 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro |
260 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) | 258 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) |
261 | 259 | ||
262 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro | 260 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro |
263 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) | 261 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) |
264 | 262 | ||
265 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro | 263 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro |
266 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) | 264 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) |
267 | 265 | ||
268 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro | 266 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro |