author | ulf69 <ulf69> | 2004-07-16 22:35:55 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-16 22:35:55 (UTC) |
commit | 2670b9dec6a26a22eb6063b0f7837984c935c765 (patch) (unidiff) | |
tree | 56b2cb3dfbb5183bc5d3c99fb25c8bb4d4452976 /Makefile.Embedded | |
parent | 459450056e121043c09f75eb610fdf7824af7b3b (diff) | |
download | kdepimpi-2670b9dec6a26a22eb6063b0f7837984c935c765.zip kdepimpi-2670b9dec6a26a22eb6063b0f7837984c935c765.tar.gz kdepimpi-2670b9dec6a26a22eb6063b0f7837984c935c765.tar.bz2 |
added env variables to control the buildprocess
-rw-r--r-- | Makefile.Embedded | 156 |
1 files changed, 139 insertions, 17 deletions
diff --git a/Makefile.Embedded b/Makefile.Embedded index 3ffa7b5..39d852f 100644 --- a/Makefile.Embedded +++ b/Makefile.Embedded | |||
@@ -1,35 +1,135 @@ | |||
1 | DISTPATH = $(shell pwd) | 1 | DISTPATH = $(shell pwd) |
2 | DISTDIR = $(shell basename $(DISTPATH)) | 2 | DISTDIR = $(shell basename $(DISTPATH)) |
3 | 3 | ||
4 | SUBDIRS = libical/src/libical \ | 4 | ifeq ($(PLATFORM) , zaurus) |
5 | BUILD_NO_LDAP_PLUGIN=1 | ||
6 | endif | ||
7 | |||
8 | |||
9 | SUBDIRS_MAIN = \ | ||
10 | libical/src/libical \ | ||
5 | libical/src/libicalss \ | 11 | libical/src/libicalss \ |
6 | qtcompat \ | 12 | qtcompat \ |
7 | microkde \ | 13 | microkde \ |
8 | libkcal \ | 14 | libkcal \ |
9 | libkdepim \ | 15 | libkdepim \ |
10 | kabc \ | 16 | kabc \ |
11 | kabc/converter/opie \ | ||
12 | kabc/converter/qtopia \ | ||
13 | kabc/converter/sharpdtm \ | ||
14 | kabc/formats/binary \ | 17 | kabc/formats/binary \ |
15 | kabc/plugins/file \ | 18 | kabc/plugins/file \ |
16 | kabc/plugins/dir \ | 19 | kabc/plugins/dir \ |
17 | kabc/plugins/ldap \ | ||
18 | kabc/plugins/opie \ | ||
19 | kabc/plugins/qtopia \ | ||
20 | kabc/plugins/sharpdtm \ | ||
21 | korganizer \ | 20 | korganizer \ |
22 | kalarmd \ | 21 | kalarmd \ |
23 | kaddressbook/xxport/opie \ | ||
24 | kaddressbook/xxport/qtopia \ | ||
25 | kaddressbook/xxport/sharpdtm \ | ||
26 | kaddressbook | 22 | kaddressbook |
27 | 23 | ||
28 | all: tmake | 24 | SUBDIRS_QTOPIA_PLUGIN = \ |
29 | for i in $(SUBDIRS); do pushd $$i; \ | 25 | kabc/converter/qtopia \ |
26 | kabc/plugins/qtopia \ | ||
27 | kaddressbook/xxport/qtopia | ||
28 | |||
29 | SUBDIRS_OPIE_PLUGIN = \ | ||
30 | kabc/converter/opie \ | ||
31 | kabc/plugins/opie \ | ||
32 | kaddressbook/xxport/opie | ||
33 | |||
34 | SUBDIRS_SHARP_PLUGIN = \ | ||
35 | kabc/converter/sharpdtm \ | ||
36 | kabc/plugins/sharpdtm \ | ||
37 | kaddressbook/xxport/sharpdtm | ||
38 | |||
39 | SUBDIRS_LDAP_PLUGIN = \ | ||
40 | kabc/plugins/ldap | ||
41 | |||
42 | SUBDIRS_MICROMAIL = \ | ||
43 | kmicromail/libetpan \ | ||
44 | kmicromail/libmailwrapper \ | ||
45 | kmicromail | ||
46 | |||
47 | all: build_main \ | ||
48 | build_qtopia_plugin \ | ||
49 | build_opie_plugin \ | ||
50 | build_sharp_plugin \ | ||
51 | build_ldap_plugin \ | ||
52 | build_micromail | ||
53 | |||
54 | |||
55 | build_main: variable_info tmake | ||
56 | for i in $(SUBDIRS_MAIN); do pushd $$i; \ | ||
57 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
58 | done | ||
59 | |||
60 | build_qtopia_plugin: build_main | ||
61 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ | ||
30 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 62 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
31 | done | 63 | done |
32 | 64 | ||
65 | build_opie_plugin: build_main | ||
66 | ifdef BUILD_NO_OPIE_PLUGIN | ||
67 | @echo ---> opie plugin not build. | ||
68 | else | ||
69 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ | ||
70 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
71 | done | ||
72 | endif | ||
73 | |||
74 | build_sharp_plugin: build_main | ||
75 | ifdef BUILD_NO_SHARP_PLUGIN | ||
76 | @echo ---> ldap plugin not build. | ||
77 | else | ||
78 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ | ||
79 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
80 | done | ||
81 | endif | ||
82 | |||
83 | build_ldap_plugin: build_main | ||
84 | ifdef BUILD_NO_LDAP_PLUGIN | ||
85 | @echo ---> ldap plugin not build. | ||
86 | else | ||
87 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ | ||
88 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
89 | done | ||
90 | endif | ||
91 | |||
92 | |||
93 | build_micromail: build_main | ||
94 | ifdef BUILD_NO_MICROMAIL | ||
95 | @echo ---> micromail not build. | ||
96 | else | ||
97 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ | ||
98 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
99 | done | ||
100 | endif | ||
101 | |||
102 | |||
103 | variable_info: variable_test | ||
104 | @echo -------------------------------------- | ||
105 | @echo KDEPIM buildsystem, variablecheck... | ||
106 | @echo QTDIR=$(QTDIR) | ||
107 | @echo QPEDIR=$(QPEDIR) | ||
108 | @echo OPIEDIR=$(OPIEDIR) | ||
109 | @echo PLATFORM=$(PLATFORM) | ||
110 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) | ||
111 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) | ||
112 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) | ||
113 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) | ||
114 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) | ||
115 | @echo -------------------------------------- | ||
116 | |||
117 | variable_test: | ||
118 | ifdef BUILD_NO_LDAP_PLUGIN | ||
119 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | ||
120 | endif | ||
121 | ifdef BUILD_NO_OPIE_PLUGIN | ||
122 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | ||
123 | endif | ||
124 | ifdef BUILD_NO_SHARP_PLUGIN | ||
125 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | ||
126 | endif | ||
127 | ifdef BUILD_NO_MICROMAIL | ||
128 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | ||
129 | endif | ||
130 | |||
131 | |||
132 | |||
33 | objects: | 133 | objects: |
34 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 134 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
35 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 135 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
@@ -42,20 +142,30 @@ clean: | |||
42 | done | 142 | done |
43 | install: | 143 | install: |
44 | cd bin/kdepim; make install | 144 | cd bin/kdepim; make install |
145 | cp db2file/db2file $(QPEDIR)/bin/db2file | ||
45 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 146 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
46 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 147 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
148 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | ||
47 | 149 | ||
48 | dist: | 150 | dist: |
49 | @echo Dont forget to do "make install" before "make dist" | 151 | @echo Dont forget to do "make install" before "make dist" |
50 | rm -f *arm.ipk | 152 | rm -f *arm.ipk |
51 | rm -f *~ | 153 | rm -f *~ |
52 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim | 154 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim |
53 | ./mkipks kdepim.control | 155 | ./mkipks kmicrokdelibs.control |
156 | ./mkipks korganizer.control | ||
157 | ./mkipks kaddressbook.control | ||
158 | ifndef BUILD_NO_MICROMAIL | ||
159 | ./mkipks kopiemail.control | ||
160 | endif | ||
54 | ./mkipks korganizer-alarm.control | 161 | ./mkipks korganizer-alarm.control |
55 | 162 | ||
56 | tmake: objects qtcompat/Makefile$(PLATFORM) microkde/Makefile$(PLATFORM) \ | 163 | tmake: objects \ |
164 | qtcompat/Makefile$(PLATFORM) \ | ||
165 | microkde/Makefile$(PLATFORM) \ | ||
57 | libkcal/Makefile$(PLATFORM) \ | 166 | libkcal/Makefile$(PLATFORM) \ |
58 | libkdepim/Makefile$(PLATFORM) korganizer/Makefile$(PLATFORM) \ | 167 | libkdepim/Makefile$(PLATFORM) \ |
168 | korganizer/Makefile$(PLATFORM) \ | ||
59 | kalarmd/Makefile$(PLATFORM) \ | 169 | kalarmd/Makefile$(PLATFORM) \ |
60 | libical/src/libical/Makefile$(PLATFORM) \ | 170 | libical/src/libical/Makefile$(PLATFORM) \ |
61 | libical/src/libicalss/Makefile$(PLATFORM) \ | 171 | libical/src/libicalss/Makefile$(PLATFORM) \ |
@@ -73,7 +183,11 @@ tmake: objects qtcompat/Makefile$(PLATFORM) microkde/Makefile$(PLATFORM) \ | |||
73 | kaddressbook/xxport/opie/Makefile$(PLATFORM) \ | 183 | kaddressbook/xxport/opie/Makefile$(PLATFORM) \ |
74 | kaddressbook/xxport/qtopia/Makefile$(PLATFORM) \ | 184 | kaddressbook/xxport/qtopia/Makefile$(PLATFORM) \ |
75 | kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM) \ | 185 | kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM) \ |
76 | kaddressbook/Makefile$(PLATFORM) | 186 | kaddressbook/Makefile$(PLATFORM) \ |
187 | kmicromail/Makefile$(PLATFORM) \ | ||
188 | kmicromail/libetpan/Makefile$(PLATFORM) \ | ||
189 | kmicromail/libmailwrapper/Makefile$(PLATFORM) | ||
190 | |||
77 | 191 | ||
78 | 192 | ||
79 | 193 | ||
@@ -149,3 +263,11 @@ kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM): kaddressbook/xxport/sharpdtm/s | |||
149 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro | 263 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro |
150 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) | 264 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) |
151 | 265 | ||
266 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro | ||
267 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) | ||
268 | |||
269 | kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro | ||
270 | cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) | ||
271 | |||
272 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | ||
273 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) | ||