diff -Naur PDa/src/gp2x.readme PDa.gp2x/src/gp2x.readme
--- PDa/src/gp2x.readme	1970-01-01 08:00:00.000000000 +0800
+++ PDa.gp2x/src/gp2x.readme	2006-08-31 19:19:58.000000000 +0800
@@ -0,0 +1,39 @@
+Hi!
+
+This is the information I sent to Gunter after getting this to compile 
+for the gp2x.
+
+> Ok I got it compiling, thanks for your pointers. I have to compile in
+> everything static, including glibc etc. because the version that comes
+> with the gp2x development environment is out of sync with the version
+> in the firmware of the actual device itself. Anyway, the long and short
+> of it is I have added this to the makefile:
+>
+> gp2x:
+>       make pd_SRC="$(pd_SRC) $(extra_SRC)" DEFINES="-DPD -DUNIX
+>       -DSTATIC" CC="gp2x-gcc"\
+>       pd pd-watchdog $(BIN_DIR)/pdsend \
+>       $(BIN_DIR)/pdreceive
+>
+> As you can see I'm not compiling the gui as getting tcl/tk or even X to
+> work is some fun for another day, and probably pointless since you can't
+> control Pd's native interface with a joystick. I am working on a custom
+> GUI interface along the lines of the ipod PDa GUI, but controlled by
+> the gp2x joystick. I will send you a link to that when I'm done if
+> you'd like to put it on the PDa site or anything like that. Infact,
+> you can get the current progress of that out of my CVS from here if you
+> are interested:
+>
+> http://mccormick.cx/viewcvs/gp2xPd/
+>
+> It's written in python and pygame, which runs on the gp2x and can be
+> downloaded from here:
+> http://wiki.gp2x.org/wiki/Pygame
+>
+> The development environment, including gp2x-gcc I built from here:
+> http://archive.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,14,1609
+> That is needed to compile PDa successfully for the gp2x.
+
+You can email me here if you get stuck:
+chris@mccormick.cx
+
diff -Naur PDa/src/makefile PDa.gp2x/src/makefile
--- PDa/src/makefile	2006-04-19 17:58:23.000000000 +0800
+++ PDa.gp2x/src/makefile	2006-08-24 11:30:15.000000000 +0800
@@ -26,6 +26,24 @@
 extra_INCLUDES = -I../src
 extra_LDFLAGS = -shared
 
+# GP2X toolchain
+
+ifeq ($(CC), gp2x-gcc)
+#pd_LIBS = -lm -lpthread -ldl -L/home/chrism/mnt/gp2x/lib/
+#pd_DEFINES = $(DEFINES) -DINSTALL_PREFIX=\"$(PREFIX)\" \
+#		-DFIXEDPOINT -DUSEAPI_OSS -D__linux__ 
+#pd_LDFLAGS += -static -static-libgcc
+# CFLAGS = -static
+#extra_DEFINES += -D__linux__ -Dfork=getpid
+
+pd_LDFLAGS += -elf2flt -static -static-libgcc
+pd_LIBS = -lm -lpthread
+pd_DEFINES = $(DEFINES) -DINSTALL_PREFIX=\"$(PREFIX)\" \
+             -DFIXEDPOINT -DUSEAPI_OSS -D__linux__ -Dfork=getpid
+extra_DEFINES += -D__linux__ -Dfork=getpid
+
+endif
+
 # IPOD toolchain  
 
 ifeq ($(CC), arm-elf-gcc)
@@ -96,6 +114,11 @@
 
 extra: $(extra_EXT)
 
+gp2x:
+	make pd_SRC="$(pd_SRC) $(extra_SRC)" DEFINES="-DPD -DUNIX -DSTATIC" CC="gp2x-gcc"\
+	     pd pd-watchdog $(BIN_DIR)/pdsend \
+	     $(BIN_DIR)/pdreceive
+
 ipod:
 	make CC=arm-elf-gcc static
 
