summaryrefslogtreecommitdiffabout
path: root/Makefile.Embedded
authorulf69 <ulf69>2004-07-16 22:35:55 (UTC)
committer ulf69 <ulf69>2004-07-16 22:35:55 (UTC)
commit2670b9dec6a26a22eb6063b0f7837984c935c765 (patch) (unidiff)
tree56b2cb3dfbb5183bc5d3c99fb25c8bb4d4452976 /Makefile.Embedded
parent459450056e121043c09f75eb610fdf7824af7b3b (diff)
downloadkdepimpi-2670b9dec6a26a22eb6063b0f7837984c935c765.zip
kdepimpi-2670b9dec6a26a22eb6063b0f7837984c935c765.tar.gz
kdepimpi-2670b9dec6a26a22eb6063b0f7837984c935c765.tar.bz2
added env variables to control the buildprocess
Diffstat (limited to 'Makefile.Embedded') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.Embedded156
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
@@ -3,3 +3,9 @@ DISTDIR = $(shell basename $(DISTPATH))
3 3
4SUBDIRS = libical/src/libical \ 4ifeq ($(PLATFORM) , zaurus)
5 BUILD_NO_LDAP_PLUGIN=1
6endif
7
8
9SUBDIRS_MAIN = \
10 libical/src/libical \
5 libical/src/libicalss \ 11 libical/src/libicalss \
@@ -10,5 +16,2 @@ SUBDIRS = libical/src/libical \
10 kabc \ 16 kabc \
11 kabc/converter/opie \
12 kabc/converter/qtopia \
13 kabc/converter/sharpdtm \
14 kabc/formats/binary \ 17 kabc/formats/binary \
@@ -16,15 +19,44 @@ SUBDIRS = libical/src/libical \
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
28all: tmake 24SUBDIRS_QTOPIA_PLUGIN = \
29 for i in $(SUBDIRS); do pushd $$i; \ 25 kabc/converter/qtopia \
26 kabc/plugins/qtopia \
27 kaddressbook/xxport/qtopia
28
29SUBDIRS_OPIE_PLUGIN = \
30 kabc/converter/opie \
31 kabc/plugins/opie \
32 kaddressbook/xxport/opie
33
34SUBDIRS_SHARP_PLUGIN = \
35 kabc/converter/sharpdtm \
36 kabc/plugins/sharpdtm \
37 kaddressbook/xxport/sharpdtm
38
39SUBDIRS_LDAP_PLUGIN = \
40 kabc/plugins/ldap
41
42SUBDIRS_MICROMAIL = \
43 kmicromail/libetpan \
44 kmicromail/libmailwrapper \
45 kmicromail
46
47all: build_main \
48 build_qtopia_plugin \
49 build_opie_plugin \
50 build_sharp_plugin \
51 build_ldap_plugin \
52 build_micromail
53
54
55build_main: variable_info tmake
56 for i in $(SUBDIRS_MAIN); do pushd $$i; \
57 make -f Makefile$(PLATFORM) || exit 1; popd; \
58 done
59
60build_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; \
@@ -32,2 +64,70 @@ all: tmake
32 64
65build_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
74build_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
83build_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
93build_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
103variable_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
117variable_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
33objects: 133objects:
@@ -44,4 +144,6 @@ 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
@@ -52,8 +154,16 @@ dist:
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
56tmake: objects qtcompat/Makefile$(PLATFORM) microkde/Makefile$(PLATFORM) \ 163tmake: 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) \
@@ -75,3 +185,7 @@ tmake: objects qtcompat/Makefile$(PLATFORM) microkde/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
@@ -151 +265,9 @@ kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
151 265
266kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
267 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM)
268
269kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro
270 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM)
271
272kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
273 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM)