A few notes for ps2sdk compilation on win32 machine, no cygwin just pure cmd shell.
At first I have to congratulate you guys! Good work. No serious problem during compilation encountered.
Here are some minor glitches:
1) command mkdir is internal command in win32 so shell ignores the gnu mkdir.exe. When internal mkdir tries to create directory and that directory already exists then error is returned and make process is halted. It happens all the time when obj and bin directories were created. I had to make my own mkdir2.exe that ignores already existing direcotries and then modified the ps2sdk makefiles to use my mkdir2.exe. Another solution is to call "make clean" that cleans all obj and bin directories before every "make" call.
2) chmod command in makefiles. No chmod on win32, so i just made fake chmod.exe that do nothing (except that it can be executed :)
3) strays "\" in the sources caused errors. I suspect that my "smart" cvs program convereted all sources to win32 text format so I had to convert it back to unix format. Another solution could be precompiler replacement or instaltion of the recent gcc toolchain (I'am lazy to switch to new things).
4) the bin2s program reported : "Failed to read file" so I was not able to create *.S files for further compilation. The problem seems to be that files are opened in text mode and some irx'es apparently had "eof" mark inside. Solution is to open file in binary ("rb") mode.
5) -lgcc library was not found during linking. Maybe it's a bug in my environment. Again I was too lazy to figure out how to fix my environment so I just copied libgcc to more accessible place.
6) stdarg.h could not be found when compiling iop stuff. Similar problem and solution as 5).
7) the Makefile.iopglobal was missing in the samples directory. I copied it form ps2lib and it works fine.