|
|
|
@@ -1,59 +1,61 @@ |
1 | .phony: force |
1 | .phony: force |
2 | force: |
2 | force: |
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 | ifneq ($(CONFIG_DEBUG),) |
9 | ifneq ($(CONFIG_DEBUG),) |
10 | echo CONFIG += debug >> $@ |
10 | echo CONFIG += debug >> $@ |
11 | echo CONFIG -= release >> $@ |
11 | echo CONFIG -= release >> $@ |
| |
12 | echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ |
| |
13 | echo DEFINES += QT_DEBUG >> $@ |
12 | else |
14 | else |
13 | echo CONFIG -= debug >> $@ |
15 | echo CONFIG -= debug >> $@ |
14 | echo CONFIG += release >> $@ |
16 | echo CONFIG += release >> $@ |
15 | endif |
17 | endif |
16 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
18 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
17 | echo CONFIG -= qt3 >> $@ |
19 | echo CONFIG -= qt3 >> $@ |
18 | else |
20 | else |
19 | echo CONFIG += qt3 >> $@ |
21 | echo CONFIG += qt3 >> $@ |
20 | endif |
22 | endif |
21 | ifneq ($(CONFIG_QUICK_LAUNCH),) |
23 | ifneq ($(CONFIG_QUICK_LAUNCH),) |
22 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
24 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
23 | echo CONFIG -= quick-app >> $@ |
25 | echo CONFIG -= quick-app >> $@ |
24 | echo CONFIG += quick-app-lib >> $@ |
26 | echo CONFIG += quick-app-lib >> $@ |
25 | echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ |
27 | echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ |
26 | echo \} >> $@ |
28 | echo \} >> $@ |
27 | else |
29 | else |
28 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
30 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
29 | echo CONFIG -= quick-app >> $@ |
31 | echo CONFIG -= quick-app >> $@ |
30 | echo CONFIG += quick-app-bin >> $@ |
32 | echo CONFIG += quick-app-bin >> $@ |
31 | echo \} >> $@ |
33 | echo \} >> $@ |
32 | endif |
34 | endif |
33 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) |
35 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) |
34 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ |
36 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ |
35 | else |
37 | else |
36 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ |
38 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ |
37 | endif |
39 | endif |
38 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) |
40 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) |
39 | echo CONFIG += no-override >> $@ |
41 | echo CONFIG += no-override >> $@ |
40 | endif |
42 | endif |
41 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
43 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
42 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
44 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
43 | endif |
45 | endif |
44 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
46 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
45 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
47 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
46 | endif |
48 | endif |
47 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
49 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
48 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
50 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
49 | endif |
51 | endif |
50 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
52 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
51 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
53 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
52 | endif |
54 | endif |
53 | ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) |
55 | ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) |
54 | echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ |
56 | echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ |
55 | endif |
57 | endif |
56 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
58 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
57 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
59 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
58 | endif |
60 | endif |
59 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
61 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
|