summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rules.make b/Rules.make
index e8b2420..f68fa3b 100644
--- a/Rules.make
+++ b/Rules.make
@@ -1,119 +1,122 @@
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
15ifneq ($(CONFIG_DEBUG),) 15ifneq ($(CONFIG_DEBUG),)
16 echo CONFIG += debug >> $@ 16 echo CONFIG += debug >> $@
17 echo CONFIG -= release >> $@ 17 echo CONFIG -= release >> $@
18 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ 18 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@
19 echo DEFINES += QT_DEBUG >> $@ 19 echo DEFINES += QT_DEBUG >> $@
20else 20else
21 echo CONFIG -= debug >> $@ 21 echo CONFIG -= debug >> $@
22 echo CONFIG += release >> $@ 22 echo CONFIG += release >> $@
23 echo DEFINES += "OPIE_NO_DEBUG" >> $@ 23 echo DEFINES += "OPIE_NO_DEBUG" >> $@
24endif 24endif
25ifeq ($(CONFIG_STATIC),y) 25ifeq ($(CONFIG_STATIC),y)
26 echo !contains\( TARGET,qpe \) \{ >> $@ 26 echo !contains\( TARGET,qpe \) \{ >> $@
27 echo CONFIG += staticlib >> $@ 27 echo CONFIG += staticlib >> $@
28 echo \} >> $@ 28 echo \} >> $@
29endif 29endif
30ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 30ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3
31 echo CONFIG -= qt3 >> $@ 31 echo CONFIG -= qt3 >> $@
32else 32else
33 echo CONFIG += qt3 >> $@ 33 echo CONFIG += qt3 >> $@
34endif 34endif
35ifneq ($(CONFIG_QUICK_LAUNCH),) 35ifneq ($(CONFIG_QUICK_LAUNCH),)
36 echo contains\( CONFIG, quick-app \) \{ >> $@ 36 echo contains\( CONFIG, quick-app \) \{ >> $@
37 echo CONFIG -= staticlib >> $@ 37 echo CONFIG -= staticlib >> $@
38 echo CONFIG -= quick-app >> $@ 38 echo CONFIG -= quick-app >> $@
39 echo CONFIG += quick-app-lib >> $@ 39 echo CONFIG += quick-app-lib >> $@
40 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ 40 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@
41 echo \} >> $@ 41 echo \} >> $@
42else 42else
43 echo contains\( CONFIG, quick-app \) \{ >> $@ 43 echo contains\( CONFIG, quick-app \) \{ >> $@
44 echo CONFIG -= quick-app >> $@ 44 echo CONFIG -= quick-app >> $@
45 echo CONFIG += quick-app-bin >> $@ 45 echo CONFIG += quick-app-bin >> $@
46 echo \} >> $@ 46 echo \} >> $@
47endif 47endif
48ifeq ($(CONFIG_SQL_PIM_BACKEND),y) 48ifeq ($(CONFIG_SQL_PIM_BACKEND),y)
49 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ 49 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@
50else 50else
51 echo ENABLE_SQL_PIM_BACKEND=n >> $@ 51 echo ENABLE_SQL_PIM_BACKEND=n >> $@
52endif 52endif
53ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) 53ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y)
54 echo CONFIG += no-override >> $@ 54 echo CONFIG += no-override >> $@
55endif 55endif
56ifeq ($(CONFIG_OPIELOGIN_USEPAM),y)
57 echo CONFIG += OPIELOGIN_USEPAM >> $@
58endif
56ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) 59ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y)
57 echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ 60 echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@
58endif 61endif
59ifeq ($(CONFIG_OPIE_NO_ERASERECT_FIX),y) 62ifeq ($(CONFIG_OPIE_NO_ERASERECT_FIX),y)
60 echo DEFINES += OPIE_NO_ERASE_RECT_HACKFIX >> $@ 63 echo DEFINES += OPIE_NO_ERASE_RECT_HACKFIX >> $@
61endif 64endif
62ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) 65ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y)
63 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ 66 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@
64endif 67endif
65ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) 68ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y)
66 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ 69 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@
67endif 70endif
68ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) 71ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y)
69 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ 72 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@
70endif 73endif
71ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) 74ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y)
72 echo DEFINES += USE_FILE_NOTIFICATION >> $@ 75 echo DEFINES += USE_FILE_NOTIFICATION >> $@
73endif 76endif
74ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) 77ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y)
75 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ 78 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@
76endif 79endif
77ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) 80ifeq ($(CONFIG_OPIE_NEW_ALLOC),y)
78 echo DEFINES += OPIE_NEW_MALLOC >> $@ 81 echo DEFINES += OPIE_NEW_MALLOC >> $@
79endif 82endif
80ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) 83ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y)
81 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ 84 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@
82endif 85endif
83 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ 86 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
84ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) 87ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y)
85 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ 88 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@
86endif 89endif
87ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) 90ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y)
88 echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ 91 echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@
89 endif 92 endif
90# Write LIB dirs and INC dirs... 93# Write LIB dirs and INC dirs...
91ifeq ($(CONFIG_LIBETPAN_DEP),y) 94ifeq ($(CONFIG_LIBETPAN_DEP),y)
92 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ 95 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@
93 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ 96 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@
94endif 97endif
95ifeq ($(CONFIG_LIBPCAP_DEP),y) 98ifeq ($(CONFIG_LIBPCAP_DEP),y)
96 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ 99 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@
97 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ 100 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@
98endif 101endif
99ifeq ($(CONFIG_LIBSQLITE_DEP),y) 102ifeq ($(CONFIG_LIBSQLITE_DEP),y)
100 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ 103 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@
101 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ 104 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@
102endif 105endif
103ifeq ($(CONFIG_LIBXINE_DEP),y) 106ifeq ($(CONFIG_LIBXINE_DEP),y)
104 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ 107 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@
105 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ 108 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@
106endif 109endif
107ifeq ($(CONFIG_LIBIPK_DEP),y) 110ifeq ($(CONFIG_LIBIPK_DEP),y)
108 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ 111 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@
109 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ 112 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@
110endif 113endif
111ifeq ($(CONFIG_LIBSDK_DEP),y) 114ifeq ($(CONFIG_LIBSDK_DEP),y)
112 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ 115 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@
113 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ 116 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@
114endif 117endif
115ifeq ($(CONFIG_LIBSWORD_DEP),y) 118ifeq ($(CONFIG_LIBSWORD_DEP),y)
116 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ 119 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@
117 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ 120 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@
118endif 121endif
119$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 122$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
@@ -246,71 +249,70 @@ oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
246 $(TOPDIR)/scripts/kconfig/conf -o ./config.in 249 $(TOPDIR)/scripts/kconfig/conf -o ./config.in
247 @touch .config.stamp 250 @touch .config.stamp
248 251
249randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 252randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
250 $(TOPDIR)/scripts/kconfig/conf -r ./config.in 253 $(TOPDIR)/scripts/kconfig/conf -r ./config.in
251 @touch .config.stamp 254 @touch .config.stamp
252 255
253allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 256allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
254 $(TOPDIR)/scripts/kconfig/conf -y ./config.in 257 $(TOPDIR)/scripts/kconfig/conf -y ./config.in
255 @touch .config.stamp 258 @touch .config.stamp
256 259
257allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 260allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
258 $(TOPDIR)/scripts/kconfig/conf -n ./config.in 261 $(TOPDIR)/scripts/kconfig/conf -n ./config.in
259 @touch .config.stamp 262 @touch .config.stamp
260 263
261defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 264defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
262 $(TOPDIR)/scripts/kconfig/conf -d ./config.in 265 $(TOPDIR)/scripts/kconfig/conf -d ./config.in
263 @touch .config.stamp 266 @touch .config.stamp
264 267
265$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default 268$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default
266 269
267$(TOPDIR)/mkspecs/default : 270$(TOPDIR)/mkspecs/default :
268 ln -sf linux-g++ $@ 271 ln -sf linux-g++ $@
269 272
270$(TOPDIR)/scripts/subst : force 273$(TOPDIR)/scripts/subst : force
271 @( \ 274 @( \
272 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ 275 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \
273 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ 276 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \
274 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ 277 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \
275 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ 278 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \
276 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ 279 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \
277 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ 280 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \
278 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ 281 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \
279 ) > $@ || ( rm -f $@; exit 1 ) 282 ) > $@ || ( rm -f $@; exit 1 )
280 283
281$(TOPDIR)/scripts/filesubst : force 284$(TOPDIR)/scripts/filesubst : force
282 @( \ 285 @( \
283 echo 's,\$$OPIEDIR/root/,/,g'; \ 286 echo 's,\$$OPIEDIR/root/,/,g'; \
284 echo 's,$(OPIEDIR)/root/,/,g'; \ 287 echo 's,$(OPIEDIR)/root/,/,g'; \
285 echo 's,\$$OPIEDIR,$(prefix),g'; \ 288 echo 's,\$$OPIEDIR,$(prefix),g'; \
286 echo 's,$(OPIEDIR),$(prefix),g'; \ 289 echo 's,$(OPIEDIR),$(prefix),g'; \
287 echo 's,\$$QTDIR,$(prefix),g'; \ 290 echo 's,\$$QTDIR,$(prefix),g'; \
288 echo 's,$(QTDIR),$(prefix),g'; \ 291 echo 's,$(QTDIR),$(prefix),g'; \
289 echo 's,^\(\./\)*root/,/,g'; \ 292 echo 's,^\(\./\)*root/,/,g'; \
290 echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ 293 echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \
291 echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ 294 echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \
292 echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ 295 echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \
293 echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ 296 echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \
294 echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ 297 echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \
295 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ 298 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \
296 echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ 299 echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \
297 echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ 300 echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \
298 echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ 301 echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \
299 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ 302 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \
300 echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ 303 echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \
301 ) > $@ || ( rm -f $@; exit 1 ) 304 ) > $@ || ( rm -f $@; exit 1 )
302 305
303## general rules ## 306## general rules ##
304 307
305define descend 308define descend
306 $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) 309 $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2)
307endef 310endef
308 311
309define makefilegen 312define makefilegen
310 cd $(if $(1),$(shell dirname $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(shell basename $(1))) `cat $(OPIEDIR)/packages | grep " \`echo $(1)|sed -e 's,/Makefile$$,,'\`" | \ 313 cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep -m 1 "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages))
311 head -1 | awk '{print $$3}'`
312endef 314endef
313 315
314define makecfg 316define makecfg
315 $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) 317 $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR)
316endef 318endef