--- /dev/null
+TARGET = pong
+LIBS = -lm -D_REENTRANT -lGL -lGLEW -lSDL2 -lSDL2_image -pthread
+
+CC = gcc
+CFLAGS = -g -Wall -I/usr/include/SDL2 -Isrc
+
+.PHONY: default all clean
+
+default: $(TARGET)
+all: default
+
+MODULES := vector clogs
+export VECTOR_DIR=vector/src
+export CLOG_DIR=clogs/src
+
+include $(patsubst %, %/module.mk, $(MODULES))
+
+CFLAGS += -I$(VECTOR_DIR) -I$(CLOG_DIR)
+
+#OBJ += $(patsubst src/%.c, src/%.o, $(wildcard src/*.c))
+HEADERS += $(wildcard src/*.h)
+SRC += $(wildcard src/*.c)
+OBJ := $(SRC:.c=.o)
+
+.PRECIOUS: $(TARGET) $(OBJ)
+
+$(TARGET): $(OBJ)
+ $(CC) $(OBJ) -Wall $(LIBS) -o $@
+ -./$(TARGET)
+
+clean:
+ rm -f src/*.o
+ rm -f $(TARGET)
+
+output:
+ @echo "SRC: $(SRC)"
+ @echo "OBJ: $(OBJ)"