summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..88e9cfa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+LIBRARIES = -lm `pkg-config guile-2.2 --cflags` -Iinclude
+SOURCES = ./src/* ./cmd/main.c
+OUTPUT_DIR = bin
+OUTPUT = -o $(OUTPUT_DIR)/PROG
+
+build: output_dir
+ gcc -Wall $(LIBRARIES) $(SOURCES) $(OUTPUT:PROG=othello)
+
+debug: output_dir
+ gcc -Wall -g $(LIBRARIES) $(SOURCES) $(OUTPUT:PROG=othello)
+
+output_dir:
+ mkdir -p $(OUTPUT_DIR)
+
+clean:
+ rm -rf $(OUTPUT_DIR) **.h.gch