|
|
|
@@ -66,128 +66,132 @@ endif |
66 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
66 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
67 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
67 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
68 | endif |
68 | endif |
69 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
69 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
70 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
70 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
71 | endif |
71 | endif |
72 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
72 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
73 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
73 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
74 | endif |
74 | endif |
75 | ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) |
75 | ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) |
76 | echo DEFINES += USE_FILE_NOTIFICATION >> $@ |
76 | echo DEFINES += USE_FILE_NOTIFICATION >> $@ |
77 | endif |
77 | endif |
78 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
78 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
79 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
79 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
80 | endif |
80 | endif |
81 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
81 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
82 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
82 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
83 | endif |
83 | endif |
84 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
84 | ifeq ($(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 >> $@ |
86 | endif |
86 | endif |
87 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
87 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
88 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
88 | ifeq ($(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) >> $@ |
90 | endif |
90 | endif |
91 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
91 | ifeq ($(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... |
95 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
95 | ifeq ($(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) >> $@ |
98 | endif |
98 | endif |
99 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
99 | ifeq ($(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) >> $@ |
102 | endif |
102 | endif |
103 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
103 | ifeq ($(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) >> $@ |
106 | endif |
106 | endif |
107 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
107 | ifeq ($(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) >> $@ |
110 | endif |
110 | endif |
111 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) |
111 | ifeq ($(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) >> $@ |
114 | endif |
114 | endif |
115 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
115 | ifeq ($(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) >> $@ |
118 | endif |
118 | endif |
119 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
119 | ifeq ($(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) >> $@ |
122 | endif |
122 | endif |
123 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
123 | ifeq ($(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) >> $@ |
126 | endif |
126 | endif |
127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) |
127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) |
128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ |
128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ |
129 | endif |
129 | endif |
| |
130 | ifeq ($(CONFIG_LIBFLITE_DEP),y) |
| |
131 | echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ |
| |
132 | echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ |
| |
133 | endif |
130 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
134 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
131 | @echo Generating dependency information... |
135 | @echo Generating dependency information... |
132 | # add to subdir-y, and add descend rules |
136 | # add to subdir-y, and add descend rules |
133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
137 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
134 | awk '{print \ |
138 | awk '{print \ |
135 | ".PHONY : " $$2 "\n" \ |
139 | ".PHONY : " $$2 "\n" \ |
136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
140 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
141 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
138 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
142 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
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"; }' \ |
143 | 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"; }' \ |
140 | >> $(TOPDIR)/.depends |
144 | >> $(TOPDIR)/.depends |
141 | # interpackage dependency generation |
145 | # interpackage dependency generation |
142 | @cat $(TOPDIR)/packages | \ |
146 | @cat $(TOPDIR)/packages | \ |
143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
147 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
144 | |
148 | |
145 | $(TOPDIR)/.depends.cfgs: |
149 | $(TOPDIR)/.depends.cfgs: |
146 | # config.in interdependencies |
150 | # config.in interdependencies |
147 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
151 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
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 ) >> $@ |
152 | @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 ) >> $@ |
149 | @-rm -f dirs |
153 | @-rm -f dirs |
150 | |
154 | |
151 | $(QTDIR)/stamp-headers : |
155 | $(QTDIR)/stamp-headers : |
152 | @-rm -f $(QTDIR)/stamp-headers* |
156 | @-rm -f $(QTDIR)/stamp-headers* |
153 | ( cd $(QTDIR)/include; \ |
157 | ( cd $(QTDIR)/include; \ |
154 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
158 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
155 | qcopchannel_qws.h qwindowsystem_qws.h \ |
159 | qcopchannel_qws.h qwindowsystem_qws.h \ |
156 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
160 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
157 | touch $@ |
161 | touch $@ |
158 | |
162 | |
159 | $(QTDIR)/stamp-headers-x11 : |
163 | $(QTDIR)/stamp-headers-x11 : |
160 | @-rm -f $(QTDIR)/stamp-headers* |
164 | @-rm -f $(QTDIR)/stamp-headers* |
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) |
165 | 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) |
162 | touch $@ |
166 | touch $@ |
163 | |
167 | |
164 | $(OPIEDIR)/stamp-headers : |
168 | $(OPIEDIR)/stamp-headers : |
165 | @-rm -f $(OPIEDIR)/stamp-headers* |
169 | @-rm -f $(OPIEDIR)/stamp-headers* |
166 | mkdir -p $(TOPDIR)/include/qpe \ |
170 | mkdir -p $(TOPDIR)/include/qpe \ |
167 | $(TOPDIR)/include/qtopia \ |
171 | $(TOPDIR)/include/qtopia \ |
168 | $(TOPDIR)/include/opie \ |
172 | $(TOPDIR)/include/opie \ |
169 | $(TOPDIR)/include/opie2 \ |
173 | $(TOPDIR)/include/opie2 \ |
170 | $(TOPDIR)/include/opie2/private \ |
174 | $(TOPDIR)/include/opie2/private \ |
171 | $(TOPDIR)/include/qtopia/private \ |
175 | $(TOPDIR)/include/qtopia/private \ |
172 | $(TOPDIR)/include/sl |
176 | $(TOPDIR)/include/sl |
173 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
177 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
174 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
178 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
175 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
179 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
176 | # libopie2 |
180 | # libopie2 |
177 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
181 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
178 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
182 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
179 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
183 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
180 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
184 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
181 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
185 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
182 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
186 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
183 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
187 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
184 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
188 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
185 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
189 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
186 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
190 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
187 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
191 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
188 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
192 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
189 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
193 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
190 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
194 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
191 | # auxilliary libraries |
195 | # auxilliary libraries |
192 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
196 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
193 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
197 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
|