summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ee2e518
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+RB_LIBS_DIR= ./src/include/
+BUILD_DIR= ./build/
+BIN_DIR= ./bin
+
+ALLEGRO_LIBS= -lallegro_font \
+ -lallegro_primitives \
+ -lallegro
+
+INCLUDES= -I$(RB_LIBS_DIR)
+
+OBJS= ./build/*.o
+
+all: $(BUILD_DIR)/rb.o
+ gcc -Wall $(INCLUDES) $(OBJS) $(ALLEGRO_LIBS) -o $(BIN_DIR)/rocksblaster
+
+$(BUILD_DIR)/rb.o: src/rb.c
+ gcc -Wall $(INCLUDES) -c src/rb.c -o $(BUILD_DIR)/rb.o
+
+clean:
+ rm -f $(BUILD_DIR)/*.o
+ rm -f $(BIN_DIR)/rocksblaster