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