|
|
|
@@ -81,97 +81,97 @@ ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
81 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
81 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
82 | endif |
82 | endif |
83 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
83 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
84 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
84 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
85 | endif |
85 | endif |
86 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
86 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
87 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
87 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
88 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
88 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
89 | endif |
89 | endif |
90 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
90 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
91 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ |
91 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ |
92 | endif |
92 | endif |
93 | # Write LIB dirs and INC dirs... |
93 | # Write LIB dirs and INC dirs... |
94 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
94 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
95 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
95 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
96 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
96 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
97 | endif |
97 | endif |
98 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
98 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
99 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
99 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
100 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
100 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
101 | endif |
101 | endif |
102 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
102 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
103 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
103 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
104 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
104 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
105 | endif |
105 | endif |
106 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
106 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
107 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
107 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
108 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
108 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
109 | endif |
109 | endif |
110 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
110 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
111 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
111 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
112 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
112 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
113 | endif |
113 | endif |
114 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
114 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
115 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
115 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
116 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
116 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
117 | endif |
117 | endif |
118 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
118 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
119 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
119 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
120 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
120 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
121 | endif |
121 | endif |
122 | $(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 |
123 | @echo Generating dependency information... |
123 | @echo Generating dependency information... |
124 | # add to subdir-y, and add descend rules |
124 | # add to subdir-y, and add descend rules |
125 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
125 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
126 | awk '{print \ |
126 | awk '{print \ |
127 | ".PHONY : " $$2 "\n" \ |
127 | ".PHONY : " $$2 "\n" \ |
128 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
128 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
129 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
129 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
130 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
130 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
131 | 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"; }' \ |
131 | 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"; }' \ |
132 | >> $(TOPDIR)/.depends |
132 | >> $(TOPDIR)/.depends |
133 | # interpackage dependency generation |
133 | # interpackage dependency generation |
134 | @cat $(TOPDIR)/packages | \ |
134 | @cat $(TOPDIR)/packages | \ |
135 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
135 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
136 | |
136 | |
137 | $(TOPDIR)/.depends.cfgs: |
137 | $(TOPDIR)/.depends.cfgs: |
138 | # config.in interdependencies |
138 | # config.in interdependencies |
139 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
139 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
140 | @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 ) >> $@ |
140 | @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 ) >> $@ |
141 | @-rm -f dirs |
141 | @-rm -f dirs |
142 | |
142 | |
143 | $(QTDIR)/stamp-headers : |
143 | $(QTDIR)/stamp-headers : |
144 | @-rm -f $(QTDIR)/stamp-headers* |
144 | @-rm -f $(QTDIR)/stamp-headers* |
145 | ( cd $(QTDIR)/include; \ |
145 | ( cd $(QTDIR)/include; \ |
146 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
146 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
147 | qcopchannel_qws.h qwindowsystem_qws.h \ |
147 | qcopchannel_qws.h qwindowsystem_qws.h \ |
148 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
148 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
149 | touch $@ |
149 | touch $@ |
150 | |
150 | |
151 | $(QTDIR)/stamp-headers-x11 : |
151 | $(QTDIR)/stamp-headers-x11 : |
152 | @-rm -f $(QTDIR)/stamp-headers* |
152 | @-rm -f $(QTDIR)/stamp-headers* |
153 | 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) |
153 | 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) |
154 | touch $@ |
154 | touch $@ |
155 | |
155 | |
156 | $(OPIEDIR)/stamp-headers : |
156 | $(OPIEDIR)/stamp-headers : |
157 | @-rm -f $(OPIEDIR)/stamp-headers* |
157 | @-rm -f $(OPIEDIR)/stamp-headers* |
158 | mkdir -p $(TOPDIR)/include/qpe \ |
158 | mkdir -p $(TOPDIR)/include/qpe \ |
159 | $(TOPDIR)/include/qtopia \ |
159 | $(TOPDIR)/include/qtopia \ |
160 | $(TOPDIR)/include/opie \ |
160 | $(TOPDIR)/include/opie \ |
161 | $(TOPDIR)/include/opie2 \ |
161 | $(TOPDIR)/include/opie2 \ |
162 | $(TOPDIR)/include/opie2/private \ |
162 | $(TOPDIR)/include/opie2/private \ |
163 | $(TOPDIR)/include/qtopia/private \ |
163 | $(TOPDIR)/include/qtopia/private \ |
164 | $(TOPDIR)/include/sl |
164 | $(TOPDIR)/include/sl |
165 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
165 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
166 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
166 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
167 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
167 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
168 | ifeq ($(CONFIG_LIBOPIE),y) |
168 | ifeq ($(CONFIG_LIBOPIE),y) |
169 | # libopie1 |
169 | # libopie1 |
170 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
170 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
171 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
171 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
172 | endif |
172 | endif |
173 | # libopie2 |
173 | # libopie2 |
174 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
174 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
175 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
175 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
176 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
176 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
177 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
177 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
|