Browse Source

Make firework compilable

DricomDragon 4 years ago
parent
commit
487edc691f

+ 1 - 0
sdl1/fireRain/.gitignore

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

+ 1 - 1
sdl1/fireRain/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/fireRain/PluieFlamme.h

@@ -10,7 +10,7 @@
 **/
 
 #include <iostream>
-#include <SDL.h>
+#include <SDL/SDL.h>
 
 #include <ctime>
 #include <cstdlib>

+ 1 - 1
sdl1/fireRain/main.cpp

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

+ 25 - 0
sdl1/fireRain/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)