From: Jeff Dean <jeff at AIDS-UNIX.ARPA> I've got a makefile generator. It's actually two short programs, one a shell script and one an awk script. It hasn't been heavily debugged, but it is straightforward enough to read and fix. The program is called /usr/jeff/bin/makegen, and it takes arguments as you've specified.