I have just completed 145 Gnu makefiles that allow the free MinGW (Gnu) Compiler to compile and execute all of the example programs which Charles Petzold describes in his "Programming Windows Fifth Edition" book, which is the standard reference book on Microsoft's WIN32 API.
I freely distribute these 145 makefiles in a .ZIP file, along with an installation program that will copy them into Petzold's directory structure, from my web page at:
http://www.computersciencelab.com/Petzold.htm
Only 5 of the 145 programs require user intervention to compile with the Gnu compiler, which is not bad for porting that many programs to a new compiler, especially given Microsoft's lax adherence to standards.
I would be very pleased if these makefiles would help with the development of the Wine emulator.
John Kopplin
_________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
On Fri, 7 Feb 2003, John Kopplin wrote:
I would be very pleased if these makefiles would help with the development of the Wine emulator.
Yes, they are quite helpful. To be even more useful, please change the lines:
CC = gcc WRES = windres
into:
ifndef WINE CC = gcc WRES = windres else CC = winegcc WRES = wrc endif
This way they are ready to compile as Winelib apps just by doing:
make -f file.mak WINE=1
Cool work, thanks!