|
|
|
@@ -84,259 +84,262 @@ endif |
84 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
84 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
85 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
85 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
86 | endif |
86 | endif |
87 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
87 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
88 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
88 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
89 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
89 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
90 | endif |
90 | endif |
91 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
91 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
92 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ |
92 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ |
93 | endif |
93 | endif |
94 | # Write LIB dirs and INC dirs... |
94 | # Write LIB dirs and INC dirs... |
95 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
95 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
96 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
96 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
97 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
97 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
98 | endif |
98 | endif |
99 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
99 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
100 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
100 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
101 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
101 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
102 | endif |
102 | endif |
103 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
103 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
104 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
104 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
105 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
105 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
106 | endif |
106 | endif |
107 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
107 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
108 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
108 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
109 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
109 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
110 | endif |
110 | endif |
111 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) |
111 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) |
112 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ |
112 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ |
113 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ |
113 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ |
114 | endif |
114 | endif |
115 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
115 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
116 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
116 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
117 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
117 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
118 | endif |
118 | endif |
119 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
119 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
120 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
120 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
121 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
121 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
122 | endif |
122 | endif |
123 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
123 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
124 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
124 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
125 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
125 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
126 | endif |
126 | endif |
127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) |
127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) |
128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ |
128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ |
129 | endif |
129 | endif |
130 | ifeq ($(CONFIG_LIBFLITE_DEP),y) |
130 | ifeq ($(CONFIG_LIBFLITE_DEP),y) |
131 | echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ |
131 | echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ |
132 | echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ |
132 | echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ |
133 | endif |
133 | endif |
134 | ifeq ($(CONFIG_LIBOBEXFTP_DEP),y) |
134 | ifeq ($(CONFIG_LIBOBEXFTP_DEP),y) |
135 | echo LIBOBEXFTP_INC_DIR = $(CONFIG_LIBOBEXFTP_INC_DIR) >> $@ |
135 | echo LIBOBEXFTP_INC_DIR = $(CONFIG_LIBOBEXFTP_INC_DIR) >> $@ |
136 | echo LIBOBEXFTP_LIB_DIR = $(CONFIG_LIBOBEXFTP_LIB_DIR) >> $@ |
136 | echo LIBOBEXFTP_LIB_DIR = $(CONFIG_LIBOBEXFTP_LIB_DIR) >> $@ |
137 | endif |
137 | endif |
138 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
138 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
139 | @echo Generating dependency information... |
139 | @echo Generating dependency information... |
140 | # add to subdir-y, and add descend rules |
140 | # add to subdir-y, and add descend rules |
141 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
141 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
142 | awk '{print \ |
142 | awk '{print \ |
143 | ".PHONY : " $$2 "\n" \ |
143 | ".PHONY : " $$2 "\n" \ |
144 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
144 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
145 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
145 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
146 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
146 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
147 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
147 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
148 | >> $(TOPDIR)/.depends |
148 | >> $(TOPDIR)/.depends |
149 | # interpackage dependency generation |
149 | # interpackage dependency generation |
150 | @cat $(TOPDIR)/packages | \ |
150 | @cat $(TOPDIR)/packages | \ |
151 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
151 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
152 | |
152 | |
153 | $(TOPDIR)/.depends.cfgs: |
153 | $(TOPDIR)/.depends.cfgs: |
154 | # config.in interdependencies |
154 | # config.in interdependencies |
155 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
155 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
156 | @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ |
156 | @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ |
157 | @-rm -f dirs |
157 | @-rm -f dirs |
158 | |
158 | |
159 | $(QTDIR)/stamp-headers : |
159 | $(QTDIR)/stamp-headers : |
160 | @-rm -f $(QTDIR)/stamp-headers* |
160 | @-rm -f $(QTDIR)/stamp-headers* |
161 | ( cd $(QTDIR)/include; \ |
161 | ( cd $(QTDIR)/include; \ |
162 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
162 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
163 | qcopchannel_qws.h qwindowsystem_qws.h \ |
163 | qcopchannel_qws.h qwindowsystem_qws.h \ |
164 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
164 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
165 | touch $@ |
165 | touch $@ |
166 | |
166 | |
167 | $(QTDIR)/stamp-headers-x11 : |
167 | $(QTDIR)/stamp-headers-x11 : |
168 | @-rm -f $(QTDIR)/stamp-headers* |
168 | @-rm -f $(QTDIR)/stamp-headers* |
169 | cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) |
169 | cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) |
170 | touch $@ |
170 | touch $@ |
171 | |
171 | |
172 | $(OPIEDIR)/stamp-headers : |
172 | $(OPIEDIR)/stamp-headers : |
173 | @-rm -f $(OPIEDIR)/stamp-headers* |
173 | @-rm -f $(OPIEDIR)/stamp-headers* |
174 | mkdir -p $(TOPDIR)/include/qpe \ |
174 | mkdir -p $(TOPDIR)/include/qpe \ |
175 | $(TOPDIR)/include/qtopia \ |
175 | $(TOPDIR)/include/qtopia \ |
176 | $(TOPDIR)/include/opie \ |
176 | $(TOPDIR)/include/opie \ |
177 | $(TOPDIR)/include/opie2 \ |
177 | $(TOPDIR)/include/opie2 \ |
178 | $(TOPDIR)/include/opie2/private \ |
178 | $(TOPDIR)/include/opie2/private \ |
179 | $(TOPDIR)/include/qtopia/private \ |
179 | $(TOPDIR)/include/qtopia/private \ |
180 | $(TOPDIR)/include/sl |
180 | $(TOPDIR)/include/sl \ |
| |
181 | $(TOPDIR)/include/opietooth |
181 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
182 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
182 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
183 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
183 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
184 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
184 | # libopie2 |
185 | # libopie2 |
185 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
186 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
186 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
187 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
187 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; ) |
188 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; ) |
188 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
189 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
189 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
190 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
190 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
191 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
191 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
192 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
192 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
193 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
193 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
194 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
194 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
195 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
195 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
196 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
196 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
197 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
197 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
198 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
198 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
199 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
199 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
200 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
200 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) |
201 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) |
201 | # auxilliary libraries |
202 | # auxilliary libraries |
202 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
203 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
203 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
204 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
| |
205 | ( cd include/opietooth && ln -sf ../../noncore/net/opietooth/lib/*.h .; ) |
204 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
206 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
205 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
207 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
206 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
208 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
207 | # all |
209 | # all |
208 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
210 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
209 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
211 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
210 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
212 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
211 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
213 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
212 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
214 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
213 | touch $@ |
215 | touch $@ |
214 | |
216 | |
215 | $(OPIEDIR)/stamp-headers-x11 : |
217 | $(OPIEDIR)/stamp-headers-x11 : |
216 | @-rm -f $(OPIEDIR)/stamp-headers* |
218 | @-rm -f $(OPIEDIR)/stamp-headers* |
217 | mkdir -p $(TOPDIR)/include/qpe \ |
219 | mkdir -p $(TOPDIR)/include/qpe \ |
218 | $(TOPDIR)/include/qtopia \ |
220 | $(TOPDIR)/include/qtopia \ |
219 | $(TOPDIR)/include/qtopia/private \ |
221 | $(TOPDIR)/include/qtopia/private \ |
220 | $(TOPDIR)/include/opie \ |
222 | $(TOPDIR)/include/opie \ |
221 | $(TOPDIR)/include/opie2 \ |
223 | $(TOPDIR)/include/opie2 \ |
222 | $(TOPDIR)/include/opie2/private \ |
224 | $(TOPDIR)/include/opie2/private \ |
223 | $(TOPDIR)/include/sl |
225 | $(TOPDIR)/include/sl \ |
224 | |
226 | $(TOPDIR)/include/opietooth |
225 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
227 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
226 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
228 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
227 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
229 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
228 | # libopie2 |
230 | # libopie2 |
229 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
231 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
230 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
232 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
231 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
233 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
232 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
234 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
233 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
235 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
234 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
236 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
235 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
237 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
236 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
238 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
237 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
239 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
238 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
240 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
239 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
241 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
240 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
242 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
241 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
243 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
242 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
244 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
243 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) |
245 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) |
244 | # auxilliary libraries |
246 | # auxilliary libraries |
245 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
247 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
246 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
248 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
| |
249 | ( cd include/opietooth && ln -s ../../noncore/net/opietooth/lib/*.h .; ) |
247 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
250 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
248 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
251 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
249 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
252 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
250 | # all |
253 | # all |
251 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
254 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
252 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
255 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
253 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
256 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
254 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
257 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
255 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
258 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
256 | |
259 | |
257 | # Qtopia |
260 | # Qtopia |
258 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
261 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
259 | ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
262 | ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
260 | touch $@ |
263 | touch $@ |
261 | |
264 | |
262 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
265 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
263 | @-rm -f $@ |
266 | @-rm -f $@ |
264 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
267 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
265 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
268 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
266 | @touch $@ |
269 | @touch $@ |
267 | |
270 | |
268 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: |
271 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: |
269 | +$(call descend,$(shell dirname $@),$(shell basename $@)) |
272 | +$(call descend,$(shell dirname $@),$(shell basename $@)) |
270 | |
273 | |
271 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
274 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
272 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
275 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
273 | @touch ./.config.stamp |
276 | @touch ./.config.stamp |
274 | |
277 | |
275 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
278 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
276 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
279 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
277 | @touch .config.stamp |
280 | @touch .config.stamp |
278 | |
281 | |
279 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
282 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
280 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
283 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
281 | @touch .config.stamp |
284 | @touch .config.stamp |
282 | |
285 | |
283 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
286 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
284 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
287 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
285 | @touch .config.stamp |
288 | @touch .config.stamp |
286 | |
289 | |
287 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
290 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
288 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
291 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
289 | @touch .config.stamp |
292 | @touch .config.stamp |
290 | |
293 | |
291 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
294 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
292 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
295 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
293 | @touch .config.stamp |
296 | @touch .config.stamp |
294 | |
297 | |
295 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
298 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
296 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
299 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
297 | @touch .config.stamp |
300 | @touch .config.stamp |
298 | |
301 | |
299 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
302 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
300 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
303 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
301 | @touch .config.stamp |
304 | @touch .config.stamp |
302 | |
305 | |
303 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
306 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
304 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
307 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
305 | @touch .config.stamp |
308 | @touch .config.stamp |
306 | |
309 | |
307 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
310 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
308 | |
311 | |
309 | $(TOPDIR)/mkspecs/default : |
312 | $(TOPDIR)/mkspecs/default : |
310 | ln -sf linux-g++ $@ |
313 | ln -sf linux-g++ $@ |
311 | |
314 | |
312 | $(TOPDIR)/scripts/subst : force |
315 | $(TOPDIR)/scripts/subst : force |
313 | @( \ |
316 | @( \ |
314 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
317 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
315 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
318 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
316 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
319 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
317 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
320 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
318 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
321 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
319 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
322 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
320 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
323 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
321 | ) > $@ || ( rm -f $@; exit 1 ) |
324 | ) > $@ || ( rm -f $@; exit 1 ) |
322 | |
325 | |
323 | $(TOPDIR)/scripts/filesubst : force |
326 | $(TOPDIR)/scripts/filesubst : force |
324 | @( \ |
327 | @( \ |
325 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
328 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
326 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
329 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
327 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
330 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
328 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
331 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
329 | echo 's,\$$QTDIR,$(prefix),g'; \ |
332 | echo 's,\$$QTDIR,$(prefix),g'; \ |
330 | echo 's,$(QTDIR),$(prefix),g'; \ |
333 | echo 's,$(QTDIR),$(prefix),g'; \ |
331 | echo 's,^\(\./\)*root/,/,g'; \ |
334 | echo 's,^\(\./\)*root/,/,g'; \ |
332 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
335 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
333 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
336 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
334 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
337 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
335 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
338 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
336 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
339 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
337 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
340 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
338 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
341 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
339 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
342 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
340 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
343 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
341 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
344 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
342 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
345 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
|