summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-12 22:19:22 +0000
committerJoursoir <chat@joursoir.net>2021-03-12 22:19:22 +0000
commit6aa075f80e0742424d8bf0f15dc69467c4dc3a04 (patch)
tree9ef8f40b68a5926499b21b5015c9514d8b440035
parent5e67c04a0b81194835e1bbedc8ca52df0852694a (diff)
downloadlp-gomoku-master.tar.gz
lp-gomoku-master.tar.bz2
lp-gomoku-master.zip
add MakefileHEADmaster
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9f5f28b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC = g++
+CFLAGS = -Wall -lncurses
+SOURCES = GameField.cpp ai.cpp clui.cpp
+OBJECTS = GameField.o ai.o clui.o
+EXECUTABLE = lpgomoku
+
+.PHONY: all clean
+
+all: $(EXECUTABLE)
+
+clean:
+ @rm -rf $(EXECUTABLE) $(OBJECTS)
+
+$(OBJECTS):
+ @$(CC) -c $(CFLAGS) $(SOURCES)
+
+$(EXECUTABLE): $(OBJECTS)
+ @$(CC) $(CFLAGS) -o $(EXECUTABLE) $(OBJECTS)
+ \ No newline at end of file