CC = $(MINGW32)/bin/mingw32-g++.exe
SOURCES =	src/main.cpp\
				src/Moteur.cpp\
				src/Map.cpp\
				src/Perso.cpp\
				src/CSpritesPerso.cpp


OBJECTS	=	$(SOURCES:.cpp=.o)
TARGET	=	TPB-Windows.exe
LIBS	=	-lmingw32 -lSDLMain -lSDL -lSDL_image -lopengl32 -lglu32

all: $(OBJECTS)
	$(CC) $(LIBS) -o $(TARGET) $(OBJECTS)

%o: %cpp
	$(CC) -o $@ -c $<

x: all
	wine $(TARGET)

clean:
	rm -rf $(OBJECTS)

superclean : clean
	rm -rf $(TARGET)

