|
to set the object name you do /Fo
so you'd need somthing like:
# Compile .cpp files: .cpp.obj: @$(CPP) $(CFLAGS) /c $*.cpp /Fo $**
and I think
OBJS=objs\DSound.obj objs\Emu.obj objs\Input.obj objs\LightCal.obj objs\Loop.obj objs\Main.obj objs\Rom.obj \ objs\Direct.obj objs\FileMenu.obj objs\Font.obj objs\TexScreen.obj
However you will also need to tell it how to map the files, something like:
objs\TexScreen.obj: TexScreen.cpp
you might as well add any of your own files that TexScreen.c #includes
objs\TexScreen.obj: TexScreen.cpp DavesInclude.h
Some versions of nmake won't use the .cpp.obj: bit in that case and you end up having to do:
COMPILE=@$(CPP) $(CFLAGS) /c $*.cpp /Fo $**
objs\TexScreen.obj: TexScreen.cpp DavesInclude.h $(COMPILE)
By this point you'll probably write a program which generates these :-)
smf
|