+
+
+##############################################################################
+# Freetype
+#
+
+build/mips/%.c.o: build/c/freetype/%.c install_freetype-2.1.4
+ make -s install_gcc-3.3 target=mips
+ mkdir -p build/mips
+ echo -e "\n\033[1mcompiling $< -> $@ (mips)\033[0m"
+ upstream/install/bin/mips-gcc -march=mips1 -I upstream/freetype-2.1.4/include -c -o $@ $<
+
+build/mips/freetype.mips: $(freetype_sources:%.c=build/mips/%.c.o)
+ make -s install_newlib-1.11.0 target=mips
+ @echo -e "\n\033[1mcompiling .c -> .mips: $@\033[0m"
+ mkdir -p build/mips
+ upstream/install/bin/mips-gcc \
+ -nostdlib \
+ --static \
+ -march=mips1 \
+ -T src/org/xwt/imp/linker.ld \
+ -Lbuild/mips \
+ -Lupstream/freetype-2.1.4/objs \
+ -o $@ \
+ build/mips/Freetype.o \
+ -lfreetype
+
+build/java/org/xwt/imp/Freetype.java: build/mips/freetype.mips build/class/org/xwt/imp/MIPS.class
+ @echo -e "\n\033[1mtranslating .mips -> .java: $@\033[0m"
+ mkdir -p build/java/org/xwt/imp/
+ rm -f $@
+ java -cp build/class org.xwt.imp.MIPS org.xwt.imp.Freetype build/mips/freetype.mips > build/java/org/xwt/imp/Freetype.java
+
+
+
+##############################################################################
+# Maintainer stuff: generating numbered builds, proposing patches
+#
+
+update-build:
+ cvs tag -F xwt-$(current_build)
+ (echo -n 0000; (echo "10k16o16i"; cat next.build | tr a-z A-Z; echo "1+f") | dc) | tail --bytes=5 > next.build-
+ mv next.build- next.build
+ echo -n "Next build will be "
+ cat next.build
+ cvs update CHANGES
+ echo "" >> CHANGES
+ echo `date +%d-%b`" =========== build $(current_build) ================================================" >> CHANGES
+ echo committing...
+ cvs commit -m 'this comment should not appear in CHANGES' next.build CHANGES
+ echo committed.
+
+propose-patch:
+ @echo -n "Please type a one-line description of this bug: "; \
+ read A; \
+ echo; \
+ echo "Please type any additional comments that explain this patch."; \
+ echo "If this patch fixes a bug, include a link to bugs.xwt.org."; \
+ echo "When you are done, press control-d on a new line."; \
+ echo; \
+ ( echo -e "HELO patcher"; \
+ echo -e "MAIL FROM:$(USER)@xwt.org"; \
+ echo -e "RCPT TO: patches@xwt.org"; \
+ echo -e "DATA"; \
+ echo -e "From: $(USER)@xwt.org"; \
+ echo -e "To: patches@xwt.org"; \
+ echo -e "Subject: proposed patch to $(this_branch): $$A"; \
+ echo -e ""; \
+ cat; \
+ echo; \
+ cvs diff -Bud; \
+ echo .; \
+ ) > .message
+ bash -c "cat .message > /dev/tcp/mail.xwt.org/25" # /dev/tcp is faked by bash; not part of the os