summaryrefslogtreecommitdiff
path: root/Rules.make
Unidiff
Diffstat (limited to 'Rules.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rules.make b/Rules.make
index f75e6da..3ce2853 100644
--- a/Rules.make
+++ b/Rules.make
@@ -55,256 +55,257 @@ else
55 echo ENABLE_SQL_PIM_BACKEND=n >> $@ 55 echo ENABLE_SQL_PIM_BACKEND=n >> $@
56endif 56endif
57ifeq ($(CONFIG_OPIELOGIN_USEPAM),y) 57ifeq ($(CONFIG_OPIELOGIN_USEPAM),y)
58 echo CONFIG += OPIELOGIN_USEPAM >> $@ 58 echo CONFIG += OPIELOGIN_USEPAM >> $@
59endif 59endif
60ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) 60ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y)
61 echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ 61 echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@
62endif 62endif
63ifeq ($(CONFIG_LIBQPE_NO_INLINE_IMAGES),y) 63ifeq ($(CONFIG_LIBQPE_NO_INLINE_IMAGES),y)
64 echo DEFINES += LIBQPE_NO_INLINE_IMAGES >> $@ 64 echo DEFINES += LIBQPE_NO_INLINE_IMAGES >> $@
65endif 65endif
66ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) 66ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y)
67 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ 67 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@
68endif 68endif
69ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) 69ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y)
70 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ 70 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@
71endif 71endif
72ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) 72ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y)
73 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ 73 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@
74endif 74endif
75ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) 75ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y)
76 echo DEFINES += USE_FILE_NOTIFICATION >> $@ 76 echo DEFINES += USE_FILE_NOTIFICATION >> $@
77endif 77endif
78ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) 78ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y)
79 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ 79 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@
80endif 80endif
81ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) 81ifeq ($(CONFIG_OPIE_NEW_ALLOC),y)
82 echo DEFINES += OPIE_NEW_MALLOC >> $@ 82 echo DEFINES += OPIE_NEW_MALLOC >> $@
83endif 83endif
84ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) 84ifeq ($(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 >> $@
86endif 86endif
87 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ 87 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
88ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) 88ifeq ($(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) >> $@
90endif 90endif
91ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) 91ifeq ($(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...
95ifeq ($(CONFIG_LIBETPAN_DEP),y) 95ifeq ($(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) >> $@
98endif 98endif
99ifeq ($(CONFIG_LIBPCAP_DEP),y) 99ifeq ($(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) >> $@
102endif 102endif
103ifeq ($(CONFIG_LIBSQLITE_DEP),y) 103ifeq ($(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) >> $@
106endif 106endif
107ifeq ($(CONFIG_LIBXINE_DEP),y) 107ifeq ($(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) >> $@
110endif 110endif
111ifeq ($(CONFIG_LIBBLUEZ_DEP),y) 111ifeq ($(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) >> $@
114endif 114endif
115ifeq ($(CONFIG_LIBIPK_DEP),y) 115ifeq ($(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) >> $@
118endif 118endif
119ifeq ($(CONFIG_LIBSDK_DEP),y) 119ifeq ($(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) >> $@
122endif 122endif
123ifeq ($(CONFIG_LIBSWORD_DEP),y) 123ifeq ($(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) >> $@
126endif 126endif
127ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) 127ifeq ($(CONFIG_LIBFREETYPE2_DEP),y)
128 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ 128 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@
129endif 129endif
130ifeq ($(CONFIG_LIBFLITE_DEP),y) 130ifeq ($(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) >> $@
133endif 133endif
134$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 134$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
135 @echo Generating dependency information... 135 @echo Generating dependency information...
136# add to subdir-y, and add descend rules 136# add to subdir-y, and add descend rules
137 @cat $(TOPDIR)/packages | grep -v '^#' | \ 137 @cat $(TOPDIR)/packages | grep -v '^#' | \
138 awk '{print \ 138 awk '{print \
139 ".PHONY : " $$2 "\n" \ 139 ".PHONY : " $$2 "\n" \
140 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 140 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
141 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 141 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
142 cat $(TOPDIR)/packages | grep -v '^#' | \ 142 cat $(TOPDIR)/packages | grep -v '^#' | \
143 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"; }' \ 143 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"; }' \
144 >> $(TOPDIR)/.depends 144 >> $(TOPDIR)/.depends
145# interpackage dependency generation 145# interpackage dependency generation
146 @cat $(TOPDIR)/packages | \ 146 @cat $(TOPDIR)/packages | \
147 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 147 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
148 148
149$(TOPDIR)/.depends.cfgs: 149$(TOPDIR)/.depends.cfgs:
150# config.in interdependencies 150# config.in interdependencies
151 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 151 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
152 @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 ) >> $@ 152 @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 ) >> $@
153 @-rm -f dirs 153 @-rm -f dirs
154 154
155$(QTDIR)/stamp-headers : 155$(QTDIR)/stamp-headers :
156 @-rm -f $(QTDIR)/stamp-headers* 156 @-rm -f $(QTDIR)/stamp-headers*
157 ( cd $(QTDIR)/include; \ 157 ( cd $(QTDIR)/include; \
158 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 158 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
159 qcopchannel_qws.h qwindowsystem_qws.h \ 159 qcopchannel_qws.h qwindowsystem_qws.h \
160 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 160 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
161 touch $@ 161 touch $@
162 162
163$(QTDIR)/stamp-headers-x11 : 163$(QTDIR)/stamp-headers-x11 :
164 @-rm -f $(QTDIR)/stamp-headers* 164 @-rm -f $(QTDIR)/stamp-headers*
165 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) 165 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)
166 touch $@ 166 touch $@
167 167
168$(OPIEDIR)/stamp-headers : 168$(OPIEDIR)/stamp-headers :
169 @-rm -f $(OPIEDIR)/stamp-headers* 169 @-rm -f $(OPIEDIR)/stamp-headers*
170 mkdir -p $(TOPDIR)/include/qpe \ 170 mkdir -p $(TOPDIR)/include/qpe \
171 $(TOPDIR)/include/qtopia \ 171 $(TOPDIR)/include/qtopia \
172 $(TOPDIR)/include/opie \ 172 $(TOPDIR)/include/opie \
173 $(TOPDIR)/include/opie2 \ 173 $(TOPDIR)/include/opie2 \
174 $(TOPDIR)/include/opie2/private \ 174 $(TOPDIR)/include/opie2/private \
175 $(TOPDIR)/include/qtopia/private \ 175 $(TOPDIR)/include/qtopia/private \
176 $(TOPDIR)/include/sl 176 $(TOPDIR)/include/sl
177 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 177 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
178 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 178 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
179 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 179 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
180 # libopie2 180 # libopie2
181 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 181 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
182 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 182 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
183 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; )
183 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 184 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
184 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 185 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
185 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 186 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
186 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 187 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
187 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 188 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
188 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) 189 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; )
189 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) 190 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; )
190 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 191 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
191 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 192 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
192 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 193 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
193 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 194 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
194 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) 195 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; )
195 # auxilliary libraries 196 # auxilliary libraries
196 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 197 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
197 ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) 198 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
198 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 199 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
199 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) 200 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
200 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) 201 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
201 # all 202 # all
202 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 203 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
203 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 204 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
204 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 205 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
205 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 206 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
206 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 207 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
207 touch $@ 208 touch $@
208 209
209$(OPIEDIR)/stamp-headers-x11 : 210$(OPIEDIR)/stamp-headers-x11 :
210 @-rm -f $(OPIEDIR)/stamp-headers* 211 @-rm -f $(OPIEDIR)/stamp-headers*
211 mkdir -p $(TOPDIR)/include/qpe \ 212 mkdir -p $(TOPDIR)/include/qpe \
212 $(TOPDIR)/include/qtopia \ 213 $(TOPDIR)/include/qtopia \
213 $(TOPDIR)/include/qtopia/private \ 214 $(TOPDIR)/include/qtopia/private \
214 $(TOPDIR)/include/opie \ 215 $(TOPDIR)/include/opie \
215 $(TOPDIR)/include/opie2 \ 216 $(TOPDIR)/include/opie2 \
216 $(TOPDIR)/include/opie2/private \ 217 $(TOPDIR)/include/opie2/private \
217 $(TOPDIR)/include/sl 218 $(TOPDIR)/include/sl
218 219
219 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 220 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
220 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 221 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
221 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 222 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
222 # libopie2 223 # libopie2
223 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 224 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
224 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 225 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
225 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 226 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
226 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 227 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
227 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 228 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
228 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 229 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
229 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 230 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
230 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) 231 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; )
231 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) 232 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; )
232 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 233 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
233 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 234 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
234 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 235 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
235 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 236 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
236 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) 237 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; )
237 # auxilliary libraries 238 # auxilliary libraries
238 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 239 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
239 ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) 240 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
240 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 241 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
241 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) 242 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
242 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) 243 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
243 # all 244 # all
244 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 245 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
245 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 246 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
246 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 247 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
247 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 248 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
248 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 249 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
249 250
250 # Qtopia 251 # Qtopia
251 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 252 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
252 ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 253 ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
253 touch $@ 254 touch $@
254 255
255$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 256$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
256 @-rm -f $@ 257 @-rm -f $@
257 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 258 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
258 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 259 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
259 @touch $@ 260 @touch $@
260 261
261$(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: 262$(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:
262 +$(call descend,$(shell dirname $@),$(shell basename $@)) 263 +$(call descend,$(shell dirname $@),$(shell basename $@))
263 264
264menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 265menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
265 $(TOPDIR)/scripts/kconfig/mconf ./config.in 266 $(TOPDIR)/scripts/kconfig/mconf ./config.in
266 @touch ./.config.stamp 267 @touch ./.config.stamp
267 268
268xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 269xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
269 $(TOPDIR)/scripts/kconfig/qconf ./config.in 270 $(TOPDIR)/scripts/kconfig/qconf ./config.in
270 @touch .config.stamp 271 @touch .config.stamp
271 272
272gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 273gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
273 $(TOPDIR)/scripts/kconfig/gconf ./config.in 274 $(TOPDIR)/scripts/kconfig/gconf ./config.in
274 @touch .config.stamp 275 @touch .config.stamp
275 276
276config: $(TOPDIR)/scripts/kconfig/conf ./config.in 277config: $(TOPDIR)/scripts/kconfig/conf ./config.in
277 $(TOPDIR)/scripts/kconfig/conf ./config.in 278 $(TOPDIR)/scripts/kconfig/conf ./config.in
278 @touch .config.stamp 279 @touch .config.stamp
279 280
280oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 281oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
281 $(TOPDIR)/scripts/kconfig/conf -o ./config.in 282 $(TOPDIR)/scripts/kconfig/conf -o ./config.in
282 @touch .config.stamp 283 @touch .config.stamp
283 284
284randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 285randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
285 $(TOPDIR)/scripts/kconfig/conf -r ./config.in 286 $(TOPDIR)/scripts/kconfig/conf -r ./config.in
286 @touch .config.stamp 287 @touch .config.stamp
287 288
288allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 289allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
289 $(TOPDIR)/scripts/kconfig/conf -y ./config.in 290 $(TOPDIR)/scripts/kconfig/conf -y ./config.in
290 @touch .config.stamp 291 @touch .config.stamp
291 292
292allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 293allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
293 $(TOPDIR)/scripts/kconfig/conf -n ./config.in 294 $(TOPDIR)/scripts/kconfig/conf -n ./config.in
294 @touch .config.stamp 295 @touch .config.stamp
295 296
296defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 297defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
297 $(TOPDIR)/scripts/kconfig/conf -d ./config.in 298 $(TOPDIR)/scripts/kconfig/conf -d ./config.in
298 @touch .config.stamp 299 @touch .config.stamp
299 300
300$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default 301$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default
301 302
302$(TOPDIR)/mkspecs/default : 303$(TOPDIR)/mkspecs/default :
303 ln -sf linux-g++ $@ 304 ln -sf linux-g++ $@
304 305
305$(TOPDIR)/scripts/subst : force 306$(TOPDIR)/scripts/subst : force
306 @( \ 307 @( \
307 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ 308 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \
308 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ 309 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \
309 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ 310 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \
310 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ 311 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \