|
|
|
@@ -102,64 +102,68 @@ ifeq ($(CONFIG_LIBPCAP_DEP),y) |
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) |
130 | ifeq ($(CONFIG_LIBFLITE_DEP),y) |
131 | echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ |
131 | echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ |
132 | echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ |
132 | echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ |
133 | endif |
133 | endif |
| |
134 | ifeq ($(CONFIG_LIBOBEXFTP_DEP),y) |
| |
135 | echo LIBOBEXFTP_INC_DIR = $(CONFIG_LIBOBEXFTP_INC_DIR) >> $@ |
| |
136 | echo LIBOBEXFTP_LIB_DIR = $(CONFIG_LIBOBEXFTP_LIB_DIR) >> $@ |
| |
137 | endif |
134 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
138 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
135 | @echo Generating dependency information... |
139 | @echo Generating dependency information... |
136 | # add to subdir-y, and add descend rules |
140 | # add to subdir-y, and add descend rules |
137 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
141 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
138 | awk '{print \ |
142 | awk '{print \ |
139 | ".PHONY : " $$2 "\n" \ |
143 | ".PHONY : " $$2 "\n" \ |
140 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
144 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
141 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
145 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
142 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
146 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
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"; }' \ |
147 | 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"; }' \ |
144 | >> $(TOPDIR)/.depends |
148 | >> $(TOPDIR)/.depends |
145 | # interpackage dependency generation |
149 | # interpackage dependency generation |
146 | @cat $(TOPDIR)/packages | \ |
150 | @cat $(TOPDIR)/packages | \ |
147 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
151 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
148 | |
152 | |
149 | $(TOPDIR)/.depends.cfgs: |
153 | $(TOPDIR)/.depends.cfgs: |
150 | # config.in interdependencies |
154 | # config.in interdependencies |
151 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
155 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
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 ) >> $@ |
156 | @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 ) >> $@ |
153 | @-rm -f dirs |
157 | @-rm -f dirs |
154 | |
158 | |
155 | $(QTDIR)/stamp-headers : |
159 | $(QTDIR)/stamp-headers : |
156 | @-rm -f $(QTDIR)/stamp-headers* |
160 | @-rm -f $(QTDIR)/stamp-headers* |
157 | ( cd $(QTDIR)/include; \ |
161 | ( cd $(QTDIR)/include; \ |
158 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
162 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
159 | qcopchannel_qws.h qwindowsystem_qws.h \ |
163 | qcopchannel_qws.h qwindowsystem_qws.h \ |
160 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
164 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
161 | touch $@ |
165 | touch $@ |
162 | |
166 | |
163 | $(QTDIR)/stamp-headers-x11 : |
167 | $(QTDIR)/stamp-headers-x11 : |
164 | @-rm -f $(QTDIR)/stamp-headers* |
168 | @-rm -f $(QTDIR)/stamp-headers* |
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) |
169 | 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) |
|