Explorar o código

Make the funtain compilable

DricomDragon %!s(int64=4) %!d(string=hai) anos
pai
achega
a4400afa0f

+ 1 - 0
sdl1/colorFuntain/.gitignore

@@ -0,0 +1 @@
+bin/

+ 1 - 1
sdl1/colorFuntain/FeuFolet.h

@@ -2,7 +2,7 @@
 #define FEUFOLET_H_INCLUDED
 
 #include <iostream>
-#include <SDL.h>
+#include <SDL/SDL.h>
 
 ///Développeur: Jovian Hersemeule
 ///Dernière mise à jour le: 02/08/2013

+ 1 - 1
sdl1/colorFuntain/main.cpp

@@ -1,5 +1,5 @@
 #include <iostream>
-#include <SDL.h>
+#include <SDL/SDL.h>
 
 #include <ctime>
 #include <cstdlib>

+ 25 - 0
sdl1/colorFuntain/makefile

@@ -0,0 +1,25 @@
+CXX=g++
+CXXFLAGS=
+LDFLAGS=-lSDL
+INC=
+LIB=
+
+EXEC=SdlApp
+SRC=$(shell find . -name '*.cpp')
+OBJ=$(SRC:.cpp=.o)
+
+$(EXEC): $(OBJ)
+	@mkdir -p bin
+	$(CXX) -o bin/$@ $^ $(LDFLAGS) $(LIB)
+
+%.o : %.cpp
+	$(CXX) -o $@ -c $< $(CXXFLAGS) $(INC)
+
+clean:
+	rm -rf $(OBJ)
+
+distclean: clean
+	rm -rf ./bin
+
+exec: $(EXEC)
+	./bin/$(EXEC)