|
@@ -1,5 +1,3 @@
|
|
|
-SHELL := /bin/bash
|
|
|
-
|
|
|
CXX=g++
|
|
|
CXXFLAGS=
|
|
|
LDFLAGS=-lSDL
|
|
@@ -12,16 +10,17 @@ OBJ=$(SRC:.cpp=.o)
|
|
|
|
|
|
$(EXEC): $(OBJ)
|
|
|
@mkdir -p bin
|
|
|
- @$(CXX) -o bin/$@ $^ $(LDFLAGS) $(LIB)
|
|
|
+ $(CXX) -o bin/$@ $^ $(LDFLAGS) $(LIB)
|
|
|
|
|
|
-#TODO add .h in case off global variables
|
|
|
+#TODO add .h in case of global variables
|
|
|
%.o : %.cpp
|
|
|
- @$(CXX) -o $@ -c $< $(CXXFLAGS) $(INC)
|
|
|
+ $(CXX) -o $@ -c $< $(CXXFLAGS) $(INC)
|
|
|
+
|
|
|
clean:
|
|
|
- @rm -rf $(OBJ)
|
|
|
+ rm -rf $(OBJ)
|
|
|
|
|
|
distclean: clean
|
|
|
- @rm -rf $(EXEC)
|
|
|
+ rm -rf $(EXEC)
|
|
|
|
|
|
exec: $(EXEC)
|
|
|
- @./bin/$(EXEC)
|
|
|
+ ./bin/$(EXEC)
|