make -C gcc mips target=mips
$(gcc_path)/bin/mips-gcc \
--static \
- -march=r3000 \
+ -mabi=32 \
+ -mips1 \
-msoft-float \
-o freetype.mips \
-I gcc/src/freetype-2.1.4/include \
$(freetype_sources) \
- -Wl,--warn-once \
+ -Wl,--warn-once,--strip \
src/org/xwt/imp/Freetype.c \
$(gcc_path)/mips/lib/libc.a \
-Wl,-T,$(gcc_path)/mips/lib/nullmon.ld
bin/org/xwt/imp/Freetype.java: freetype.mips bin/org/xwt/imp/MIPS.class
- @echo "translating .mips -> .java: $<"
- @java -cp bin org.xwt.imp.MIPS org.xwt.imp.Freetype < freetype.mips > bin/org/xwt/imp/Freetype.java
+ @echo "translating .mips -> .java: $<"
+ @java -cp bin org.xwt.imp.MIPS org.xwt.imp.Freetype freetype.mips > bin/org/xwt/imp/Freetype.java
# compile is here to force compilation of the .class files (they get used via -Ibin/) without
# having the individual .o's depend on the .java's (otherwise every .o gets recompiled when one .java changes)