+fixmes:
+ -@for file in $(ALLFILES); do grep -H FIXME $$file; done; true
+
+find:
+ @find functions/ includes/ internals/ platform/ -name "*\.[ch]" -type f | xargs grep $$FIND
+
+links:
+ @echo "Linking platform/$(PLATFORM)..."
+ @cd internals && ln -s ../platform/$(PLATFORM)/internals/_PDCLIB_config.h
+ @cd includes && ln -s ../platform/$(PLATFORM)/includes/float.h
+ @cd testing && ln -s ../platform/$(PLATFORM)/testing/printf_reference.txt
+ @cd functions/_PDCLIB && for file in $(PATCHFILES1); do basfile=`basename $$file`; if [ ! -f $$basfile ]; then ln -s `ls ../../$$file` .; fi; done
+ @cd functions/stdlib && for file in $(PATCHFILES2); do basfile=`basename $$file`; if [ ! -f $$basfile ]; then ln -s `ls ../../$$file` .; fi; done
+ @cd functions/stdio && for file in $(PATCHFILES3); do basfile=`basename $$file`; if [ ! -f $$basfile ]; then ln -s `ls ../../$$file` .; fi; done
+
+unlink:
+ @echo "Unlinking platform files..."
+ @if [ -f internals/_PDCLIB_config.h ]; then rm internals/_PDCLIB_config.h; fi
+ @if [ -f includes/float.h ]; then rm includes/float.h; fi
+ @if [ -f testing/printf_reference.txt ]; then rm testing/printf_reference.txt; fi
+ @cd functions/_PDCLIB && for file in $(PATCHFILES1); do basfile=`basename $$file`; if [ -f $$basfile ]; then rm $$basfile; fi; done
+ @cd functions/stdlib && for file in $(PATCHFILES2); do basfile=`basename $$file`; if [ -f $$basfile ]; then rm $$basfile; fi; done
+ @cd functions/stdio && for file in $(PATCHFILES3); do basfile=`basename $$file`; if [ -f $$basfile ]; then rm $$basfile; fi; done
+
+help:
+ @echo "Available make targets:"
+ @echo
+ @echo "all - build pdclib.a"
+ @echo "clean - remove all object files, dependency files and test drivers"
+ @echo "srcdist - build pdclib.tgz (source tarball)"
+ @echo "test - test a single testdriver (Usage: FILE=\"test.[rt]\" make test)"
+ @echo "tests - build and run test drivers (link pdclib.a)"
+ @echo " testdrivers - build but do not run test drivers"
+ @echo "regtests - build and run regression test drivers (link system clib)"
+ @echo " regtestdrivers - build but do not run regression test drivers"
+ @echo "todos - list all TODO comments in the sources"
+ @echo "fixmes - list all FIXME comments in the sources"
+ @echo "find - find a phrase in the sources (Usage: FIND=\"phrase\" make find)"
+ @echo "links - link platform files (development only)"
+ @echo "unlink - remove links to platform files (development only)"
+ @echo "%.o - build an individual object file"
+ @echo "%.t - build an individual test driver"
+ @echo "%.r - build an individual regression test driver"
+ @echo "help - print this list"
+ @echo
+ @echo "Any additional compiler flags you want to use can be passed as USERFLAGS"
+ @echo "(Usage: USERFLAGS=\"flags\" make [...])."
+