summaryrefslogtreecommitdiffabout
path: root/Makefile.Embedded
Unidiff
Diffstat (limited to 'Makefile.Embedded') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.Embedded10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.Embedded b/Makefile.Embedded
index 38fd000..9b55ecf 100644
--- a/Makefile.Embedded
+++ b/Makefile.Embedded
@@ -1,50 +1,49 @@
1DISTPATH = $(shell pwd) 1export KDEPIMDIR = $(shell pwd)
2DISTDIR = $(shell basename $(DISTPATH))
3 2
4 3
5ifeq ($(PLATFORM) , zaurus) 4ifeq ($(PLATFORM) , zaurus)
6 BUILD_NO_LDAP_PLUGIN=1 5 BUILD_NO_LDAP_PLUGIN=1
7endif 6endif
8 7
9ifneq ($(PLATFORM) , zaurus) 8ifneq ($(PLATFORM) , zaurus)
10 BUILD_NO_SHARP_PLUGIN=1 9 BUILD_NO_SHARP_PLUGIN=1
11endif 10endif
12 11
13SUBDIRS_MICROKDE = \ 12SUBDIRS_MICROKDE = \
14 libical/src/libical \ 13 libical/src/libical \
15 libical/src/libicalss \ 14 libical/src/libicalss \
16 qtcompat \ 15 qtcompat \
17 microkde \ 16 microkde \
18 libkcal \ 17 libkcal \
19 libkdepim \ 18 libkdepim \
20 kabc \ 19 kabc \
21 kabc/formats/binary \ 20 kabc/formats/binary \
22 kabc/plugins/file \ 21 kabc/plugins/file \
23 kabc/plugins/dir \ 22 kabc/plugins/dir \
24 korganizer \ 23 korganizer \
25 kalarmd \ 24 kalarmd \
26 kaddressbook 25 kaddressbook
27 26
28SUBDIRS_QTOPIA_PLUGIN = \ 27SUBDIRS_QTOPIA_PLUGIN = \
29 kabc/plugins/qtopia 28 kabc/plugins/qtopia
30 29
31SUBDIRS_OPIE_PLUGIN = \ 30SUBDIRS_OPIE_PLUGIN = \
32 kabc/plugins/opie 31 kabc/plugins/opie
33 32
34SUBDIRS_SHARP_PLUGIN = \ 33SUBDIRS_SHARP_PLUGIN = \
35 kabc/plugins/sharpdtm 34 kabc/plugins/sharpdtm
36 35
37SUBDIRS_LDAP_PLUGIN = \ 36SUBDIRS_LDAP_PLUGIN = \
38 kabc/plugins/ldap 37 kabc/plugins/ldap
39 38
40SUBDIRS_MICROMAIL = \ 39SUBDIRS_MICROMAIL = \
41 kmicromail/libetpan \ 40 kmicromail/libetpan \
42 kmicromail/libmailwrapper \ 41 kmicromail/libmailwrapper \
43 kmicromail 42 kmicromail
44 43
45SUBDIRS = \ 44SUBDIRS = \
46 $(SUBDIRS_MICROKDE) \ 45 $(SUBDIRS_MICROKDE) \
47 $(SUBDIRS_QTOPIA_PLUGIN) \ 46 $(SUBDIRS_QTOPIA_PLUGIN) \
48 $(SUBDIRS_OPIE_PLUGIN) \ 47 $(SUBDIRS_OPIE_PLUGIN) \
49 $(SUBDIRS_SHARP_PLUGIN) \ 48 $(SUBDIRS_SHARP_PLUGIN) \
50 $(SUBDIRS_LDAP_PLUGIN) \ 49 $(SUBDIRS_LDAP_PLUGIN) \
@@ -65,143 +64,148 @@ build_microkde: variable_test tmake
65 done 64 done
66 65
67build_qtopia_plugin: build_microkde 66build_qtopia_plugin: build_microkde
68 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ 67 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \
69 make -f Makefile$(PLATFORM) || exit 1; popd; \ 68 make -f Makefile$(PLATFORM) || exit 1; popd; \
70 done 69 done
71 70
72build_opie_plugin: build_microkde 71build_opie_plugin: build_microkde
73 ifdef BUILD_NO_OPIE_PLUGIN 72 ifdef BUILD_NO_OPIE_PLUGIN
74 @echo ---> opie plugin not build. 73 @echo ---> opie plugin not build.
75 else 74 else
76 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ 75 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \
77 make -f Makefile$(PLATFORM) || exit 1; popd; \ 76 make -f Makefile$(PLATFORM) || exit 1; popd; \
78 done 77 done
79 endif 78 endif
80 79
81build_sharp_plugin: build_microkde 80build_sharp_plugin: build_microkde
82 ifdef BUILD_NO_SHARP_PLUGIN 81 ifdef BUILD_NO_SHARP_PLUGIN
83 @echo ---> ldap plugin not build. 82 @echo ---> ldap plugin not build.
84 else 83 else
85 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ 84 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \
86 make -f Makefile$(PLATFORM) || exit 1; popd; \ 85 make -f Makefile$(PLATFORM) || exit 1; popd; \
87 done 86 done
88 endif 87 endif
89 88
90build_ldap_plugin: build_microkde 89build_ldap_plugin: build_microkde
91 ifdef BUILD_NO_LDAP_PLUGIN 90 ifdef BUILD_NO_LDAP_PLUGIN
92 @echo ---> ldap plugin not build. 91 @echo ---> ldap plugin not build.
93 else 92 else
94 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 93 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
95 make -f Makefile$(PLATFORM) || exit 1; popd; \ 94 make -f Makefile$(PLATFORM) || exit 1; popd; \
96 done 95 done
97 endif 96 endif
98 97
99 98
100build_micromail: build_microkde 99build_micromail: build_microkde
101 ifdef BUILD_NO_MICROMAIL 100 ifdef BUILD_NO_MICROMAIL
102 @echo ---> micromail not build. 101 @echo ---> micromail not build.
103 else 102 else
104 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 103 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
105 make -f Makefile$(PLATFORM) || exit 1; popd; \ 104 make -f Makefile$(PLATFORM) || exit 1; popd; \
106 done 105 done
107 endif 106 endif
108 107
109 108
110variable_info: 109variable_info:
111 @echo -------------------------------------- 110 @echo --------------------------------------
112 @echo KDEPIM buildsystem, variableinfo... 111 @echo KDEPIM buildsystem, variableinfo...
112 @echo KDEPIMDIR=$(KDEPIMDIR)
113 @echo QTDIR=$(QTDIR) 113 @echo QTDIR=$(QTDIR)
114 @echo QPEDIR=$(QPEDIR) 114 @echo QPEDIR=$(QPEDIR)
115 @echo OPIEDIR=$(OPIEDIR) 115 @echo OPIEDIR=$(OPIEDIR)
116 @echo PLATFORM=$(PLATFORM) 116 @echo PLATFORM=$(PLATFORM)
117 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 117 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
118 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 118 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
119 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 119 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
120 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 120 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
121 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 121 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
122 ifndef BUILD_NO_SHARP_PLUGIN 122 ifndef BUILD_NO_SHARP_PLUGIN
123 @echo SHARPDTMSDK=$(SHARPDTMSDK) 123 @echo SHARPDTMSDK=$(SHARPDTMSDK)
124 endif 124 endif
125 @echo -------------------------------------- 125 @echo --------------------------------------
126 126
127variable_test: variable_info 127variable_test: variable_info
128 @echo KDEPIM buildsystem, variablecheck... 128 @echo KDEPIM buildsystem, variablecheck...
129 ifndef KDEPIMDIR
130 @echo KDEPIMDIR is not defined.
131 $(error KDEPIMDIR is not defined)
132 endif
129 ifndef PLATFORM 133 ifndef PLATFORM
130 @echo PLATFORM is not defined. 134 @echo PLATFORM is not defined.
131 $(error PLATFORM is not defined) 135 $(error PLATFORM is not defined)
132 endif 136 endif
133 ifdef BUILD_NO_LDAP_PLUGIN 137 ifdef BUILD_NO_LDAP_PLUGIN
134 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 138 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
135 endif 139 endif
136 ifdef BUILD_NO_OPIE_PLUGIN 140 ifdef BUILD_NO_OPIE_PLUGIN
137 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 141 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
138 endif 142 endif
139 ifdef BUILD_NO_MICROMAIL 143 ifdef BUILD_NO_MICROMAIL
140 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 144 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
141 endif 145 endif
142 ifdef BUILD_NO_SHARP_PLUGIN 146 ifdef BUILD_NO_SHARP_PLUGIN
143 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 147 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
144 else 148 else
145 ifndef SHARPDTMSDK 149 ifndef SHARPDTMSDK
146 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 150 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
147 $(error SHARPDTMSDK is not defined) 151 $(error SHARPDTMSDK is not defined)
148 endif 152 endif
149 endif 153 endif
150 @echo -------------------------------------- 154 @echo --------------------------------------
151 155
152 156
153objects: 157objects:
154 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 158 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
155 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 159 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
156 mkdir -p libical/lib/$(PLATFORM) 160 mkdir -p libical/lib/$(PLATFORM)
157 161
158clean: 162clean:
159 rm -f libical/lib/$(PLATFORM)/*; 163 rm -rf libical/lib/$(PLATFORM)/*;
160 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 164 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
161 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 165 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
162 done 166 done
163install: 167install:
164 cd bin/kdepim; make install 168 cd bin/kdepim; make install
165 cp db2file/db2file $(QPEDIR)/bin/db2file 169 cp db2file/db2file $(QPEDIR)/bin/db2file
166 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 170 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
167 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 171 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
168 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop 172 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop
169 173
170dist: 174dist:
171 @echo Dont forget to do "make install" before "make dist" 175 @echo Dont forget to do "make install" before "make dist"
172 rm -f *arm.ipk 176 rm -f *arm.ipk
173 rm -f *~ 177 rm -f *~
174 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim 178 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim
175 ./mkipks kmicrokdelibs.control 179 ./mkipks kmicrokdelibs.control
176 ./mkipks korganizer.control 180 ./mkipks korganizer.control
177 ./mkipks kaddressbook.control 181 ./mkipks kaddressbook.control
178 ifndef BUILD_NO_MICROMAIL 182 ifndef BUILD_NO_MICROMAIL
179 ./mkipks kopiemail.control 183 ./mkipks kopiemail.control
180 endif 184 endif
181 ./mkipks korganizer-alarm.control 185 ./mkipks korganizer-alarm.control
182 186
183tmake: objects \ 187tmake: objects \
184 qtcompat/Makefile$(PLATFORM) \ 188 qtcompat/Makefile$(PLATFORM) \
185 microkde/Makefile$(PLATFORM) \ 189 microkde/Makefile$(PLATFORM) \
186 libkcal/Makefile$(PLATFORM) \ 190 libkcal/Makefile$(PLATFORM) \
187 libkdepim/Makefile$(PLATFORM) \ 191 libkdepim/Makefile$(PLATFORM) \
188 korganizer/Makefile$(PLATFORM) \ 192 korganizer/Makefile$(PLATFORM) \
189 kalarmd/Makefile$(PLATFORM) \ 193 kalarmd/Makefile$(PLATFORM) \
190 libical/src/libical/Makefile$(PLATFORM) \ 194 libical/src/libical/Makefile$(PLATFORM) \
191 libical/src/libicalss/Makefile$(PLATFORM) \ 195 libical/src/libicalss/Makefile$(PLATFORM) \
192 kabc/Makefile$(PLATFORM) \ 196 kabc/Makefile$(PLATFORM) \
193 kabc/formats/binary/Makefile$(PLATFORM) \ 197 kabc/formats/binary/Makefile$(PLATFORM) \
194 kabc/plugins/file/Makefile$(PLATFORM) \ 198 kabc/plugins/file/Makefile$(PLATFORM) \
195 kabc/plugins/dir/Makefile$(PLATFORM) \ 199 kabc/plugins/dir/Makefile$(PLATFORM) \
196 kabc/plugins/ldap/Makefile$(PLATFORM) \ 200 kabc/plugins/ldap/Makefile$(PLATFORM) \
197 kabc/plugins/opie/Makefile$(PLATFORM) \ 201 kabc/plugins/opie/Makefile$(PLATFORM) \
198 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 202 kabc/plugins/qtopia/Makefile$(PLATFORM) \
199 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 203 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
200 kaddressbook/Makefile$(PLATFORM) \ 204 kaddressbook/Makefile$(PLATFORM) \
201 kmicromail/Makefile$(PLATFORM) \ 205 kmicromail/Makefile$(PLATFORM) \
202 kmicromail/libetpan/Makefile$(PLATFORM) \ 206 kmicromail/libetpan/Makefile$(PLATFORM) \
203 kmicromail/libmailwrapper/Makefile$(PLATFORM) 207 kmicromail/libmailwrapper/Makefile$(PLATFORM)
204 208
205 209
206 210
207 211