+gcc/src/.freetype:
+ mkdir -p gcc/src
+ curl http://umn.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.4.tar.gz | tar xvzf - -C gcc/src
+ cd gcc/src; patch -p0 < freetype.patch
+ touch gcc/src/.freetype
+
+build/mips/freetype.mips: gcc/src/.freetype
+ mkdir -p build/mips
+ make -C gcc mips target=mips
+ $(gcc_path)/bin/mips-gcc \
+ --static \
+ -mabi=32 \
+ -mips1 \
+ -msoft-float \
+ -o $@ \
+ -I gcc/src/freetype-2.1.4/include \
+ $(freetype_sources) \
+ -Wl,--warn-once \
+ src/org/xwt/imp/Freetype.c \
+ $(gcc_path)/mips/lib/libm.a \
+ -Wl,-s,-T,$(gcc_path)/mips/lib/nullmon.ld
+
+build/java/org/xwt/imp/Freetype.java: build/mips/freetype.mips build/org/xwt/imp/MIPS.class
+ @echo "translating .mips -> .java: $<"
+ @mkdir -p build/java/org/xwt/imp/
+ @java -cp build org.xwt.imp.MIPS org.xwt.imp.Freetype build/mips/freetype.mips > build/java/org/xwt/imp/Freetype.java
+
+# compile is here to force compilation of the .class files (they get used via -Ibuild) without