author | zecke <zecke> | 2004-08-06 12:10:04 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-06 12:10:04 (UTC) |
commit | cf4207c5c299812e46f40aaee307100f58317a97 (patch) (unidiff) | |
tree | 5ddff7987fb9010c2940c3e8b4f68852774c93d6 /Rules.make | |
parent | 20e6c238513eb91f47c3030c2db7ada7cf4b7f25 (diff) | |
download | opie-cf4207c5c299812e46f40aaee307100f58317a97.zip opie-cf4207c5c299812e46f40aaee307100f58317a97.tar.gz opie-cf4207c5c299812e46f40aaee307100f58317a97.tar.bz2 |
Update to the on-server move.
We now have
core/ with DataTypes, PUBLIC API
backend/ for concrete implementation of backends and the 'Interface description'
ui/ For UI related classes
private/ For private implementation details
-rw-r--r-- | Rules.make | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -108,116 +108,118 @@ endif | |||
108 | ifeq ($(CONFIG_LIBSDK_DEP),y) | 108 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
109 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ | 109 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
110 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ | 110 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
111 | endif | 111 | endif |
112 | ifeq ($(CONFIG_LIBSWORD_DEP),y) | 112 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
113 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ | 113 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
114 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ | 114 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
115 | endif | 115 | endif |
116 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 116 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
117 | @echo Generating dependency information... | 117 | @echo Generating dependency information... |
118 | # add to subdir-y, and add descend rules | 118 | # add to subdir-y, and add descend rules |
119 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 119 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
120 | awk '{print \ | 120 | awk '{print \ |
121 | ".PHONY : " $$2 "\n" \ | 121 | ".PHONY : " $$2 "\n" \ |
122 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 122 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
123 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 123 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
124 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 124 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
125 | 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"; }' \ | 125 | 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"; }' \ |
126 | >> $(TOPDIR)/.depends | 126 | >> $(TOPDIR)/.depends |
127 | # interpackage dependency generation | 127 | # interpackage dependency generation |
128 | @cat $(TOPDIR)/packages | \ | 128 | @cat $(TOPDIR)/packages | \ |
129 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 129 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
130 | 130 | ||
131 | $(TOPDIR)/.depends.cfgs: | 131 | $(TOPDIR)/.depends.cfgs: |
132 | # config.in interdependencies | 132 | # config.in interdependencies |
133 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 133 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
134 | @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 ) >> $@ | 134 | @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 ) >> $@ |
135 | @-rm -f dirs | 135 | @-rm -f dirs |
136 | 136 | ||
137 | $(QTDIR)/stamp-headers : | 137 | $(QTDIR)/stamp-headers : |
138 | @-rm -f $(QTDIR)/stamp-headers* | 138 | @-rm -f $(QTDIR)/stamp-headers* |
139 | ( cd $(QTDIR)/include; \ | 139 | ( cd $(QTDIR)/include; \ |
140 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 140 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
141 | qcopchannel_qws.h qwindowsystem_qws.h \ | 141 | qcopchannel_qws.h qwindowsystem_qws.h \ |
142 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 142 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
143 | touch $@ | 143 | touch $@ |
144 | 144 | ||
145 | $(QTDIR)/stamp-headers-x11 : | 145 | $(QTDIR)/stamp-headers-x11 : |
146 | @-rm -f $(QTDIR)/stamp-headers* | 146 | @-rm -f $(QTDIR)/stamp-headers* |
147 | 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) | 147 | 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) |
148 | touch $@ | 148 | touch $@ |
149 | 149 | ||
150 | $(OPIEDIR)/stamp-headers : | 150 | $(OPIEDIR)/stamp-headers : |
151 | @-rm -f $(OPIEDIR)/stamp-headers* | 151 | @-rm -f $(OPIEDIR)/stamp-headers* |
152 | mkdir -p $(TOPDIR)/include/qpe \ | 152 | mkdir -p $(TOPDIR)/include/qpe \ |
153 | $(TOPDIR)/include/qtopia \ | 153 | $(TOPDIR)/include/qtopia \ |
154 | $(TOPDIR)/include/opie \ | 154 | $(TOPDIR)/include/opie \ |
155 | $(TOPDIR)/include/opie2 \ | 155 | $(TOPDIR)/include/opie2 \ |
156 | $(TOPDIR)/include/opie2/private \ | ||
156 | $(TOPDIR)/include/qtopia/private \ | 157 | $(TOPDIR)/include/qtopia/private \ |
157 | $(TOPDIR)/include/sl | 158 | $(TOPDIR)/include/sl |
158 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 159 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
159 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 160 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
160 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 161 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
161 | ifeq ($(CONFIG_LIBOPIE),y) | 162 | ifeq ($(CONFIG_LIBOPIE),y) |
162 | # libopie1 | 163 | # libopie1 |
163 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 164 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
164 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 165 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
165 | ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) | 166 | ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) |
166 | endif | 167 | endif |
167 | # libopie2 | 168 | # libopie2 |
168 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 169 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
169 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) | 170 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
170 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 171 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
171 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 172 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
172 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 173 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
173 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 174 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
174 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | 175 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
175 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/backends/*.h .; ) | 176 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
177 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) | ||
176 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | 178 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
177 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 179 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
178 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | 180 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
179 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | 181 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
180 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) | 182 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
181 | # auxilliary libraries | 183 | # auxilliary libraries |
182 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | 184 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
183 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | 185 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
184 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) | 186 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
185 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) | 187 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
186 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) | 188 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
187 | # all | 189 | # all |
188 | ifeq ($(CONFIG_LIBOPIE),y) | 190 | ifeq ($(CONFIG_LIBOPIE),y) |
189 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 191 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
190 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 192 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
191 | endif | 193 | endif |
192 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 194 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
193 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | 195 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
194 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 196 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
195 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | 197 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
196 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 198 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
197 | touch $@ | 199 | touch $@ |
198 | 200 | ||
199 | $(OPIEDIR)/stamp-headers-x11 : | 201 | $(OPIEDIR)/stamp-headers-x11 : |
200 | @-rm -f $(OPIEDIR)/stamp-headers* | 202 | @-rm -f $(OPIEDIR)/stamp-headers* |
201 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ | 203 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
202 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private | 204 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
203 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 205 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
204 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 206 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
205 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 207 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
206 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 208 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
207 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) | 209 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
208 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 210 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
209 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 211 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
210 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 212 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
211 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 213 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
212 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 214 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
213 | touch $@ | 215 | touch $@ |
214 | 216 | ||
215 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 217 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
216 | @-rm -f $@ | 218 | @-rm -f $@ |
217 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 219 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
218 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 220 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
219 | @touch $@ | 221 | @touch $@ |
220 | 222 | ||
221 | $(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: | 223 | $(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: |
222 | @$(call descend,$(shell dirname $@),$(shell basename $@)) | 224 | @$(call descend,$(shell dirname $@),$(shell basename $@)) |
223 | 225 | ||