Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Makefiles Reply to this message
Posted bysmf
Posted on04/15/04 02:58 AM



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




-
Entire Thread
Subject  Posted byPosted On
*Makefiles  finaldave04/14/04 06:56 AM
..Re: Makefiles  smf04/15/04 02:58 AM