Have never used NMake but I'll look into it. With some luck it knows how to deal with standard makefiles? Have you considered CMake?