author | mickeyl <mickeyl> | 2005-02-19 17:18:27 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-02-19 17:18:27 (UTC) |
commit | be32e0c045814142954ac37c89715313633d6aa2 (patch) (unidiff) | |
tree | 93a6fc7a84b4073fb04cc0b3377c4bb7e11bd091 /Rules.make | |
parent | b7bf9c7acdc010eb30bc246372efb0d1b394166a (diff) | |
download | opie-be32e0c045814142954ac37c89715313633d6aa2.zip opie-be32e0c045814142954ac37c89715313633d6aa2.tar.gz opie-be32e0c045814142954ac37c89715313633d6aa2.tar.bz2 |
make inline image support optional
-rw-r--r-- | Rules.make | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,158 +1,161 @@ | |||
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 | # added for threaded version | 9 | # added for threaded version |
10 | ifneq ($(CONFIG_THREADED),) | 10 | ifneq ($(CONFIG_THREADED),) |
11 | echo CONFIG += thread >> $@ | 11 | echo CONFIG += thread >> $@ |
12 | else | 12 | else |
13 | echo CONFIG -= thread >> $@ | 13 | echo CONFIG -= thread >> $@ |
14 | endif | 14 | endif |
15 | # added for auto stripped build | 15 | # added for auto stripped build |
16 | ifneq ($(CONFIG_STRIP),) | 16 | ifneq ($(CONFIG_STRIP),) |
17 | echo CONFIG += strip >> $@ | 17 | echo CONFIG += strip >> $@ |
18 | endif | 18 | endif |
19 | ifneq ($(CONFIG_DEBUG),) | 19 | ifneq ($(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 >> $@ |
24 | else | 24 | else |
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" >> $@ |
28 | endif | 28 | endif |
29 | ifeq ($(CONFIG_STATIC),y) | 29 | ifeq ($(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 \} >> $@ |
33 | endif | 33 | endif |
34 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 | 34 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
35 | echo CONFIG -= qt3 >> $@ | 35 | echo CONFIG -= qt3 >> $@ |
36 | else | 36 | else |
37 | echo CONFIG += qt3 >> $@ | 37 | echo CONFIG += qt3 >> $@ |
38 | endif | 38 | endif |
39 | ifneq ($(CONFIG_QUICK_LAUNCH),) | 39 | ifneq ($(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 \} >> $@ |
46 | else | 46 | else |
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 \} >> $@ |
51 | endif | 51 | endif |
52 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) | 52 | ifeq ($(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) >> $@ |
54 | else | 54 | else |
55 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ | 55 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ |
56 | endif | 56 | endif |
57 | ifeq ($(CONFIG_OPIELOGIN_USEPAM),y) | 57 | ifeq ($(CONFIG_OPIELOGIN_USEPAM),y) |
58 | echo CONFIG += OPIELOGIN_USEPAM >> $@ | 58 | echo CONFIG += OPIELOGIN_USEPAM >> $@ |
59 | endif | 59 | endif |
60 | ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) | 60 | ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) |
61 | echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ | 61 | echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ |
62 | endif | 62 | endif |
63 | ifeq ($(CONFIG_LIBQPE_NO_INLINE_IMAGES),y) | ||
64 | echo DEFINES += LIBQPE_NO_INLINE_IMAGES >> $@ | ||
65 | endif | ||
63 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) | 66 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
64 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ | 67 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
65 | endif | 68 | endif |
66 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) | 69 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
67 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ | 70 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
68 | endif | 71 | endif |
69 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) | 72 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
70 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ | 73 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
71 | endif | 74 | endif |
72 | ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) | 75 | ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) |
73 | echo DEFINES += USE_FILE_NOTIFICATION >> $@ | 76 | echo DEFINES += USE_FILE_NOTIFICATION >> $@ |
74 | endif | 77 | endif |
75 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) | 78 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
76 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ | 79 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
77 | endif | 80 | endif |
78 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) | 81 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
79 | echo DEFINES += OPIE_NEW_MALLOC >> $@ | 82 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
80 | endif | 83 | endif |
81 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) | 84 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
82 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ | 85 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
83 | endif | 86 | endif |
84 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ | 87 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
85 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) | 88 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
86 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ | 89 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
87 | endif | 90 | endif |
88 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) | 91 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
89 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ | 92 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ |
90 | endif | 93 | endif |
91 | # Write LIB dirs and INC dirs... | 94 | # Write LIB dirs and INC dirs... |
92 | ifeq ($(CONFIG_LIBETPAN_DEP),y) | 95 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
93 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ | 96 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
94 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ | 97 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
95 | endif | 98 | endif |
96 | ifeq ($(CONFIG_LIBPCAP_DEP),y) | 99 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
97 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ | 100 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
98 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ | 101 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
99 | endif | 102 | endif |
100 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) | 103 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
101 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ | 104 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
102 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ | 105 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
103 | endif | 106 | endif |
104 | ifeq ($(CONFIG_LIBXINE_DEP),y) | 107 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
105 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ | 108 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
106 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ | 109 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
107 | endif | 110 | endif |
108 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) | 111 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) |
109 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ | 112 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ |
110 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ | 113 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ |
111 | endif | 114 | endif |
112 | ifeq ($(CONFIG_LIBIPK_DEP),y) | 115 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
113 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ | 116 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
114 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ | 117 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
115 | endif | 118 | endif |
116 | ifeq ($(CONFIG_LIBSDK_DEP),y) | 119 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
117 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ | 120 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
118 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ | 121 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
119 | endif | 122 | endif |
120 | ifeq ($(CONFIG_LIBSWORD_DEP),y) | 123 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
121 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ | 124 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
122 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ | 125 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
123 | endif | 126 | endif |
124 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) | 127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) |
125 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ | 128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ |
126 | endif | 129 | endif |
127 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 130 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
128 | @echo Generating dependency information... | 131 | @echo Generating dependency information... |
129 | # add to subdir-y, and add descend rules | 132 | # add to subdir-y, and add descend rules |
130 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
131 | awk '{print \ | 134 | awk '{print \ |
132 | ".PHONY : " $$2 "\n" \ | 135 | ".PHONY : " $$2 "\n" \ |
133 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
134 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
135 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 138 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
136 | 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"; }' \ | 139 | 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"; }' \ |
137 | >> $(TOPDIR)/.depends | 140 | >> $(TOPDIR)/.depends |
138 | # interpackage dependency generation | 141 | # interpackage dependency generation |
139 | @cat $(TOPDIR)/packages | \ | 142 | @cat $(TOPDIR)/packages | \ |
140 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
141 | 144 | ||
142 | $(TOPDIR)/.depends.cfgs: | 145 | $(TOPDIR)/.depends.cfgs: |
143 | # config.in interdependencies | 146 | # config.in interdependencies |
144 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 147 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
145 | @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 ) >> $@ | 148 | @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 ) >> $@ |
146 | @-rm -f dirs | 149 | @-rm -f dirs |
147 | 150 | ||
148 | $(QTDIR)/stamp-headers : | 151 | $(QTDIR)/stamp-headers : |
149 | @-rm -f $(QTDIR)/stamp-headers* | 152 | @-rm -f $(QTDIR)/stamp-headers* |
150 | ( cd $(QTDIR)/include; \ | 153 | ( cd $(QTDIR)/include; \ |
151 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 154 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
152 | qcopchannel_qws.h qwindowsystem_qws.h \ | 155 | qcopchannel_qws.h qwindowsystem_qws.h \ |
153 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 156 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
154 | touch $@ | 157 | touch $@ |
155 | 158 | ||
156 | $(QTDIR)/stamp-headers-x11 : | 159 | $(QTDIR)/stamp-headers-x11 : |
157 | @-rm -f $(QTDIR)/stamp-headers* | 160 | @-rm -f $(QTDIR)/stamp-headers* |
158 | 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) | 161 | 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) |