author | zecke <zecke> | 2005-04-16 22:01:23 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-04-16 22:01:23 (UTC) |
commit | f2b8a146b411a99c43050ab902f641ee406e3bab (patch) (unidiff) | |
tree | 19c07c02c052029de298ef68fc3b6c25cb31b490 /Rules.make | |
parent | 632d3e87a7e2cf6efecb676987d622e937ecafb8 (diff) | |
download | opie-f2b8a146b411a99c43050ab902f641ee406e3bab.zip opie-f2b8a146b411a99c43050ab902f641ee406e3bab.tar.gz opie-f2b8a146b411a99c43050ab902f641ee406e3bab.tar.bz2 |
Opie X11:
-Make x11 header stamping aware of opie2
-rw-r--r-- | Rules.make | 44 |
1 files changed, 37 insertions, 7 deletions
@@ -111,204 +111,234 @@ 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 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 130 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
131 | @echo Generating dependency information... | 131 | @echo Generating dependency information... |
132 | # add to subdir-y, and add descend rules | 132 | # add to subdir-y, and add descend rules |
133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
134 | awk '{print \ | 134 | awk '{print \ |
135 | ".PHONY : " $$2 "\n" \ | 135 | ".PHONY : " $$2 "\n" \ |
136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
138 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 138 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
139 | 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"; }' \ | 139 | 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"; }' \ |
140 | >> $(TOPDIR)/.depends | 140 | >> $(TOPDIR)/.depends |
141 | # interpackage dependency generation | 141 | # interpackage dependency generation |
142 | @cat $(TOPDIR)/packages | \ | 142 | @cat $(TOPDIR)/packages | \ |
143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
144 | 144 | ||
145 | $(TOPDIR)/.depends.cfgs: | 145 | $(TOPDIR)/.depends.cfgs: |
146 | # config.in interdependencies | 146 | # config.in interdependencies |
147 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 147 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
148 | @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 ) >> $@ | 148 | @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 ) >> $@ |
149 | @-rm -f dirs | 149 | @-rm -f dirs |
150 | 150 | ||
151 | $(QTDIR)/stamp-headers : | 151 | $(QTDIR)/stamp-headers : |
152 | @-rm -f $(QTDIR)/stamp-headers* | 152 | @-rm -f $(QTDIR)/stamp-headers* |
153 | ( cd $(QTDIR)/include; \ | 153 | ( cd $(QTDIR)/include; \ |
154 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 154 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
155 | qcopchannel_qws.h qwindowsystem_qws.h \ | 155 | qcopchannel_qws.h qwindowsystem_qws.h \ |
156 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 156 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
157 | touch $@ | 157 | touch $@ |
158 | 158 | ||
159 | $(QTDIR)/stamp-headers-x11 : | 159 | $(QTDIR)/stamp-headers-x11 : |
160 | @-rm -f $(QTDIR)/stamp-headers* | 160 | @-rm -f $(QTDIR)/stamp-headers* |
161 | 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) | 161 | 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) |
162 | touch $@ | 162 | touch $@ |
163 | 163 | ||
164 | $(OPIEDIR)/stamp-headers : | 164 | $(OPIEDIR)/stamp-headers : |
165 | @-rm -f $(OPIEDIR)/stamp-headers* | 165 | @-rm -f $(OPIEDIR)/stamp-headers* |
166 | mkdir -p $(TOPDIR)/include/qpe \ | 166 | mkdir -p $(TOPDIR)/include/qpe \ |
167 | $(TOPDIR)/include/qtopia \ | 167 | $(TOPDIR)/include/qtopia \ |
168 | $(TOPDIR)/include/opie \ | 168 | $(TOPDIR)/include/opie \ |
169 | $(TOPDIR)/include/opie2 \ | 169 | $(TOPDIR)/include/opie2 \ |
170 | $(TOPDIR)/include/opie2/private \ | 170 | $(TOPDIR)/include/opie2/private \ |
171 | $(TOPDIR)/include/qtopia/private \ | 171 | $(TOPDIR)/include/qtopia/private \ |
172 | $(TOPDIR)/include/sl | 172 | $(TOPDIR)/include/sl |
173 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 173 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
174 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 174 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
175 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 175 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
176 | # libopie2 | 176 | # libopie2 |
177 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 177 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
178 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) | 178 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
179 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 179 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
180 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 180 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
181 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 181 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
182 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 182 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
183 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | 183 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
184 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) | 184 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
185 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) | 185 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
186 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | 186 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
187 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 187 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
188 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | 188 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
189 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | 189 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
190 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) | 190 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
191 | # auxilliary libraries | 191 | # auxilliary libraries |
192 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | 192 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
193 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | 193 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
194 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) | 194 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
195 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) | 195 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
196 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) | 196 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
197 | # all | 197 | # all |
198 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 198 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
199 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | 199 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
200 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 200 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
201 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | 201 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
202 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 202 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
203 | touch $@ | 203 | touch $@ |
204 | 204 | ||
205 | $(OPIEDIR)/stamp-headers-x11 : | 205 | $(OPIEDIR)/stamp-headers-x11 : |
206 | @-rm -f $(OPIEDIR)/stamp-headers* | 206 | @-rm -f $(OPIEDIR)/stamp-headers* |
207 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ | 207 | mkdir -p $(TOPDIR)/include/qpe \ |
208 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private | 208 | $(TOPDIR)/include/qtopia \ |
209 | $(TOPDIR)/include/qtopia/private \ | ||
210 | $(TOPDIR)/include/opie \ | ||
211 | $(TOPDIR)/include/opie2 \ | ||
212 | $(TOPDIR)/include/opie2/private \ | ||
213 | $(TOPDIR)/include/sl | ||
214 | |||
209 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 215 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
210 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 216 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
211 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 217 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
212 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 218 | # libopie2 |
213 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) | 219 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
214 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 220 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
215 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 221 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
216 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 222 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
223 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | ||
224 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | ||
225 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | ||
226 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) | ||
227 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) | ||
228 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | ||
229 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | ||
230 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | ||
231 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | ||
232 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) | ||
233 | # auxilliary libraries | ||
234 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | ||
235 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | ||
236 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) | ||
237 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) | ||
238 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) | ||
239 | # all | ||
240 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | ||
241 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | ||
242 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | ||
243 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | ||
217 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 244 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
245 | |||
246 | # Qtopia | ||
218 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 247 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
248 | ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | ||
219 | touch $@ | 249 | touch $@ |
220 | 250 | ||
221 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 251 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
222 | @-rm -f $@ | 252 | @-rm -f $@ |
223 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 253 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
224 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 254 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
225 | @touch $@ | 255 | @touch $@ |
226 | 256 | ||
227 | $(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: | 257 | $(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: |
228 | +$(call descend,$(shell dirname $@),$(shell basename $@)) | 258 | +$(call descend,$(shell dirname $@),$(shell basename $@)) |
229 | 259 | ||
230 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in | 260 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
231 | $(TOPDIR)/scripts/kconfig/mconf ./config.in | 261 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
232 | @touch ./.config.stamp | 262 | @touch ./.config.stamp |
233 | 263 | ||
234 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 264 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
235 | $(TOPDIR)/scripts/kconfig/qconf ./config.in | 265 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
236 | @touch .config.stamp | 266 | @touch .config.stamp |
237 | 267 | ||
238 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 268 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
239 | $(TOPDIR)/scripts/kconfig/gconf ./config.in | 269 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
240 | @touch .config.stamp | 270 | @touch .config.stamp |
241 | 271 | ||
242 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in | 272 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
243 | $(TOPDIR)/scripts/kconfig/conf ./config.in | 273 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
244 | @touch .config.stamp | 274 | @touch .config.stamp |
245 | 275 | ||
246 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 276 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
247 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in | 277 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
248 | @touch .config.stamp | 278 | @touch .config.stamp |
249 | 279 | ||
250 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 280 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
251 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in | 281 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
252 | @touch .config.stamp | 282 | @touch .config.stamp |
253 | 283 | ||
254 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 284 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
255 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in | 285 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
256 | @touch .config.stamp | 286 | @touch .config.stamp |
257 | 287 | ||
258 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 288 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
259 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in | 289 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
260 | @touch .config.stamp | 290 | @touch .config.stamp |
261 | 291 | ||
262 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 292 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
263 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in | 293 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
264 | @touch .config.stamp | 294 | @touch .config.stamp |
265 | 295 | ||
266 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default | 296 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
267 | 297 | ||
268 | $(TOPDIR)/mkspecs/default : | 298 | $(TOPDIR)/mkspecs/default : |
269 | ln -sf linux-g++ $@ | 299 | ln -sf linux-g++ $@ |
270 | 300 | ||
271 | $(TOPDIR)/scripts/subst : force | 301 | $(TOPDIR)/scripts/subst : force |
272 | @( \ | 302 | @( \ |
273 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ | 303 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
274 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ | 304 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
275 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ | 305 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
276 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ | 306 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
277 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ | 307 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
278 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ | 308 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
279 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ | 309 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
280 | ) > $@ || ( rm -f $@; exit 1 ) | 310 | ) > $@ || ( rm -f $@; exit 1 ) |
281 | 311 | ||
282 | $(TOPDIR)/scripts/filesubst : force | 312 | $(TOPDIR)/scripts/filesubst : force |
283 | @( \ | 313 | @( \ |
284 | echo 's,\$$OPIEDIR/root/,/,g'; \ | 314 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
285 | echo 's,$(OPIEDIR)/root/,/,g'; \ | 315 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
286 | echo 's,\$$OPIEDIR,$(prefix),g'; \ | 316 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
287 | echo 's,$(OPIEDIR),$(prefix),g'; \ | 317 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
288 | echo 's,\$$QTDIR,$(prefix),g'; \ | 318 | echo 's,\$$QTDIR,$(prefix),g'; \ |
289 | echo 's,$(QTDIR),$(prefix),g'; \ | 319 | echo 's,$(QTDIR),$(prefix),g'; \ |
290 | echo 's,^\(\./\)*root/,/,g'; \ | 320 | echo 's,^\(\./\)*root/,/,g'; \ |
291 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ | 321 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
292 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ | 322 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
293 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ | 323 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
294 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ | 324 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
295 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ | 325 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
296 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ | 326 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
297 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ | 327 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
298 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ | 328 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
299 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ | 329 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
300 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ | 330 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
301 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ | 331 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
302 | ) > $@ || ( rm -f $@; exit 1 ) | 332 | ) > $@ || ( rm -f $@; exit 1 ) |
303 | 333 | ||
304 | ## general rules ## | 334 | ## general rules ## |
305 | 335 | ||
306 | define descend | 336 | define descend |
307 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) | 337 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
308 | endef | 338 | endef |
309 | 339 | ||
310 | define makefilegen | 340 | define makefilegen |
311 | cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) | 341 | cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) |
312 | endef | 342 | endef |
313 | 343 | ||
314 | define makecfg | 344 | define makecfg |