author | ulf69 <ulf69> | 2004-07-20 21:24:21 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-20 21:24:21 (UTC) |
commit | fba0c028ac0ce15d0f7473439e025c56f108145e (patch) (unidiff) | |
tree | 0083bc96ac335f52d0d346f51737112652ca5b9f /Makefile.Embedded | |
parent | 94636524739ecaa2206ca2cace3c460010df3a18 (diff) | |
download | kdepimpi-fba0c028ac0ce15d0f7473439e025c56f108145e.zip kdepimpi-fba0c028ac0ce15d0f7473439e025c56f108145e.tar.gz kdepimpi-fba0c028ac0ce15d0f7473439e025c56f108145e.tar.bz2 |
check if PLATFORM is defined
-rw-r--r-- | Makefile.Embedded | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.Embedded b/Makefile.Embedded index 7777a19..826e70e 100644 --- a/Makefile.Embedded +++ b/Makefile.Embedded | |||
@@ -39,192 +39,196 @@ SUBDIRS_SHARP_PLUGIN = \ | |||
39 | kabc/converter/sharpdtm \ | 39 | kabc/converter/sharpdtm \ |
40 | kabc/plugins/sharpdtm \ | 40 | kabc/plugins/sharpdtm \ |
41 | kaddressbook/xxport/sharpdtm | 41 | kaddressbook/xxport/sharpdtm |
42 | 42 | ||
43 | SUBDIRS_LDAP_PLUGIN = \ | 43 | SUBDIRS_LDAP_PLUGIN = \ |
44 | kabc/plugins/ldap | 44 | kabc/plugins/ldap |
45 | 45 | ||
46 | SUBDIRS_MICROMAIL = \ | 46 | SUBDIRS_MICROMAIL = \ |
47 | kmicromail/libetpan \ | 47 | kmicromail/libetpan \ |
48 | kmicromail/libmailwrapper \ | 48 | kmicromail/libmailwrapper \ |
49 | kmicromail | 49 | kmicromail |
50 | 50 | ||
51 | SUBDIRS = \ | 51 | SUBDIRS = \ |
52 | $(SUBDIRS_MICROKDE) \ | 52 | $(SUBDIRS_MICROKDE) \ |
53 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 53 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
54 | $(SUBDIRS_OPIE_PLUGIN) \ | 54 | $(SUBDIRS_OPIE_PLUGIN) \ |
55 | $(SUBDIRS_SHARP_PLUGIN) \ | 55 | $(SUBDIRS_SHARP_PLUGIN) \ |
56 | $(SUBDIRS_LDAP_PLUGIN) \ | 56 | $(SUBDIRS_LDAP_PLUGIN) \ |
57 | $(SUBDIRS_MICROMAIL) | 57 | $(SUBDIRS_MICROMAIL) |
58 | 58 | ||
59 | 59 | ||
60 | all: build_microkde \ | 60 | all: build_microkde \ |
61 | build_qtopia_plugin \ | 61 | build_qtopia_plugin \ |
62 | build_opie_plugin \ | 62 | build_opie_plugin \ |
63 | build_sharp_plugin \ | 63 | build_sharp_plugin \ |
64 | build_ldap_plugin \ | 64 | build_ldap_plugin \ |
65 | build_micromail | 65 | build_micromail |
66 | 66 | ||
67 | 67 | ||
68 | build_microkde: variable_test tmake | 68 | build_microkde: variable_test tmake |
69 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ | 69 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ |
70 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 70 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
71 | done | 71 | done |
72 | 72 | ||
73 | build_qtopia_plugin: build_microkde | 73 | build_qtopia_plugin: build_microkde |
74 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ | 74 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ |
75 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 75 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
76 | done | 76 | done |
77 | 77 | ||
78 | build_opie_plugin: build_microkde | 78 | build_opie_plugin: build_microkde |
79 | ifdef BUILD_NO_OPIE_PLUGIN | 79 | ifdef BUILD_NO_OPIE_PLUGIN |
80 | @echo ---> opie plugin not build. | 80 | @echo ---> opie plugin not build. |
81 | else | 81 | else |
82 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ | 82 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ |
83 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 83 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
84 | done | 84 | done |
85 | endif | 85 | endif |
86 | 86 | ||
87 | build_sharp_plugin: build_microkde | 87 | build_sharp_plugin: build_microkde |
88 | ifdef BUILD_NO_SHARP_PLUGIN | 88 | ifdef BUILD_NO_SHARP_PLUGIN |
89 | @echo ---> ldap plugin not build. | 89 | @echo ---> ldap plugin not build. |
90 | else | 90 | else |
91 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ | 91 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ |
92 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 92 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
93 | done | 93 | done |
94 | endif | 94 | endif |
95 | 95 | ||
96 | build_ldap_plugin: build_microkde | 96 | build_ldap_plugin: build_microkde |
97 | ifdef BUILD_NO_LDAP_PLUGIN | 97 | ifdef BUILD_NO_LDAP_PLUGIN |
98 | @echo ---> ldap plugin not build. | 98 | @echo ---> ldap plugin not build. |
99 | else | 99 | else |
100 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ | 100 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ |
101 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 101 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
102 | done | 102 | done |
103 | endif | 103 | endif |
104 | 104 | ||
105 | 105 | ||
106 | build_micromail: build_microkde | 106 | build_micromail: build_microkde |
107 | ifdef BUILD_NO_MICROMAIL | 107 | ifdef BUILD_NO_MICROMAIL |
108 | @echo ---> micromail not build. | 108 | @echo ---> micromail not build. |
109 | else | 109 | else |
110 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ | 110 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ |
111 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 111 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
112 | done | 112 | done |
113 | endif | 113 | endif |
114 | 114 | ||
115 | 115 | ||
116 | variable_info: | 116 | variable_info: |
117 | @echo -------------------------------------- | 117 | @echo -------------------------------------- |
118 | @echo KDEPIM buildsystem, variableinfo... | 118 | @echo KDEPIM buildsystem, variableinfo... |
119 | @echo QTDIR=$(QTDIR) | 119 | @echo QTDIR=$(QTDIR) |
120 | @echo QPEDIR=$(QPEDIR) | 120 | @echo QPEDIR=$(QPEDIR) |
121 | @echo OPIEDIR=$(OPIEDIR) | 121 | @echo OPIEDIR=$(OPIEDIR) |
122 | @echo PLATFORM=$(PLATFORM) | 122 | @echo PLATFORM=$(PLATFORM) |
123 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) | 123 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) |
124 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) | 124 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) |
125 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) | 125 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) |
126 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) | 126 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) |
127 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) | 127 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) |
128 | ifndef BUILD_NO_SHARP_PLUGIN | 128 | ifndef BUILD_NO_SHARP_PLUGIN |
129 | @echo SHARPDTMSDK=$(SHARPDTMSDK) | 129 | @echo SHARPDTMSDK=$(SHARPDTMSDK) |
130 | endif | 130 | endif |
131 | @echo -------------------------------------- | 131 | @echo -------------------------------------- |
132 | 132 | ||
133 | variable_test: variable_info | 133 | variable_test: variable_info |
134 | @echo KDEPIM buildsystem, variablecheck... | 134 | @echo KDEPIM buildsystem, variablecheck... |
135 | ifndef PLATFORM | ||
136 | @echo PLATFORM is not defined. | ||
137 | $(error PLATFORM is not defined) | ||
138 | endif | ||
135 | ifdef BUILD_NO_LDAP_PLUGIN | 139 | ifdef BUILD_NO_LDAP_PLUGIN |
136 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | 140 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) |
137 | endif | 141 | endif |
138 | ifdef BUILD_NO_OPIE_PLUGIN | 142 | ifdef BUILD_NO_OPIE_PLUGIN |
139 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | 143 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) |
140 | endif | 144 | endif |
141 | ifdef BUILD_NO_MICROMAIL | 145 | ifdef BUILD_NO_MICROMAIL |
142 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | 146 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) |
143 | endif | 147 | endif |
144 | ifdef BUILD_NO_SHARP_PLUGIN | 148 | ifdef BUILD_NO_SHARP_PLUGIN |
145 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | 149 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) |
146 | else | 150 | else |
147 | ifndef SHARPDTMSDK | 151 | ifndef SHARPDTMSDK |
148 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) | 152 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) |
149 | $(error SHARPDTMSDK is not defined) | 153 | $(error SHARPDTMSDK is not defined) |
150 | endif | 154 | endif |
151 | endif | 155 | endif |
152 | @echo -------------------------------------- | 156 | @echo -------------------------------------- |
153 | 157 | ||
154 | 158 | ||
155 | objects: | 159 | objects: |
156 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 160 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
157 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 161 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
158 | mkdir -p libical/lib/$(PLATFORM) | 162 | mkdir -p libical/lib/$(PLATFORM) |
159 | 163 | ||
160 | clean: | 164 | clean: |
161 | rm -f libical/lib/$(PLATFORM)/*; | 165 | rm -f libical/lib/$(PLATFORM)/*; |
162 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 166 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
163 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 167 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ |
164 | done | 168 | done |
165 | install: | 169 | install: |
166 | cd bin/kdepim; make install | 170 | cd bin/kdepim; make install |
167 | cp db2file/db2file $(QPEDIR)/bin/db2file | 171 | cp db2file/db2file $(QPEDIR)/bin/db2file |
168 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 172 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
169 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 173 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
170 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | 174 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop |
171 | 175 | ||
172 | dist: | 176 | dist: |
173 | @echo Dont forget to do "make install" before "make dist" | 177 | @echo Dont forget to do "make install" before "make dist" |
174 | rm -f *arm.ipk | 178 | rm -f *arm.ipk |
175 | rm -f *~ | 179 | rm -f *~ |
176 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim | 180 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim |
177 | ./mkipks kmicrokdelibs.control | 181 | ./mkipks kmicrokdelibs.control |
178 | ./mkipks korganizer.control | 182 | ./mkipks korganizer.control |
179 | ./mkipks kaddressbook.control | 183 | ./mkipks kaddressbook.control |
180 | ifndef BUILD_NO_MICROMAIL | 184 | ifndef BUILD_NO_MICROMAIL |
181 | ./mkipks kopiemail.control | 185 | ./mkipks kopiemail.control |
182 | endif | 186 | endif |
183 | ./mkipks korganizer-alarm.control | 187 | ./mkipks korganizer-alarm.control |
184 | 188 | ||
185 | tmake: objects \ | 189 | tmake: objects \ |
186 | qtcompat/Makefile$(PLATFORM) \ | 190 | qtcompat/Makefile$(PLATFORM) \ |
187 | microkde/Makefile$(PLATFORM) \ | 191 | microkde/Makefile$(PLATFORM) \ |
188 | libkcal/Makefile$(PLATFORM) \ | 192 | libkcal/Makefile$(PLATFORM) \ |
189 | libkdepim/Makefile$(PLATFORM) \ | 193 | libkdepim/Makefile$(PLATFORM) \ |
190 | korganizer/Makefile$(PLATFORM) \ | 194 | korganizer/Makefile$(PLATFORM) \ |
191 | kalarmd/Makefile$(PLATFORM) \ | 195 | kalarmd/Makefile$(PLATFORM) \ |
192 | libical/src/libical/Makefile$(PLATFORM) \ | 196 | libical/src/libical/Makefile$(PLATFORM) \ |
193 | libical/src/libicalss/Makefile$(PLATFORM) \ | 197 | libical/src/libicalss/Makefile$(PLATFORM) \ |
194 | kabc/Makefile$(PLATFORM) \ | 198 | kabc/Makefile$(PLATFORM) \ |
195 | kabc/converter/opie/Makefile$(PLATFORM) \ | 199 | kabc/converter/opie/Makefile$(PLATFORM) \ |
196 | kabc/converter/qtopia/Makefile$(PLATFORM) \ | 200 | kabc/converter/qtopia/Makefile$(PLATFORM) \ |
197 | kabc/converter/sharpdtm/Makefile$(PLATFORM) \ | 201 | kabc/converter/sharpdtm/Makefile$(PLATFORM) \ |
198 | kabc/formats/binary/Makefile$(PLATFORM) \ | 202 | kabc/formats/binary/Makefile$(PLATFORM) \ |
199 | kabc/plugins/file/Makefile$(PLATFORM) \ | 203 | kabc/plugins/file/Makefile$(PLATFORM) \ |
200 | kabc/plugins/dir/Makefile$(PLATFORM) \ | 204 | kabc/plugins/dir/Makefile$(PLATFORM) \ |
201 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | 205 | kabc/plugins/ldap/Makefile$(PLATFORM) \ |
202 | kabc/plugins/opie/Makefile$(PLATFORM) \ | 206 | kabc/plugins/opie/Makefile$(PLATFORM) \ |
203 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ | 207 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ |
204 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ | 208 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ |
205 | kaddressbook/xxport/opie/Makefile$(PLATFORM) \ | 209 | kaddressbook/xxport/opie/Makefile$(PLATFORM) \ |
206 | kaddressbook/xxport/qtopia/Makefile$(PLATFORM) \ | 210 | kaddressbook/xxport/qtopia/Makefile$(PLATFORM) \ |
207 | kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM) \ | 211 | kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM) \ |
208 | kaddressbook/Makefile$(PLATFORM) \ | 212 | kaddressbook/Makefile$(PLATFORM) \ |
209 | kmicromail/Makefile$(PLATFORM) \ | 213 | kmicromail/Makefile$(PLATFORM) \ |
210 | kmicromail/libetpan/Makefile$(PLATFORM) \ | 214 | kmicromail/libetpan/Makefile$(PLATFORM) \ |
211 | kmicromail/libmailwrapper/Makefile$(PLATFORM) | 215 | kmicromail/libmailwrapper/Makefile$(PLATFORM) |
212 | 216 | ||
213 | 217 | ||
214 | 218 | ||
215 | 219 | ||
216 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | 220 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro |
217 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) | 221 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) |
218 | 222 | ||
219 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | 223 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro |
220 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) | 224 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) |
221 | 225 | ||
222 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | 226 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro |
223 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) | 227 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) |
224 | 228 | ||
225 | 229 | ||
226 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | 230 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro |
227 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) | 231 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) |
228 | 232 | ||
229 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | 233 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro |
230 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) | 234 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) |