author | ar <ar> | 2005-01-22 21:53:54 (UTC) |
---|---|---|
committer | ar <ar> | 2005-01-22 21:53:54 (UTC) |
commit | 687b18f07228aac2b168ea5e3204c1c3518929a7 (patch) (unidiff) | |
tree | 485b49ef6150e7aad4bde0a942c0b17d863b240c /Rules.make | |
parent | 6d08fa658ab487426eebe934fdd92cd3bbb925b3 (diff) | |
download | opie-687b18f07228aac2b168ea5e3204c1c3518929a7.zip opie-687b18f07228aac2b168ea5e3204c1c3518929a7.tar.gz opie-687b18f07228aac2b168ea5e3204c1c3518929a7.tar.bz2 |
- build opie-freetype against freetype2
you must specified <prefix>/include/freetype2 in dependencies menu (make menuconfig)
-rw-r--r-- | Rules.make | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -98,64 +98,67 @@ endif | |||
98 | ifeq ($(CONFIG_LIBETPAN_DEP),y) | 98 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
99 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ | 99 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
100 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ | 100 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
101 | endif | 101 | endif |
102 | ifeq ($(CONFIG_LIBPCAP_DEP),y) | 102 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
103 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ | 103 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
104 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ | 104 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
105 | endif | 105 | endif |
106 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) | 106 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
107 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ | 107 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
108 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ | 108 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
109 | endif | 109 | endif |
110 | ifeq ($(CONFIG_LIBXINE_DEP),y) | 110 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
111 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ | 111 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
112 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ | 112 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
113 | endif | 113 | endif |
114 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) | 114 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) |
115 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ | 115 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ |
116 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ | 116 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ |
117 | endif | 117 | endif |
118 | ifeq ($(CONFIG_LIBIPK_DEP),y) | 118 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
119 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ | 119 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
120 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ | 120 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
121 | endif | 121 | endif |
122 | ifeq ($(CONFIG_LIBSDK_DEP),y) | 122 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
123 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ | 123 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
124 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ | 124 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
125 | endif | 125 | endif |
126 | ifeq ($(CONFIG_LIBSWORD_DEP),y) | 126 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
127 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ | 127 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
128 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ | 128 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
129 | endif | 129 | endif |
130 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) | ||
131 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ | ||
132 | endif | ||
130 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 133 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
131 | @echo Generating dependency information... | 134 | @echo Generating dependency information... |
132 | # add to subdir-y, and add descend rules | 135 | # add to subdir-y, and add descend rules |
133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 136 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
134 | awk '{print \ | 137 | awk '{print \ |
135 | ".PHONY : " $$2 "\n" \ | 138 | ".PHONY : " $$2 "\n" \ |
136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 139 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 140 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
138 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 141 | 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"; }' \ | 142 | 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 | 143 | >> $(TOPDIR)/.depends |
141 | # interpackage dependency generation | 144 | # interpackage dependency generation |
142 | @cat $(TOPDIR)/packages | \ | 145 | @cat $(TOPDIR)/packages | \ |
143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 146 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
144 | 147 | ||
145 | $(TOPDIR)/.depends.cfgs: | 148 | $(TOPDIR)/.depends.cfgs: |
146 | # config.in interdependencies | 149 | # config.in interdependencies |
147 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 150 | @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 ) >> $@ | 151 | @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 | 152 | @-rm -f dirs |
150 | 153 | ||
151 | $(QTDIR)/stamp-headers : | 154 | $(QTDIR)/stamp-headers : |
152 | @-rm -f $(QTDIR)/stamp-headers* | 155 | @-rm -f $(QTDIR)/stamp-headers* |
153 | ( cd $(QTDIR)/include; \ | 156 | ( cd $(QTDIR)/include; \ |
154 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 157 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
155 | qcopchannel_qws.h qwindowsystem_qws.h \ | 158 | qcopchannel_qws.h qwindowsystem_qws.h \ |
156 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 159 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
157 | touch $@ | 160 | touch $@ |
158 | 161 | ||
159 | $(QTDIR)/stamp-headers-x11 : | 162 | $(QTDIR)/stamp-headers-x11 : |
160 | @-rm -f $(QTDIR)/stamp-headers* | 163 | @-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) | 164 | 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) |