summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile47
-rw-r--r--Makefile.Embedded56
2 files changed, 53 insertions, 50 deletions
diff --git a/Makefile b/Makefile
index 6856b62..1adfb2c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,328 +1,329 @@
1export KDEPIMDIR = $(shell pwd) 1export KDEPIMDIR = $(shell pwd)
2 2
3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version)
3 4
4ifeq ($(PLATFORM) , zaurus) 5ifeq ($(PLATFORM) , zaurus)
5 BUILD_NO_LDAP_PLUGIN=1 6 BUILD_NO_LDAP_PLUGIN=1
6endif 7endif
7 8
8ifneq ($(PLATFORM) , zaurus) 9ifneq ($(PLATFORM) , zaurus)
9 BUILD_NO_SHARP_PLUGIN=1 10 BUILD_NO_SHARP_PLUGIN=1
10endif 11endif
11 12
12SUBDIRS_MICROKDE = \ 13SUBDIRS_MICROKDE = \
13 libical/src/libical \ 14 libical/src/libical \
14 libical/src/libicalss \ 15 libical/src/libicalss \
15 qtcompat \ 16 qtcompat \
16 microkde \ 17 microkde \
17 libkcal \ 18 libkcal \
18 libkdepim \ 19 libkdepim \
19 kabc \ 20 kabc \
20 kabc/formats/binary \ 21 kabc/formats/binary \
21 kabc/plugins/file \ 22 kabc/plugins/file \
22 kabc/plugins/dir \ 23 kabc/plugins/dir \
23 korganizer \ 24 korganizer \
24 kalarmd \ 25 kalarmd \
25 kaddressbook 26 kaddressbook
26 27
27SUBDIRS_QTOPIA_PLUGIN = \ 28SUBDIRS_QTOPIA_PLUGIN = \
28 kabc/plugins/qtopia 29 kabc/plugins/qtopia
29 30
30SUBDIRS_OPIE_PLUGIN = \ 31SUBDIRS_OPIE_PLUGIN = \
31 kabc/plugins/opie 32 kabc/plugins/opie
32 33
33SUBDIRS_SHARP_PLUGIN = \ 34SUBDIRS_SHARP_PLUGIN = \
34 kabc/plugins/sharpdtm 35 kabc/plugins/sharpdtm
35 36
36SUBDIRS_LDAP_PLUGIN = \ 37SUBDIRS_LDAP_PLUGIN = \
37 kabc/plugins/ldap 38 kabc/plugins/ldap
38 39
39SUBDIRS_MICROMAIL = \ 40SUBDIRS_MICROMAIL = \
40 kmicromail/libetpan \ 41 kmicromail/libetpan \
41 kmicromail/libmailwrapper \ 42 kmicromail/libmailwrapper \
42 kmicromail 43 kmicromail
43 44
44SUBDIRS_GAMMU = \ 45SUBDIRS_GAMMU = \
45 gammu/emb/common \ 46 gammu/emb/common \
46 gammu/emb/gammu 47 gammu/emb/gammu
47 48
48SUBDIRS_PWMANAGER = \ 49SUBDIRS_PWMANAGER = \
49 pwmanager/pwmanager 50 pwmanager/pwmanager
50 51
51SUBDIRS = \ 52SUBDIRS = \
52 $(SUBDIRS_MICROKDE) \ 53 $(SUBDIRS_MICROKDE) \
53 $(SUBDIRS_QTOPIA_PLUGIN) \ 54 $(SUBDIRS_QTOPIA_PLUGIN) \
54 $(SUBDIRS_OPIE_PLUGIN) \ 55 $(SUBDIRS_OPIE_PLUGIN) \
55 $(SUBDIRS_SHARP_PLUGIN) \ 56 $(SUBDIRS_SHARP_PLUGIN) \
56 $(SUBDIRS_LDAP_PLUGIN) \ 57 $(SUBDIRS_LDAP_PLUGIN) \
57 $(SUBDIRS_MICROMAIL) \ 58 $(SUBDIRS_MICROMAIL) \
58 $(SUBDIRS_GAMMU) \ 59 $(SUBDIRS_GAMMU) \
59 $(SUBDIRS_PWMANAGER) 60 $(SUBDIRS_PWMANAGER)
60 61
61all: build_microkde \ 62all: build_microkde \
62 build_qtopia_plugin \ 63 build_qtopia_plugin \
63 build_opie_plugin \ 64 build_opie_plugin \
64 build_sharp_plugin \ 65 build_sharp_plugin \
65 build_ldap_plugin \ 66 build_ldap_plugin \
66 build_micromail \ 67 build_micromail \
67 build_gammu \ 68 build_gammu \
68 build_pwmanager 69 build_pwmanager
69 70
70 71
71build_microkde: variable_test tmake 72build_microkde: variable_test tmake
72 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ 73 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \
73 make -f Makefile$(PLATFORM) || exit 1; popd; \ 74 make -f Makefile$(PLATFORM) || exit 1; popd; \
74 done 75 done
75 76
76build_qtopia_plugin: build_microkde 77build_qtopia_plugin: build_microkde
77 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ 78 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \
78 make -f Makefile$(PLATFORM) || exit 1; popd; \ 79 make -f Makefile$(PLATFORM) || exit 1; popd; \
79 done 80 done
80 81
81build_opie_plugin: build_microkde 82build_opie_plugin: build_microkde
82 ifdef BUILD_NO_OPIE_PLUGIN 83 ifdef BUILD_NO_OPIE_PLUGIN
83 @echo == opie plugin not build. 84 @echo == opie plugin not build.
84 else 85 else
85 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ 86 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \
86 make -f Makefile$(PLATFORM) || exit 1; popd; \ 87 make -f Makefile$(PLATFORM) || exit 1; popd; \
87 done 88 done
88 endif 89 endif
89 90
90build_sharp_plugin: build_microkde 91build_sharp_plugin: build_microkde
91 ifdef BUILD_NO_SHARP_PLUGIN 92 ifdef BUILD_NO_SHARP_PLUGIN
92 @echo == ldap plugin not build. 93 @echo == ldap plugin not build.
93 else 94 else
94 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ 95 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \
95 make -f Makefile$(PLATFORM) || exit 1; popd; \ 96 make -f Makefile$(PLATFORM) || exit 1; popd; \
96 done 97 done
97 endif 98 endif
98 99
99build_ldap_plugin: build_microkde 100build_ldap_plugin: build_microkde
100 ifdef BUILD_NO_LDAP_PLUGIN 101 ifdef BUILD_NO_LDAP_PLUGIN
101 @echo == ldap plugin not build. 102 @echo == ldap plugin not build.
102 else 103 else
103 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 104 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
104 make -f Makefile$(PLATFORM) || exit 1; popd; \ 105 make -f Makefile$(PLATFORM) || exit 1; popd; \
105 done 106 done
106 endif 107 endif
107 108
108 109
109build_micromail: build_microkde 110build_micromail: build_microkde
110 ifdef BUILD_NO_MICROMAIL 111 ifdef BUILD_NO_MICROMAIL
111 @echo == kmicromail not build. 112 @echo == kmicromail not build.
112 else 113 else
113 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 114 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
114 make -f Makefile$(PLATFORM) || exit 1; popd; \ 115 make -f Makefile$(PLATFORM) || exit 1; popd; \
115 done 116 done
116 endif 117 endif
117 118
118build_gammu: variable_test tmake 119build_gammu: variable_test tmake
119 ifdef BUILD_NO_GAMMU 120 ifdef BUILD_NO_GAMMU
120 @echo == gammu not build. 121 @echo == gammu not build.
121 else 122 else
122 for i in $(SUBDIRS_GAMMU); do pushd $$i; \ 123 for i in $(SUBDIRS_GAMMU); do pushd $$i; \
123 make -f Makefile$(PLATFORM) || exit 1; popd; \ 124 make -f Makefile$(PLATFORM) || exit 1; popd; \
124 done 125 done
125 endif 126 endif
126 127
127build_pwmanager: build_microkde 128build_pwmanager: build_microkde
128 ifdef BUILD_NO_PWMANAGER 129 ifdef BUILD_NO_PWMANAGER
129 @echo == pwmanager not build. 130 @echo == pwmanager not build.
130 else 131 else
131 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ 132 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \
132 make -f Makefile$(PLATFORM) || exit 1; popd; \ 133 make -f Makefile$(PLATFORM) || exit 1; popd; \
133 done 134 done
134 endif 135 endif
135 136
136 137
137variable_info: 138variable_info:
138 @echo -------------------------------------- 139 @echo --------------------------------------
139 @echo KDEPIM buildsystem, variableinfo... 140 @echo KDEPIM buildsystem, variableinfo...
140 @echo KDEPIMDIR=$(KDEPIMDIR) 141 @echo KDEPIMDIR=$(KDEPIMDIR)
141 @echo QTDIR=$(QTDIR) 142 @echo QTDIR=$(QTDIR)
142 @echo QPEDIR=$(QPEDIR) 143 @echo QPEDIR=$(QPEDIR)
143 @echo OPIEDIR=$(OPIEDIR) 144 @echo OPIEDIR=$(OPIEDIR)
144 @echo PLATFORM=$(PLATFORM) 145 @echo PLATFORM=$(PLATFORM)
145 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 146 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
146 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 147 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
147 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 148 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
148 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 149 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
149 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 150 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
150 ifndef BUILD_NO_SHARP_PLUGIN 151 ifndef BUILD_NO_SHARP_PLUGIN
151 @echo SHARPDTMSDK=$(SHARPDTMSDK) 152 @echo SHARPDTMSDK=$(SHARPDTMSDK)
152 endif 153 endif
153 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) 154 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU)
154 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) 155 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER)
155 @echo -------------------------------------- 156 @echo --------------------------------------
156 157
157variable_test: variable_info 158variable_test: variable_info
158 @echo KDEPIM buildsystem, variablecheck... 159 @echo KDEPIM buildsystem, variablecheck...
159 ifndef KDEPIMDIR 160 ifndef KDEPIMDIR
160 @echo KDEPIMDIR is not defined. 161 @echo KDEPIMDIR is not defined.
161 $(error KDEPIMDIR is not defined) 162 $(error KDEPIMDIR is not defined)
162 endif 163 endif
163 ifndef PLATFORM 164 ifndef PLATFORM
164 @echo PLATFORM is not defined. 165 @echo PLATFORM is not defined.
165 $(error PLATFORM is not defined) 166 $(error PLATFORM is not defined)
166 endif 167 endif
167 ifdef BUILD_NO_LDAP_PLUGIN 168 ifdef BUILD_NO_LDAP_PLUGIN
168 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 169 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
169 endif 170 endif
170 ifdef BUILD_NO_OPIE_PLUGIN 171 ifdef BUILD_NO_OPIE_PLUGIN
171 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 172 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
172 endif 173 endif
173 ifdef BUILD_NO_MICROMAIL 174 ifdef BUILD_NO_MICROMAIL
174 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 175 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
175 endif 176 endif
176 ifdef BUILD_NO_SHARP_PLUGIN 177 ifdef BUILD_NO_SHARP_PLUGIN
177 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 178 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
178 else 179 else
179 ifndef SHARPDTMSDK 180 ifndef SHARPDTMSDK
180 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 181 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
181 $(error SHARPDTMSDK is not defined) 182 $(error SHARPDTMSDK is not defined)
182 endif 183 endif
183 endif 184 endif
184 ifdef BUILD_NO_GAMMU 185 ifdef BUILD_NO_GAMMU
185 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) 186 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
186 endif 187 endif
187 ifdef BUILD_NO_PWMANAGER 188 ifdef BUILD_NO_PWMANAGER
188 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) 189 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
189 endif 190 endif
190 @echo -------------------------------------- 191 @echo --------------------------------------
191 192
192 193
193objects: 194objects:
194 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 195 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
195 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 196 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
196 mkdir -p libical/lib/$(PLATFORM) 197 mkdir -p libical/lib/$(PLATFORM)
197 198
198clean: 199clean:
199 rm -rf libical/lib/$(PLATFORM)/*; 200 rm -rf libical/lib/$(PLATFORM)/*;
200 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 201 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
201 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 202 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
202 done 203 done
203install: 204install:
204 205
205 cd bin/kdepim; make install 206 cd bin/kdepim; make install
206 cp -r Pim $(QPEDIR)/apps 207 cp -r Pim $(QPEDIR)/apps
207 cp db2file/db2file $(QPEDIR)/bin/db2file 208 cp db2file/db2file $(QPEDIR)/bin/db2file
208 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 209 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
209 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 210 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
210 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop 211 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
211 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop 212 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
212 213
213dist: 214dist:
214 @echo Dont forget to do "make install" before "make dist" 215 @echo Dont forget to do "make install" before "make dist"
215 rm -f *arm.ipk 216 rm -f *arm.ipk
216 rm -f *~ 217 rm -f *~
217 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim 218 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
218 ./mkipks kmicrokdelibs.control 219 ./mkipks kmicrokdelibs.control
219 ./mkipks korganizer.control 220 ./mkipks korganizer.control
220 ./mkipks kaddressbook.control 221 ./mkipks kaddressbook.control
221 ifndef BUILD_NO_MICROMAIL 222 ifndef BUILD_NO_MICROMAIL
222 ./mkipks kopiemail.control 223 ./mkipks kopiemail.control
223 endif 224 endif
224 ./mkipks korganizer-alarm.control 225 ./mkipks korganizer-alarm.control
225 ifndef BUILD_NO_GAMMU 226 ifndef BUILD_NO_GAMMU
226 ./mkipks kammu.control 227 ./mkipks kammu.control
227 endif 228 endif
228 ifndef BUILD_NO_PWMANAGER 229 ifndef BUILD_NO_PWMANAGER
229 ./mkipks pwmanager.control 230 ./mkipks pwmanager.control
230 endif 231 endif
231 ./mkipks pim_TAB_icon.control 232 ./mkipks pim_TAB_icon.control
232 233
233tmake: objects \ 234tmake: objects \
234 qtcompat/Makefile$(PLATFORM) \ 235 qtcompat/Makefile$(PLATFORM) \
235 microkde/Makefile$(PLATFORM) \ 236 microkde/Makefile$(PLATFORM) \
236 libkcal/Makefile$(PLATFORM) \ 237 libkcal/Makefile$(PLATFORM) \
237 libkdepim/Makefile$(PLATFORM) \ 238 libkdepim/Makefile$(PLATFORM) \
238 korganizer/Makefile$(PLATFORM) \ 239 korganizer/Makefile$(PLATFORM) \
239 kalarmd/Makefile$(PLATFORM) \ 240 kalarmd/Makefile$(PLATFORM) \
240 libical/src/libical/Makefile$(PLATFORM) \ 241 libical/src/libical/Makefile$(PLATFORM) \
241 libical/src/libicalss/Makefile$(PLATFORM) \ 242 libical/src/libicalss/Makefile$(PLATFORM) \
242 kabc/Makefile$(PLATFORM) \ 243 kabc/Makefile$(PLATFORM) \
243 kabc/formats/binary/Makefile$(PLATFORM) \ 244 kabc/formats/binary/Makefile$(PLATFORM) \
244 kabc/plugins/file/Makefile$(PLATFORM) \ 245 kabc/plugins/file/Makefile$(PLATFORM) \
245 kabc/plugins/dir/Makefile$(PLATFORM) \ 246 kabc/plugins/dir/Makefile$(PLATFORM) \
246 kabc/plugins/ldap/Makefile$(PLATFORM) \ 247 kabc/plugins/ldap/Makefile$(PLATFORM) \
247 kabc/plugins/opie/Makefile$(PLATFORM) \ 248 kabc/plugins/opie/Makefile$(PLATFORM) \
248 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 249 kabc/plugins/qtopia/Makefile$(PLATFORM) \
249 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 250 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
250 kaddressbook/Makefile$(PLATFORM) \ 251 kaddressbook/Makefile$(PLATFORM) \
251 kmicromail/Makefile$(PLATFORM) \ 252 kmicromail/Makefile$(PLATFORM) \
252 kmicromail/libetpan/Makefile$(PLATFORM) \ 253 kmicromail/libetpan/Makefile$(PLATFORM) \
253 kmicromail/libmailwrapper/Makefile$(PLATFORM) \ 254 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
254 gammu/emb/common/Makefile$(PLATFORM) \ 255 gammu/emb/common/Makefile$(PLATFORM) \
255 gammu/emb/gammu/Makefile$(PLATFORM) \ 256 gammu/emb/gammu/Makefile$(PLATFORM) \
256 pwmanager/pwmanager/Makefile$(PLATFORM) \ 257 pwmanager/pwmanager/Makefile$(PLATFORM) \
257 258
258 259
259 260
260qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 261qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
261 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) 262 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
262 263
263microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 264microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
264 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) 265 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
265 266
266libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 267libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
267 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) 268 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
268 269
269 270
270libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 271libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
271 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) 272 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
272 273
273kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 274kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
274 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) 275 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
275 276
276korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 277korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
277 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) 278 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)
278 279
279libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro 280libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
280 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) 281 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM)
281 282
282libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro 283libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
283 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) 284 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM)
284 285
285kabc/Makefile$(PLATFORM): kabc/kabcE.pro 286kabc/Makefile$(PLATFORM): kabc/kabcE.pro
286 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) 287 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM)
287 288
288kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro 289kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
289 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) 290 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
290 291
291kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro 292kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
292 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) 293 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM)
293 294
294kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro 295kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
295 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM) 296 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM)
296 297
297kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro 298kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
298 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM) 299 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM)
299 300
300kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro 301kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
301 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) 302 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM)
302 303
303kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro 304kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
304 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" qtopiaE.pro -o Makefile$(PLATFORM) 305 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM)
305 306
306kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro 307kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
307 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" sharpdtmE.pro -o Makefile$(PLATFORM) 308 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM)
308 309
309kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro 310kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
310 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) 311 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM)
311 312
312kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro 313kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
313 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) 314 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM)
314 315
315kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro 316kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro
316 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) 317 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM)
317 318
318kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro 319kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
319 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) 320 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM)
320 321
321gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro 322gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro
322 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" commonE.pro -o Makefile$(PLATFORM) 323 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM)
323 324
324gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro 325gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro
325 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" gammuE.pro -o Makefile$(PLATFORM) 326 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM)
326 327
327pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro 328pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro
328 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" pwmanagerE.pro -o Makefile$(PLATFORM) 329 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM)
diff --git a/Makefile.Embedded b/Makefile.Embedded
index 6856b62..2e1651c 100644
--- a/Makefile.Embedded
+++ b/Makefile.Embedded
@@ -1,328 +1,330 @@
1export KDEPIMDIR = $(shell pwd) 1export KDEPIMDIR = $(shell pwd)
2 2
3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version)
3 4
4ifeq ($(PLATFORM) , zaurus) 5ifeq ($(PLATFORM) , zaurus)
5 BUILD_NO_LDAP_PLUGIN=1 6 BUILD_NO_LDAP_PLUGIN=1
6endif 7endif
7 8
8ifneq ($(PLATFORM) , zaurus) 9ifneq ($(PLATFORM) , zaurus)
9 BUILD_NO_SHARP_PLUGIN=1 10 BUILD_NO_SHARP_PLUGIN=1
10endif 11endif
11 12
12SUBDIRS_MICROKDE = \ 13SUBDIRS_MICROKDE = \
13 libical/src/libical \ 14 libical/src/libical \
14 libical/src/libicalss \ 15 libical/src/libicalss \
15 qtcompat \ 16 qtcompat \
16 microkde \ 17 microkde \
17 libkcal \ 18 libkcal \
18 libkdepim \ 19 libkdepim \
19 kabc \ 20 kabc \
20 kabc/formats/binary \ 21 kabc/formats/binary \
21 kabc/plugins/file \ 22 kabc/plugins/file \
22 kabc/plugins/dir \ 23 kabc/plugins/dir \
23 korganizer \ 24 korganizer \
24 kalarmd \ 25 kalarmd \
25 kaddressbook 26 kaddressbook
26 27
27SUBDIRS_QTOPIA_PLUGIN = \ 28SUBDIRS_QTOPIA_PLUGIN = \
28 kabc/plugins/qtopia 29 kabc/plugins/qtopia
29 30
30SUBDIRS_OPIE_PLUGIN = \ 31SUBDIRS_OPIE_PLUGIN = \
31 kabc/plugins/opie 32 kabc/plugins/opie
32 33
33SUBDIRS_SHARP_PLUGIN = \ 34SUBDIRS_SHARP_PLUGIN = \
34 kabc/plugins/sharpdtm 35 kabc/plugins/sharpdtm
35 36
36SUBDIRS_LDAP_PLUGIN = \ 37SUBDIRS_LDAP_PLUGIN = \
37 kabc/plugins/ldap 38 kabc/plugins/ldap
38 39
39SUBDIRS_MICROMAIL = \ 40SUBDIRS_MICROMAIL = \
40 kmicromail/libetpan \ 41 kmicromail/libetpan \
41 kmicromail/libmailwrapper \ 42 kmicromail/libmailwrapper \
42 kmicromail 43 kmicromail
43 44
44SUBDIRS_GAMMU = \ 45SUBDIRS_GAMMU = \
45 gammu/emb/common \ 46 gammu/emb/common \
46 gammu/emb/gammu 47 gammu/emb/gammu
47 48
48SUBDIRS_PWMANAGER = \ 49SUBDIRS_PWMANAGER = \
49 pwmanager/pwmanager 50 pwmanager/pwmanager
50 51
51SUBDIRS = \ 52SUBDIRS = \
52 $(SUBDIRS_MICROKDE) \ 53 $(SUBDIRS_MICROKDE) \
53 $(SUBDIRS_QTOPIA_PLUGIN) \ 54 $(SUBDIRS_QTOPIA_PLUGIN) \
54 $(SUBDIRS_OPIE_PLUGIN) \ 55 $(SUBDIRS_OPIE_PLUGIN) \
55 $(SUBDIRS_SHARP_PLUGIN) \ 56 $(SUBDIRS_SHARP_PLUGIN) \
56 $(SUBDIRS_LDAP_PLUGIN) \ 57 $(SUBDIRS_LDAP_PLUGIN) \
57 $(SUBDIRS_MICROMAIL) \ 58 $(SUBDIRS_MICROMAIL) \
58 $(SUBDIRS_GAMMU) \ 59 $(SUBDIRS_GAMMU) \
59 $(SUBDIRS_PWMANAGER) 60 $(SUBDIRS_PWMANAGER)
60 61
62
61all: build_microkde \ 63all: build_microkde \
62 build_qtopia_plugin \ 64 build_qtopia_plugin \
63 build_opie_plugin \ 65 build_opie_plugin \
64 build_sharp_plugin \ 66 build_sharp_plugin \
65 build_ldap_plugin \ 67 build_ldap_plugin \
66 build_micromail \ 68 build_micromail \
67 build_gammu \ 69 build_gammu \
68 build_pwmanager 70 build_pwmanager
69 71
70 72
71build_microkde: variable_test tmake 73build_microkde: variable_test tmake
72 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ 74 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \
73 make -f Makefile$(PLATFORM) || exit 1; popd; \ 75 make -f Makefile$(PLATFORM) || exit 1; popd; \
74 done 76 done
75 77
76build_qtopia_plugin: build_microkde 78build_qtopia_plugin: build_microkde
77 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ 79 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \
78 make -f Makefile$(PLATFORM) || exit 1; popd; \ 80 make -f Makefile$(PLATFORM) || exit 1; popd; \
79 done 81 done
80 82
81build_opie_plugin: build_microkde 83build_opie_plugin: build_microkde
82 ifdef BUILD_NO_OPIE_PLUGIN 84 ifdef BUILD_NO_OPIE_PLUGIN
83 @echo == opie plugin not build. 85 @echo == opie plugin not build.
84 else 86 else
85 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ 87 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \
86 make -f Makefile$(PLATFORM) || exit 1; popd; \ 88 make -f Makefile$(PLATFORM) || exit 1; popd; \
87 done 89 done
88 endif 90 endif
89 91
90build_sharp_plugin: build_microkde 92build_sharp_plugin: build_microkde
91 ifdef BUILD_NO_SHARP_PLUGIN 93 ifdef BUILD_NO_SHARP_PLUGIN
92 @echo == ldap plugin not build. 94 @echo == ldap plugin not build.
93 else 95 else
94 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ 96 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \
95 make -f Makefile$(PLATFORM) || exit 1; popd; \ 97 make -f Makefile$(PLATFORM) || exit 1; popd; \
96 done 98 done
97 endif 99 endif
98 100
99build_ldap_plugin: build_microkde 101build_ldap_plugin: build_microkde
100 ifdef BUILD_NO_LDAP_PLUGIN 102 ifdef BUILD_NO_LDAP_PLUGIN
101 @echo == ldap plugin not build. 103 @echo == ldap plugin not build.
102 else 104 else
103 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 105 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
104 make -f Makefile$(PLATFORM) || exit 1; popd; \ 106 make -f Makefile$(PLATFORM) || exit 1; popd; \
105 done 107 done
106 endif 108 endif
107 109
108 110
109build_micromail: build_microkde 111build_micromail: build_microkde
110 ifdef BUILD_NO_MICROMAIL 112 ifdef BUILD_NO_MICROMAIL
111 @echo == kmicromail not build. 113 @echo == kmicromail not build.
112 else 114 else
113 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 115 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
114 make -f Makefile$(PLATFORM) || exit 1; popd; \ 116 make -f Makefile$(PLATFORM) || exit 1; popd; \
115 done 117 done
116 endif 118 endif
117 119
118build_gammu: variable_test tmake 120build_gammu: variable_test tmake
119 ifdef BUILD_NO_GAMMU 121 ifdef BUILD_NO_GAMMU
120 @echo == gammu not build. 122 @echo == gammu not build.
121 else 123 else
122 for i in $(SUBDIRS_GAMMU); do pushd $$i; \ 124 for i in $(SUBDIRS_GAMMU); do pushd $$i; \
123 make -f Makefile$(PLATFORM) || exit 1; popd; \ 125 make -f Makefile$(PLATFORM) || exit 1; popd; \
124 done 126 done
125 endif 127 endif
126 128
127build_pwmanager: build_microkde 129build_pwmanager: build_microkde
128 ifdef BUILD_NO_PWMANAGER 130 ifdef BUILD_NO_PWMANAGER
129 @echo == pwmanager not build. 131 @echo == pwmanager not build.
130 else 132 else
131 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ 133 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \
132 make -f Makefile$(PLATFORM) || exit 1; popd; \ 134 make -f Makefile$(PLATFORM) || exit 1; popd; \
133 done 135 done
134 endif 136 endif
135 137
136 138
137variable_info: 139variable_info:
138 @echo -------------------------------------- 140 @echo --------------------------------------
139 @echo KDEPIM buildsystem, variableinfo... 141 @echo KDEPIM buildsystem, variableinfo...
140 @echo KDEPIMDIR=$(KDEPIMDIR) 142 @echo KDEPIMDIR=$(KDEPIMDIR)
141 @echo QTDIR=$(QTDIR) 143 @echo QTDIR=$(QTDIR)
142 @echo QPEDIR=$(QPEDIR) 144 @echo QPEDIR=$(QPEDIR)
143 @echo OPIEDIR=$(OPIEDIR) 145 @echo OPIEDIR=$(OPIEDIR)
144 @echo PLATFORM=$(PLATFORM) 146 @echo PLATFORM=$(PLATFORM)
145 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 147 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
146 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 148 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
147 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 149 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
148 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 150 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
149 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 151 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
150 ifndef BUILD_NO_SHARP_PLUGIN 152 ifndef BUILD_NO_SHARP_PLUGIN
151 @echo SHARPDTMSDK=$(SHARPDTMSDK) 153 @echo SHARPDTMSDK=$(SHARPDTMSDK)
152 endif 154 endif
153 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) 155 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU)
154 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) 156 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER)
155 @echo -------------------------------------- 157 @echo --------------------------------------
156 158
157variable_test: variable_info 159variable_test: variable_info
158 @echo KDEPIM buildsystem, variablecheck... 160 @echo KDEPIM buildsystem, variablecheck...
159 ifndef KDEPIMDIR 161 ifndef KDEPIMDIR
160 @echo KDEPIMDIR is not defined. 162 @echo KDEPIMDIR is not defined.
161 $(error KDEPIMDIR is not defined) 163 $(error KDEPIMDIR is not defined)
162 endif 164 endif
163 ifndef PLATFORM 165 ifndef PLATFORM
164 @echo PLATFORM is not defined. 166 @echo PLATFORM is not defined.
165 $(error PLATFORM is not defined) 167 $(error PLATFORM is not defined)
166 endif 168 endif
167 ifdef BUILD_NO_LDAP_PLUGIN 169 ifdef BUILD_NO_LDAP_PLUGIN
168 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 170 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
169 endif 171 endif
170 ifdef BUILD_NO_OPIE_PLUGIN 172 ifdef BUILD_NO_OPIE_PLUGIN
171 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 173 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
172 endif 174 endif
173 ifdef BUILD_NO_MICROMAIL 175 ifdef BUILD_NO_MICROMAIL
174 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 176 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
175 endif 177 endif
176 ifdef BUILD_NO_SHARP_PLUGIN 178 ifdef BUILD_NO_SHARP_PLUGIN
177 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 179 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
178 else 180 else
179 ifndef SHARPDTMSDK 181 ifndef SHARPDTMSDK
180 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 182 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
181 $(error SHARPDTMSDK is not defined) 183 $(error SHARPDTMSDK is not defined)
182 endif 184 endif
183 endif 185 endif
184 ifdef BUILD_NO_GAMMU 186 ifdef BUILD_NO_GAMMU
185 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) 187 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
186 endif 188 endif
187 ifdef BUILD_NO_PWMANAGER 189 ifdef BUILD_NO_PWMANAGER
188 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) 190 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
189 endif 191 endif
190 @echo -------------------------------------- 192 @echo --------------------------------------
191 193
192 194
193objects: 195objects:
194 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 196 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
195 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 197 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
196 mkdir -p libical/lib/$(PLATFORM) 198 mkdir -p libical/lib/$(PLATFORM)
197 199
198clean: 200clean:
199 rm -rf libical/lib/$(PLATFORM)/*; 201 rm -rf libical/lib/$(PLATFORM)/*;
200 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 202 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
201 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 203 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
202 done 204 done
205
203install: 206install:
204 207
205 cd bin/kdepim; make install 208 cd bin/kdepim; make install
206 cp -r Pim $(QPEDIR)/apps 209 cp -r Pim $(QPEDIR)/apps
207 cp db2file/db2file $(QPEDIR)/bin/db2file 210 cp db2file/db2file $(QPEDIR)/bin/db2file
208 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 211 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
209 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 212 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
210 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop 213 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
211 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop 214 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
212 215
213dist: 216dist:
214 @echo Dont forget to do "make install" before "make dist" 217 @echo Dont forget to do "make install" before "make dist"
215 rm -f *arm.ipk 218 rm -f *arm.ipk
216 rm -f *~ 219 rm -f *~
217 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim 220 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
218 ./mkipks kmicrokdelibs.control 221 ./mkipks kmicrokdelibs.control
219 ./mkipks korganizer.control 222 ./mkipks korganizer.control
220 ./mkipks kaddressbook.control 223 ./mkipks kaddressbook.control
221 ifndef BUILD_NO_MICROMAIL 224 ifndef BUILD_NO_MICROMAIL
222 ./mkipks kopiemail.control 225 ./mkipks kopiemail.control
223 endif 226 endif
224 ./mkipks korganizer-alarm.control 227 ./mkipks korganizer-alarm.control
225 ifndef BUILD_NO_GAMMU 228 ifndef BUILD_NO_GAMMU
226 ./mkipks kammu.control 229 ./mkipks kammu.control
227 endif 230 endif
228 ifndef BUILD_NO_PWMANAGER 231 ifndef BUILD_NO_PWMANAGER
229 ./mkipks pwmanager.control 232 ./mkipks pwmanager.control
230 endif 233 endif
231 ./mkipks pim_TAB_icon.control 234 ./mkipks pim_TAB_icon.control
232 235
233tmake: objects \ 236tmake: objects \
234 qtcompat/Makefile$(PLATFORM) \ 237 qtcompat/Makefile$(PLATFORM) \
235 microkde/Makefile$(PLATFORM) \ 238 microkde/Makefile$(PLATFORM) \
236 libkcal/Makefile$(PLATFORM) \ 239 libkcal/Makefile$(PLATFORM) \
237 libkdepim/Makefile$(PLATFORM) \ 240 libkdepim/Makefile$(PLATFORM) \
238 korganizer/Makefile$(PLATFORM) \ 241 korganizer/Makefile$(PLATFORM) \
239 kalarmd/Makefile$(PLATFORM) \ 242 kalarmd/Makefile$(PLATFORM) \
240 libical/src/libical/Makefile$(PLATFORM) \ 243 libical/src/libical/Makefile$(PLATFORM) \
241 libical/src/libicalss/Makefile$(PLATFORM) \ 244 libical/src/libicalss/Makefile$(PLATFORM) \
242 kabc/Makefile$(PLATFORM) \ 245 kabc/Makefile$(PLATFORM) \
243 kabc/formats/binary/Makefile$(PLATFORM) \ 246 kabc/formats/binary/Makefile$(PLATFORM) \
244 kabc/plugins/file/Makefile$(PLATFORM) \ 247 kabc/plugins/file/Makefile$(PLATFORM) \
245 kabc/plugins/dir/Makefile$(PLATFORM) \ 248 kabc/plugins/dir/Makefile$(PLATFORM) \
246 kabc/plugins/ldap/Makefile$(PLATFORM) \ 249 kabc/plugins/ldap/Makefile$(PLATFORM) \
247 kabc/plugins/opie/Makefile$(PLATFORM) \ 250 kabc/plugins/opie/Makefile$(PLATFORM) \
248 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 251 kabc/plugins/qtopia/Makefile$(PLATFORM) \
249 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 252 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
250 kaddressbook/Makefile$(PLATFORM) \ 253 kaddressbook/Makefile$(PLATFORM) \
251 kmicromail/Makefile$(PLATFORM) \ 254 kmicromail/Makefile$(PLATFORM) \
252 kmicromail/libetpan/Makefile$(PLATFORM) \ 255 kmicromail/libetpan/Makefile$(PLATFORM) \
253 kmicromail/libmailwrapper/Makefile$(PLATFORM) \ 256 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
254 gammu/emb/common/Makefile$(PLATFORM) \ 257 gammu/emb/common/Makefile$(PLATFORM) \
255 gammu/emb/gammu/Makefile$(PLATFORM) \ 258 gammu/emb/gammu/Makefile$(PLATFORM) \
256 pwmanager/pwmanager/Makefile$(PLATFORM) \ 259 pwmanager/pwmanager/Makefile$(PLATFORM) \
257 260
258
259
260qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 261qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
261 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) 262 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
262 263
263microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 264microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
264 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) 265 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
265 266
266libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 267libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
267 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) 268 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
268 269
269 270
270libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 271libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
271 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) 272 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
272 273
273kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 274kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
274 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) 275 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
275 276
276korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 277korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
277 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) 278 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)
278 279
279libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro 280libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
280 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) 281 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM)
281 282
282libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro 283libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
283 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) 284 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM)
284 285
285kabc/Makefile$(PLATFORM): kabc/kabcE.pro 286kabc/Makefile$(PLATFORM): kabc/kabcE.pro
286 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) 287 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM)
287 288
288kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro 289kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
289 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) 290 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
290 291
291kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro 292kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
292 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) 293 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM)
293 294
294kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro 295kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
295 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM) 296 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM)
296 297
297kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro 298kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
298 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM) 299 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM)
299 300
300kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro 301kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
301 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) 302 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM)
302 303
303kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro 304kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
304 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" qtopiaE.pro -o Makefile$(PLATFORM) 305 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM)
305 306
306kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro 307kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
307 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" sharpdtmE.pro -o Makefile$(PLATFORM) 308 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM)
308 309
309kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro 310kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
310 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) 311 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM)
311 312
312kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro 313kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
313 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) 314 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM)
314 315
315kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro 316kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro
316 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) 317 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM)
317 318
318kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro 319kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
319 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) 320 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM)
320 321
321gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro 322gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro
322 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" commonE.pro -o Makefile$(PLATFORM) 323 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM)
323 324
324gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro 325gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro
325 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" gammuE.pro -o Makefile$(PLATFORM) 326 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM)
326 327
327pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro 328pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro
328 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" pwmanagerE.pro -o Makefile$(PLATFORM) 329 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM)
330