|
diff --git a/Makefile b/Makefile index 01439bd..3be5bb3 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,303 +1,171 @@ |
1 | export KDEPIMDIR = $(shell pwd) |
1 | ############################################################################# |
| |
2 | # Makefile for building: kdepim-desktop |
| |
3 | # Generated by qmake (1.07a) (Qt 3.3.2) on: Sun Sep 12 12:10:39 2004 |
| |
4 | # Project: kdepim-desktop.pro |
| |
5 | # Template: subdirs |
| |
6 | # Command: $(QMAKE) -o Makefile kdepim-desktop.pro |
| |
7 | ############################################################################# |
| |
8 | |
| |
9 | MAKEFILE =Makefile |
| |
10 | QMAKE =qmake |
| |
11 | DEL_FILE = rm -f |
| |
12 | CHK_DIR_EXISTS= test -d |
| |
13 | MKDIR = mkdir -p |
| |
14 | INSTALL_FILE= |
| |
15 | INSTALL_DIR = |
| |
16 | SUBTARGETS = \ |
| |
17 | sub-gammu-emb-common \ |
| |
18 | sub-gammu-emb-gammu \ |
| |
19 | sub-libical \ |
| |
20 | sub-libkcal \ |
| |
21 | sub-microkde \ |
| |
22 | sub-libkdepim \ |
| |
23 | sub-kabc \ |
| |
24 | sub-korganizer \ |
| |
25 | sub-kaddressbook \ |
| |
26 | sub-kabc-plugins-file \ |
| |
27 | sub-kabc-plugins-dir |
| |
28 | |
| |
29 | first: all |
| |
30 | |
| |
31 | all: Makefile $(SUBTARGETS) |
| |
32 | |
| |
33 | gammu/emb/common/$(MAKEFILE): |
| |
34 | @$(CHK_DIR_EXISTS) "gammu/emb/common" || $(MKDIR) "gammu/emb/common" |
| |
35 | cd gammu/emb/common && $(QMAKE) common.pro -o $(MAKEFILE) |
| |
36 | sub-gammu-emb-common: gammu/emb/common/$(MAKEFILE) FORCE |
| |
37 | cd gammu/emb/common && $(MAKE) -f $(MAKEFILE) |
| |
38 | |
| |
39 | gammu/emb/gammu/$(MAKEFILE): |
| |
40 | @$(CHK_DIR_EXISTS) "gammu/emb/gammu" || $(MKDIR) "gammu/emb/gammu" |
| |
41 | cd gammu/emb/gammu && $(QMAKE) gammu.pro -o $(MAKEFILE) |
| |
42 | sub-gammu-emb-gammu: gammu/emb/gammu/$(MAKEFILE) FORCE |
| |
43 | cd gammu/emb/gammu && $(MAKE) -f $(MAKEFILE) |
| |
44 | |
| |
45 | libical/$(MAKEFILE): |
| |
46 | @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical" |
| |
47 | cd libical && $(QMAKE) libical.pro -o $(MAKEFILE) |
| |
48 | sub-libical: libical/$(MAKEFILE) FORCE |
| |
49 | cd libical && $(MAKE) -f $(MAKEFILE) |
| |
50 | |
| |
51 | libkcal/$(MAKEFILE): |
| |
52 | @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal" |
| |
53 | cd libkcal && $(QMAKE) libkcal.pro -o $(MAKEFILE) |
| |
54 | sub-libkcal: libkcal/$(MAKEFILE) FORCE |
| |
55 | cd libkcal && $(MAKE) -f $(MAKEFILE) |
| |
56 | |
| |
57 | microkde/$(MAKEFILE): |
| |
58 | @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde" |
| |
59 | cd microkde && $(QMAKE) microkde.pro -o $(MAKEFILE) |
| |
60 | sub-microkde: microkde/$(MAKEFILE) FORCE |
| |
61 | cd microkde && $(MAKE) -f $(MAKEFILE) |
| |
62 | |
| |
63 | libkdepim/$(MAKEFILE): |
| |
64 | @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim" |
| |
65 | cd libkdepim && $(QMAKE) libkdepim.pro -o $(MAKEFILE) |
| |
66 | sub-libkdepim: libkdepim/$(MAKEFILE) FORCE |
| |
67 | cd libkdepim && $(MAKE) -f $(MAKEFILE) |
| |
68 | |
| |
69 | kabc/$(MAKEFILE): |
| |
70 | @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc" |
| |
71 | cd kabc && $(QMAKE) kabc.pro -o $(MAKEFILE) |
| |
72 | sub-kabc: kabc/$(MAKEFILE) FORCE |
| |
73 | cd kabc && $(MAKE) -f $(MAKEFILE) |
| |
74 | |
| |
75 | korganizer/$(MAKEFILE): |
| |
76 | @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer" |
| |
77 | cd korganizer && $(QMAKE) korganizer.pro -o $(MAKEFILE) |
| |
78 | sub-korganizer: korganizer/$(MAKEFILE) FORCE |
| |
79 | cd korganizer && $(MAKE) -f $(MAKEFILE) |
| |
80 | |
| |
81 | kaddressbook/$(MAKEFILE): |
| |
82 | @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook" |
| |
83 | cd kaddressbook && $(QMAKE) kaddressbook.pro -o $(MAKEFILE) |
| |
84 | sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE |
| |
85 | cd kaddressbook && $(MAKE) -f $(MAKEFILE) |
| |
86 | |
| |
87 | kabc/plugins/file/$(MAKEFILE): |
| |
88 | @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" |
| |
89 | cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE) |
| |
90 | sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE |
| |
91 | cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) |
| |
92 | |
| |
93 | kabc/plugins/dir/$(MAKEFILE): |
| |
94 | @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir" |
| |
95 | cd kabc/plugins/dir && $(QMAKE) dir.pro -o $(MAKEFILE) |
| |
96 | sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE |
| |
97 | cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE) |
| |
98 | |
| |
99 | Makefile: kdepim-desktop.pro /usr/local/qtgcc/mkspecs/default/qmake.conf |
| |
100 | $(QMAKE) -o Makefile kdepim-desktop.pro |
| |
101 | qmake: qmake_all |
| |
102 | @$(QMAKE) -o Makefile kdepim-desktop.pro |
| |
103 | |
| |
104 | all: $(SUBTARGETS) |
| |
105 | qmake_all: gammu/emb/common/$(MAKEFILE) gammu/emb/gammu/$(MAKEFILE) libical/$(MAKEFILE) libkcal/$(MAKEFILE) microkde/$(MAKEFILE) libkdepim/$(MAKEFILE) kabc/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE) |
| |
106 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
107 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
108 | ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
109 | ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
110 | ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
111 | ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
112 | ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
113 | ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
114 | ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
115 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
116 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
| |
117 | clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE |
| |
118 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
119 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
120 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
121 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
122 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
123 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
124 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
125 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
126 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
127 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
128 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
| |
129 | uninstall_subdirs: qmake_all FORCE |
| |
130 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
131 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
132 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
133 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
134 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
135 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
136 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
137 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
138 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
139 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
140 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
| |
141 | install_subdirs: qmake_all FORCE |
| |
142 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
143 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
144 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
145 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
146 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
147 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
148 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
149 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
150 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
151 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
152 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true |
| |
153 | distclean: qmake_all FORCE |
| |
154 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
155 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
156 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
157 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
158 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
159 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
160 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
161 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
162 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
163 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
164 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
| |
165 | |
| |
166 | install: install_subdirs |
| |
167 | |
| |
168 | uninstall: uninstall_subdirs |
| |
169 | |
| |
170 | FORCE: |
2 | |
171 | |
3 | |
| |
4 | ifeq ($(PLATFORM) , zaurus) |
| |
5 | BUILD_NO_LDAP_PLUGIN=1 |
| |
6 | endif |
| |
7 | |
| |
8 | ifneq ($(PLATFORM) , zaurus) |
| |
9 | BUILD_NO_SHARP_PLUGIN=1 |
| |
10 | endif |
| |
11 | |
| |
12 | SUBDIRS_MICROKDE = \ |
| |
13 | libical/src/libical \ |
| |
14 | libical/src/libicalss \ |
| |
15 | qtcompat \ |
| |
16 | microkde \ |
| |
17 | libkcal \ |
| |
18 | libkdepim \ |
| |
19 | kabc \ |
| |
20 | kabc/formats/binary \ |
| |
21 | kabc/plugins/file \ |
| |
22 | kabc/plugins/dir \ |
| |
23 | korganizer \ |
| |
24 | kalarmd \ |
| |
25 | kaddressbook |
| |
26 | |
| |
27 | SUBDIRS_QTOPIA_PLUGIN = \ |
| |
28 | kabc/plugins/qtopia |
| |
29 | |
| |
30 | SUBDIRS_OPIE_PLUGIN = \ |
| |
31 | kabc/plugins/opie |
| |
32 | |
| |
33 | SUBDIRS_SHARP_PLUGIN = \ |
| |
34 | kabc/plugins/sharpdtm |
| |
35 | |
| |
36 | SUBDIRS_LDAP_PLUGIN = \ |
| |
37 | kabc/plugins/ldap |
| |
38 | |
| |
39 | SUBDIRS_MICROMAIL = \ |
| |
40 | kmicromail/libetpan \ |
| |
41 | kmicromail/libmailwrapper \ |
| |
42 | kmicromail |
| |
43 | |
| |
44 | SUBDIRS_GAMMU = \ |
| |
45 | gammu/emb/common \ |
| |
46 | gammu/emb/gammu |
| |
47 | |
| |
48 | SUBDIRS = \ |
| |
49 | $(SUBDIRS_MICROKDE) \ |
| |
50 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
| |
51 | $(SUBDIRS_OPIE_PLUGIN) \ |
| |
52 | $(SUBDIRS_SHARP_PLUGIN) \ |
| |
53 | $(SUBDIRS_LDAP_PLUGIN) \ |
| |
54 | $(SUBDIRS_MICROMAIL) \ |
| |
55 | $(SUBDIRS_GAMMU) |
| |
56 | |
| |
57 | all: build_microkde \ |
| |
58 | build_qtopia_plugin \ |
| |
59 | build_opie_plugin \ |
| |
60 | build_sharp_plugin \ |
| |
61 | build_ldap_plugin \ |
| |
62 | build_micromail \ |
| |
63 | build_gammu |
| |
64 | |
| |
65 | |
| |
66 | build_microkde: variable_test tmake |
| |
67 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ |
| |
68 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
69 | done |
| |
70 | |
| |
71 | build_qtopia_plugin: build_microkde |
| |
72 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ |
| |
73 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
74 | done |
| |
75 | |
| |
76 | build_opie_plugin: build_microkde |
| |
77 | ifdef BUILD_NO_OPIE_PLUGIN |
| |
78 | @echo == opie plugin not build. |
| |
79 | else |
| |
80 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ |
| |
81 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
82 | done |
| |
83 | endif |
| |
84 | |
| |
85 | build_sharp_plugin: build_microkde |
| |
86 | ifdef BUILD_NO_SHARP_PLUGIN |
| |
87 | @echo == ldap plugin not build. |
| |
88 | else |
| |
89 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ |
| |
90 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
91 | done |
| |
92 | endif |
| |
93 | |
| |
94 | build_ldap_plugin: build_microkde |
| |
95 | ifdef BUILD_NO_LDAP_PLUGIN |
| |
96 | @echo == ldap plugin not build. |
| |
97 | else |
| |
98 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ |
| |
99 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
100 | done |
| |
101 | endif |
| |
102 | |
| |
103 | |
| |
104 | build_micromail: build_microkde |
| |
105 | ifdef BUILD_NO_MICROMAIL |
| |
106 | @echo == kmicromail not build. |
| |
107 | else |
| |
108 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ |
| |
109 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
110 | done |
| |
111 | endif |
| |
112 | |
| |
113 | build_gammu: variable_test tmake |
| |
114 | ifdef BUILD_NO_GAMMU |
| |
115 | @echo == gammu not build. |
| |
116 | else |
| |
117 | for i in $(SUBDIRS_GAMMU); do pushd $$i; \ |
| |
118 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
| |
119 | done |
| |
120 | endif |
| |
121 | |
| |
122 | |
| |
123 | variable_info: |
| |
124 | @echo -------------------------------------- |
| |
125 | @echo KDEPIM buildsystem, variableinfo... |
| |
126 | @echo KDEPIMDIR=$(KDEPIMDIR) |
| |
127 | @echo QTDIR=$(QTDIR) |
| |
128 | @echo QPEDIR=$(QPEDIR) |
| |
129 | @echo OPIEDIR=$(OPIEDIR) |
| |
130 | @echo PLATFORM=$(PLATFORM) |
| |
131 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) |
| |
132 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) |
| |
133 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) |
| |
134 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) |
| |
135 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) |
| |
136 | ifndef BUILD_NO_SHARP_PLUGIN |
| |
137 | @echo SHARPDTMSDK=$(SHARPDTMSDK) |
| |
138 | endif |
| |
139 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) |
| |
140 | @echo -------------------------------------- |
| |
141 | |
| |
142 | variable_test: variable_info |
| |
143 | @echo KDEPIM buildsystem, variablecheck... |
| |
144 | ifndef KDEPIMDIR |
| |
145 | @echo KDEPIMDIR is not defined. |
| |
146 | $(error KDEPIMDIR is not defined) |
| |
147 | endif |
| |
148 | ifndef PLATFORM |
| |
149 | @echo PLATFORM is not defined. |
| |
150 | $(error PLATFORM is not defined) |
| |
151 | endif |
| |
152 | ifdef BUILD_NO_LDAP_PLUGIN |
| |
153 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) |
| |
154 | endif |
| |
155 | ifdef BUILD_NO_OPIE_PLUGIN |
| |
156 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) |
| |
157 | endif |
| |
158 | ifdef BUILD_NO_MICROMAIL |
| |
159 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) |
| |
160 | endif |
| |
161 | ifdef BUILD_NO_SHARP_PLUGIN |
| |
162 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) |
| |
163 | else |
| |
164 | ifndef SHARPDTMSDK |
| |
165 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) |
| |
166 | $(error SHARPDTMSDK is not defined) |
| |
167 | endif |
| |
168 | endif |
| |
169 | ifdef BUILD_NO_GAMMU |
| |
170 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) |
| |
171 | endif |
| |
172 | @echo -------------------------------------- |
| |
173 | |
| |
174 | |
| |
175 | objects: |
| |
176 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
| |
177 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
| |
178 | mkdir -p libical/lib/$(PLATFORM) |
| |
179 | |
| |
180 | clean: |
| |
181 | rm -rf libical/lib/$(PLATFORM)/*; |
| |
182 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
| |
183 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ |
| |
184 | done |
| |
185 | install: |
| |
186 | |
| |
187 | cd bin/kdepim; make install |
| |
188 | cp -r Pim $(QPEDIR)/apps |
| |
189 | cp db2file/db2file $(QPEDIR)/bin/db2file |
| |
190 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
| |
191 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
| |
192 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop |
| |
193 | |
| |
194 | dist: |
| |
195 | @echo Dont forget to do "make install" before "make dist" |
| |
196 | rm -f *arm.ipk |
| |
197 | rm -f *~ |
| |
198 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim |
| |
199 | ./mkipks kmicrokdelibs.control |
| |
200 | ./mkipks korganizer.control |
| |
201 | ./mkipks kaddressbook.control |
| |
202 | ifndef BUILD_NO_MICROMAIL |
| |
203 | ./mkipks kopiemail.control |
| |
204 | endif |
| |
205 | ./mkipks korganizer-alarm.control |
| |
206 | ifndef BUILD_NO_GAMMU |
| |
207 | ./mkipks kammu.control |
| |
208 | endif |
| |
209 | ./mkipks pim_TAB_icon.control |
| |
210 | |
| |
211 | tmake: objects \ |
| |
212 | qtcompat/Makefile$(PLATFORM) \ |
| |
213 | microkde/Makefile$(PLATFORM) \ |
| |
214 | libkcal/Makefile$(PLATFORM) \ |
| |
215 | libkdepim/Makefile$(PLATFORM) \ |
| |
216 | korganizer/Makefile$(PLATFORM) \ |
| |
217 | kalarmd/Makefile$(PLATFORM) \ |
| |
218 | libical/src/libical/Makefile$(PLATFORM) \ |
| |
219 | libical/src/libicalss/Makefile$(PLATFORM) \ |
| |
220 | kabc/Makefile$(PLATFORM) \ |
| |
221 | kabc/formats/binary/Makefile$(PLATFORM) \ |
| |
222 | kabc/plugins/file/Makefile$(PLATFORM) \ |
| |
223 | kabc/plugins/dir/Makefile$(PLATFORM) \ |
| |
224 | kabc/plugins/ldap/Makefile$(PLATFORM) \ |
| |
225 | kabc/plugins/opie/Makefile$(PLATFORM) \ |
| |
226 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ |
| |
227 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ |
| |
228 | kaddressbook/Makefile$(PLATFORM) \ |
| |
229 | kmicromail/Makefile$(PLATFORM) \ |
| |
230 | kmicromail/libetpan/Makefile$(PLATFORM) \ |
| |
231 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ |
| |
232 | gammu/emb/common/Makefile$(PLATFORM) \ |
| |
233 | gammu/emb/gammu/Makefile$(PLATFORM) \ |
| |
234 | |
| |
235 | |
| |
236 | |
| |
237 | |
| |
238 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro |
| |
239 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) |
| |
240 | |
| |
241 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro |
| |
242 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) |
| |
243 | |
| |
244 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro |
| |
245 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) |
| |
246 | |
| |
247 | |
| |
248 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro |
| |
249 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) |
| |
250 | |
| |
251 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro |
| |
252 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) |
| |
253 | |
| |
254 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro |
| |
255 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) |
| |
256 | |
| |
257 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro |
| |
258 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) |
| |
259 | |
| |
260 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro |
| |
261 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) |
| |
262 | |
| |
263 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro |
| |
264 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) |
| |
265 | |
| |
266 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro |
| |
267 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) |
| |
268 | |
| |
269 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro |
| |
270 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) |
| |
271 | |
| |
272 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro |
| |
273 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM) |
| |
274 | |
| |
275 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro |
| |
276 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM) |
| |
277 | |
| |
278 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro |
| |
279 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) |
| |
280 | |
| |
281 | kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro |
| |
282 | cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" qtopiaE.pro -o Makefile$(PLATFORM) |
| |
283 | |
| |
284 | kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro |
| |
285 | cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" sharpdtmE.pro -o Makefile$(PLATFORM) |
| |
286 | |
| |
287 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro |
| |
288 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) |
| |
289 | |
| |
290 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro |
| |
291 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) |
| |
292 | |
| |
293 | kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro |
| |
294 | cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) |
| |
295 | |
| |
296 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro |
| |
297 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) |
| |
298 | |
| |
299 | gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro |
| |
300 | cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" commonE.pro -o Makefile$(PLATFORM) |
| |
301 | |
| |
302 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro |
| |
303 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" gammuE.pro -o Makefile$(PLATFORM) |
| |
|