-.install_freetype-2.1.4_mips-unknown-elf: .install_gcc-3.3_mips-unknown-elf .install_newlib-1.11.0_mips-unknown-elf .download_freetype-2.1.4
- cd upstream/freetype-2.1.4/src; make setup ansi; PATH=$$PATH:`pwd`/../../install/bin make CC=mips-unknown-elf-gcc AR=mips-unknown-elf-ar
+.install_binutils-2.13.2.1_mips-unknown-elf: .install_mips2java; touch $@
+.install_gcc-3.3_mips-unknown-elf: .install_mips2java; touch $@
+.install_mips2java:
+ mkdir -p upstream/install
+ echo '/1 :pserver:cvs@cvs.xwt.org:2401/ A' >> ~/.cvspass
+ cd upstream; cvs -d :pserver:cvs@cvs.xwt.org:/ co mips
+ cd upstream/mips/upstream; ln -sf `cd ../..; pwd`/install
+ (cd upstream/mips; make)
+ touch $@
+
+.install_freetype-2.1.4_mips-unknown-elf: .install_mips2java .download_freetype-2.1.4
+ cd upstream/freetype-2.1.4/src; \
+ make setup ansi; \
+ PATH=$$PATH:`pwd`/../../install/bin make \
+ CC=mips-unknown-elf-gcc \
+ AR=mips-unknown-elf-ar \
+ CFLAGS="-c -ffunction-sections -fdata-sections -O3"