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