
GAME_CFILE	= gamemain.cpp gamefunc.cpp gameclassfunc.cpp gamespellfunc.cpp
GAME_OFILE	= $(GAME_CFILE:.cpp=.o)

CPP			= g++
CPPFLAG		= -c

all : $(GAME_OFILE)

gamemain.o : gamemain.cpp gameclass.h gameconfigure.h gamefile.h gamefunc.h
	$(CPP) $(CPPFLAG) gamemain.cpp
gamefunc.o : gamefunc.cpp gameclass.h gameconfigure.h gamefile.h gamefunc.h
	$(CPP) $(CPPFLAG) gamefunc.cpp
gameclassfunc.o : gameclassfunc.cpp gameclass.h gameconfigure.h gamefile.h gamefunc.h
	$(CPP) $(CPPFLAG) gameclassfunc.cpp
gamespellfunc.o : gamespellfunc.cpp gameclass.h gameconfigure.h gamefile.h gamefunc.h
	$(CPP) $(CPPFLAG) gamespellfunc.cpp

clean : 
	rm *.o

