# Project: Project1
# Makefile created by Dev-C++ 4.9.9.2

CPP  = g++.exe -D__DEBUG__
CC   = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES  = 
OBJ  = bullet.o bulletmanager.o enemy.o enemymanager.o explosion.o explosionmanager.o factory.o gameengine.o imagemanager.o introstate.o menustate.o player.o playstate.o sprite.o main2.o $(RES)
LINKOBJ  = bullet.o bulletmanager.o enemy.o enemymanager.o explosion.o explosionmanager.o factory.o gameengine.o imagemanager.o introstate.o menustate.o player.o playstate.o sprite.o main2.o $(RES)
LIBS =  -L"D:/Dev-Cpp/lib" -mwindows -lmingw32 -lSDLmain -lSDL -lSDL_image  -g3 
INCS =  -I"D:/Dev-Cpp/include" 
CXXINCS =  -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"D:/Dev-Cpp/include/c++/3.4.2/backward"  -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"D:/Dev-Cpp/include/c++/3.4.2"  -I"D:/Dev-Cpp/include" 
BIN  = Project1.exe
CXXFLAGS = $(CXXINCS)   -fexceptions -O3 -g3
CFLAGS = $(INCS)   -fexceptions -O3 -g3
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before Project1.exe all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "Project1.exe" $(LIBS)

bullet.o: bullet.cpp
	$(CPP) -c bullet.cpp -o bullet.o $(CXXFLAGS)

bulletmanager.o: bulletmanager.cpp
	$(CPP) -c bulletmanager.cpp -o bulletmanager.o $(CXXFLAGS)

enemy.o: enemy.cpp
	$(CPP) -c enemy.cpp -o enemy.o $(CXXFLAGS)

enemymanager.o: enemymanager.cpp
	$(CPP) -c enemymanager.cpp -o enemymanager.o $(CXXFLAGS)

explosion.o: explosion.cpp
	$(CPP) -c explosion.cpp -o explosion.o $(CXXFLAGS)

explosionmanager.o: explosionmanager.cpp
	$(CPP) -c explosionmanager.cpp -o explosionmanager.o $(CXXFLAGS)

factory.o: factory.cpp
	$(CPP) -c factory.cpp -o factory.o $(CXXFLAGS)

gameengine.o: gameengine.cpp
	$(CPP) -c gameengine.cpp -o gameengine.o $(CXXFLAGS)

imagemanager.o: imagemanager.cpp
	$(CPP) -c imagemanager.cpp -o imagemanager.o $(CXXFLAGS)

introstate.o: introstate.cpp
	$(CPP) -c introstate.cpp -o introstate.o $(CXXFLAGS)

menustate.o: menustate.cpp
	$(CPP) -c menustate.cpp -o menustate.o $(CXXFLAGS)

player.o: player.cpp
	$(CPP) -c player.cpp -o player.o $(CXXFLAGS)

playstate.o: playstate.cpp
	$(CPP) -c playstate.cpp -o playstate.o $(CXXFLAGS)

sprite.o: sprite.cpp
	$(CPP) -c sprite.cpp -o sprite.o $(CXXFLAGS)

main2.o: main2.cpp
	$(CPP) -c main2.cpp -o main2.o $(CXXFLAGS)
