summaryrefslogtreecommitdiff
path: root/Rules.make
Unidiff
Diffstat (limited to 'Rules.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make2
1 files changed, 0 insertions, 2 deletions
diff --git a/Rules.make b/Rules.make
index 17ad159..2ce61f1 100644
--- a/Rules.make
+++ b/Rules.make
@@ -1,360 +1,358 @@
1.phony: force 1.phony: force
2force: 2force:
3 3
4$(configs) : 4$(configs) :
5 $(call makecfg,$@) 5 $(call makecfg,$@)
6 6
7$(TOPDIR)/gen.pro : $(TOPDIR)/.config 7$(TOPDIR)/gen.pro : $(TOPDIR)/.config
8 echo > $@ 8 echo > $@
9# added for threaded version 9# added for threaded version
10ifneq ($(CONFIG_THREADED),) 10ifneq ($(CONFIG_THREADED),)
11 echo CONFIG += thread >> $@ 11 echo CONFIG += thread >> $@
12else 12else
13 echo CONFIG -= thread >> $@ 13 echo CONFIG -= thread >> $@
14endif 14endif
15# added for auto stripped build 15# added for auto stripped build
16ifneq ($(CONFIG_STRIP),) 16ifneq ($(CONFIG_STRIP),)
17 echo CONFIG += strip >> $@ 17 echo CONFIG += strip >> $@
18endif 18endif
19ifneq ($(CONFIG_DEBUG),) 19ifneq ($(CONFIG_DEBUG),)
20 echo CONFIG += debug >> $@ 20 echo CONFIG += debug >> $@
21 echo CONFIG -= release >> $@ 21 echo CONFIG -= release >> $@
22 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ 22 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@
23 echo DEFINES += QT_DEBUG >> $@ 23 echo DEFINES += QT_DEBUG >> $@
24else 24else
25 echo CONFIG -= debug >> $@ 25 echo CONFIG -= debug >> $@
26 echo CONFIG += release >> $@ 26 echo CONFIG += release >> $@
27 echo DEFINES += "OPIE_NO_DEBUG" >> $@ 27 echo DEFINES += "OPIE_NO_DEBUG" >> $@
28endif 28endif
29ifeq ($(CONFIG_STATIC),y) 29ifeq ($(CONFIG_STATIC),y)
30 echo !contains\( TARGET,qpe \) \{ >> $@ 30 echo !contains\( TARGET,qpe \) \{ >> $@
31 echo CONFIG += staticlib >> $@ 31 echo CONFIG += staticlib >> $@
32 echo \} >> $@ 32 echo \} >> $@
33endif 33endif
34ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 34ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3
35 echo CONFIG -= qt3 >> $@ 35 echo CONFIG -= qt3 >> $@
36else 36else
37 echo CONFIG += qt3 >> $@ 37 echo CONFIG += qt3 >> $@
38endif 38endif
39ifneq ($(CONFIG_QUICK_LAUNCH),) 39ifneq ($(CONFIG_QUICK_LAUNCH),)
40 echo contains\( CONFIG, quick-app \) \{ >> $@ 40 echo contains\( CONFIG, quick-app \) \{ >> $@
41 echo CONFIG -= staticlib >> $@ 41 echo CONFIG -= staticlib >> $@
42 echo CONFIG -= quick-app >> $@ 42 echo CONFIG -= quick-app >> $@
43 echo CONFIG += quick-app-lib >> $@ 43 echo CONFIG += quick-app-lib >> $@
44 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ 44 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@
45 echo \} >> $@ 45 echo \} >> $@
46else 46else
47 echo contains\( CONFIG, quick-app \) \{ >> $@ 47 echo contains\( CONFIG, quick-app \) \{ >> $@
48 echo CONFIG -= quick-app >> $@ 48 echo CONFIG -= quick-app >> $@
49 echo CONFIG += quick-app-bin >> $@ 49 echo CONFIG += quick-app-bin >> $@
50 echo \} >> $@ 50 echo \} >> $@
51endif 51endif
52ifeq ($(CONFIG_SQL_PIM_BACKEND),y) 52ifeq ($(CONFIG_SQL_PIM_BACKEND),y)
53 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ 53 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@
54else 54else
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
134ifeq ($(CONFIG_LIBOBEXFTP_DEP),y) 134ifeq ($(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) >> $@
137endif 137endif
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 $(TOPDIR)/include/opietooth
182 ( 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; )
183 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 183 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
184 ( 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 .; )
185 # libopie2 185 # libopie2
186 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 186 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
187 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 187 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
188 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; ) 188 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; )
189 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 189 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
190 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 190 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
191 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 191 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
192 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 192 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
193 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 193 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
194 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) 194 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; )
195 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) 195 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; )
196 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 196 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
197 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 197 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
198 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 198 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
199 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 199 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
200 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) 200 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; )
201 ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) 201 ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; )
202 # auxilliary libraries 202 # auxilliary libraries
203 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 203 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
204 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
205 ( cd include/opietooth && ln -sf ../../noncore/net/opietooth/lib/*.h .; ) 204 ( cd include/opietooth && ln -sf ../../noncore/net/opietooth/lib/*.h .; )
206 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 205 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
207 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) 206 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
208 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) 207 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
209 # all 208 # all
210 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 209 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
211 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 210 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
212 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 211 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
213 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 212 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
214 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 213 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
215 touch $@ 214 touch $@
216 215
217$(OPIEDIR)/stamp-headers-x11 : 216$(OPIEDIR)/stamp-headers-x11 :
218 @-rm -f $(OPIEDIR)/stamp-headers* 217 @-rm -f $(OPIEDIR)/stamp-headers*
219 mkdir -p $(TOPDIR)/include/qpe \ 218 mkdir -p $(TOPDIR)/include/qpe \
220 $(TOPDIR)/include/qtopia \ 219 $(TOPDIR)/include/qtopia \
221 $(TOPDIR)/include/qtopia/private \ 220 $(TOPDIR)/include/qtopia/private \
222 $(TOPDIR)/include/opie \ 221 $(TOPDIR)/include/opie \
223 $(TOPDIR)/include/opie2 \ 222 $(TOPDIR)/include/opie2 \
224 $(TOPDIR)/include/opie2/private \ 223 $(TOPDIR)/include/opie2/private \
225 $(TOPDIR)/include/sl \ 224 $(TOPDIR)/include/sl \
226 $(TOPDIR)/include/opietooth 225 $(TOPDIR)/include/opietooth
227 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 226 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
228 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 227 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
229 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 228 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
230 # libopie2 229 # libopie2
231 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 230 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
232 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 231 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
233 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 232 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
234 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 233 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
235 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 234 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
236 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 235 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
237 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 236 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
238 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) 237 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; )
239 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) 238 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; )
240 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 239 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
241 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 240 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
242 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 241 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
243 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 242 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
244 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) 243 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; )
245 ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) 244 ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; )
246 # auxilliary libraries 245 # auxilliary libraries
247 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 246 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
248 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
249 ( cd include/opietooth && ln -s ../../noncore/net/opietooth/lib/*.h .; ) 247 ( cd include/opietooth && ln -s ../../noncore/net/opietooth/lib/*.h .; )
250 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 248 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
251 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) 249 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
252 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) 250 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
253 # all 251 # all
254 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 252 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
255 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 253 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
256 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 254 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
257 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 255 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
258 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 256 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
259 257
260 # Qtopia 258 # Qtopia
261 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 259 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
262 ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 260 ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
263 touch $@ 261 touch $@
264 262
265$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 263$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
266 @-rm -f $@ 264 @-rm -f $@
267 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 265 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
268 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 266 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
269 @touch $@ 267 @touch $@
270 268
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$(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:
272 +$(call descend,$(shell dirname $@),$(shell basename $@)) 270 +$(call descend,$(shell dirname $@),$(shell basename $@))
273 271
274menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 272menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
275 $(TOPDIR)/scripts/kconfig/mconf ./config.in 273 $(TOPDIR)/scripts/kconfig/mconf ./config.in
276 @touch ./.config.stamp 274 @touch ./.config.stamp
277 275
278xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 276xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
279 $(TOPDIR)/scripts/kconfig/qconf ./config.in 277 $(TOPDIR)/scripts/kconfig/qconf ./config.in
280 @touch .config.stamp 278 @touch .config.stamp
281 279
282gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 280gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
283 $(TOPDIR)/scripts/kconfig/gconf ./config.in 281 $(TOPDIR)/scripts/kconfig/gconf ./config.in
284 @touch .config.stamp 282 @touch .config.stamp
285 283
286config: $(TOPDIR)/scripts/kconfig/conf ./config.in 284config: $(TOPDIR)/scripts/kconfig/conf ./config.in
287 $(TOPDIR)/scripts/kconfig/conf ./config.in 285 $(TOPDIR)/scripts/kconfig/conf ./config.in
288 @touch .config.stamp 286 @touch .config.stamp
289 287
290oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 288oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
291 $(TOPDIR)/scripts/kconfig/conf -o ./config.in 289 $(TOPDIR)/scripts/kconfig/conf -o ./config.in
292 @touch .config.stamp 290 @touch .config.stamp
293 291
294randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 292randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
295 $(TOPDIR)/scripts/kconfig/conf -r ./config.in 293 $(TOPDIR)/scripts/kconfig/conf -r ./config.in
296 @touch .config.stamp 294 @touch .config.stamp
297 295
298allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 296allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
299 $(TOPDIR)/scripts/kconfig/conf -y ./config.in 297 $(TOPDIR)/scripts/kconfig/conf -y ./config.in
300 @touch .config.stamp 298 @touch .config.stamp
301 299
302allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 300allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
303 $(TOPDIR)/scripts/kconfig/conf -n ./config.in 301 $(TOPDIR)/scripts/kconfig/conf -n ./config.in
304 @touch .config.stamp 302 @touch .config.stamp
305 303
306defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 304defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
307 $(TOPDIR)/scripts/kconfig/conf -d ./config.in 305 $(TOPDIR)/scripts/kconfig/conf -d ./config.in
308 @touch .config.stamp 306 @touch .config.stamp
309 307
310$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default 308$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default
311 309
312$(TOPDIR)/mkspecs/default : 310$(TOPDIR)/mkspecs/default :
313 ln -sf linux-g++ $@ 311 ln -sf linux-g++ $@
314 312
315$(TOPDIR)/scripts/subst : force 313$(TOPDIR)/scripts/subst : force
316 @( \ 314 @( \
317 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ 315 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \
318 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ 316 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \
319 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ 317 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \
320 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ 318 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \
321 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ 319 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \
322 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ 320 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \
323 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ 321 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \
324 ) > $@ || ( rm -f $@; exit 1 ) 322 ) > $@ || ( rm -f $@; exit 1 )
325 323
326$(TOPDIR)/scripts/filesubst : force 324$(TOPDIR)/scripts/filesubst : force
327 @( \ 325 @( \
328 echo 's,\$$OPIEDIR/root/,/,g'; \ 326 echo 's,\$$OPIEDIR/root/,/,g'; \
329 echo 's,$(OPIEDIR)/root/,/,g'; \ 327 echo 's,$(OPIEDIR)/root/,/,g'; \
330 echo 's,\$$OPIEDIR,$(prefix),g'; \ 328 echo 's,\$$OPIEDIR,$(prefix),g'; \
331 echo 's,$(OPIEDIR),$(prefix),g'; \ 329 echo 's,$(OPIEDIR),$(prefix),g'; \
332 echo 's,\$$QTDIR,$(prefix),g'; \ 330 echo 's,\$$QTDIR,$(prefix),g'; \
333 echo 's,$(QTDIR),$(prefix),g'; \ 331 echo 's,$(QTDIR),$(prefix),g'; \
334 echo 's,^\(\./\)*root/,/,g'; \ 332 echo 's,^\(\./\)*root/,/,g'; \
335 echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ 333 echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \
336 echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ 334 echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \
337 echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ 335 echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \
338 echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ 336 echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \
339 echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ 337 echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \
340 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ 338 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \
341 echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ 339 echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \
342 echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ 340 echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \
343 echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ 341 echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \
344 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ 342 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \
345 echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ 343 echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \
346 ) > $@ || ( rm -f $@; exit 1 ) 344 ) > $@ || ( rm -f $@; exit 1 )
347 345
348## general rules ## 346## general rules ##
349 347
350define descend 348define descend
351 $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) 349 $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2)
352endef 350endef
353 351
354define makefilegen 352define makefilegen
355 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)) 353 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))
356endef 354endef
357 355
358define makecfg 356define makecfg
359 $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) 357 $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR)
360endef 358endef