# Project: Projet SDL-OGL
# Makefile created by Dev-C++ 4.9.9.2

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = Projet_SDL-OGL_private.res
OBJ  = src/main.o src/Map.o src/Moteur.o src/Perso.o src/Interface.o src/CSpritesPerso.o $(RES)
LINKOBJ  = src/main.o src/Map.o src/Moteur.o src/Perso.o src/Interface.o src/CSpritesPerso.o $(RES)
LIBS =  -L"C:/Dev-Cpp/lib" -mwindows -lmingw32 -lSDLmain -lSDL -lopengl32 -lglu32 -lSDL_image C:/Dev-Cpp/lib/SDL_image.lib  
INCS =  -I"C:/Dev-Cpp/include" 
CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
BIN  = "Projet SDL-OGL.exe"
CXXFLAGS = $(CXXINCS)   -fexpensive-optimizations -O3
CFLAGS = $(INCS) -Dmain=SDL_main   -fexpensive-optimizations -O3
RM = rm -f

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

all: all-before "Projet SDL-OGL.exe" all-after


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

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "Projet SDL-OGL.exe" $(LIBS)

src/main.o: src/main.cpp
	$(CPP) -c src/main.cpp -o src/main.o $(CXXFLAGS)

src/Map.o: src/Map.cpp
	$(CPP) -c src/Map.cpp -o src/Map.o $(CXXFLAGS)

src/Moteur.o: src/Moteur.cpp
	$(CPP) -c src/Moteur.cpp -o src/Moteur.o $(CXXFLAGS)

src/Perso.o: src/Perso.cpp
	$(CPP) -c src/Perso.cpp -o src/Perso.o $(CXXFLAGS)

src/Interface.o: src/Interface.cpp
	$(CPP) -c src/Interface.cpp -o src/Interface.o $(CXXFLAGS)

src/CSpritesPerso.o: src/CSpritesPerso.cpp
	$(CPP) -c src/CSpritesPerso.cpp -o src/CSpritesPerso.o $(CXXFLAGS)

Projet_SDL-OGL_private.res: Projet_SDL-OGL_private.rc 
	$(WINDRES) -i Projet_SDL-OGL_private.rc --input-format=rc -o Projet_SDL-OGL_private.res -O coff 
