summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-12 21:11:33 +0000
committerJoursoir <chat@joursoir.net>2021-03-12 21:11:33 +0000
commit97445877a5fbfff033114367e0893c7a8903460c (patch)
tree26c8b16f39c8ba6c510869f150087b7b5985e48c
parenta049134af7b0f82746eab9ec032f61a62eb67ecd (diff)
downloadascii-road-master.tar.gz
ascii-road-master.tar.bz2
ascii-road-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..3cee2cf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PREFIX = /usr/local/bin
+CC = g++
+CFLAGS = -Wall -Wno-trigraphs -lncurses
+SOURCES = main.cpp GameWorld.cpp Vehicle.cpp
+OBJECTS = main.o GameWorld.o Vehicle.o
+EXECUTABLE = aroad
+
+.PHONY: all clean
+
+all: $(EXECUTABLE)
+
+clean:
+ @rm -rf $(EXECUTABLE) $(OBJECTS)
+
+$(OBJECTS):
+ @$(CC) -c $(CFLAGS) $(SOURCES)
+
+$(EXECUTABLE): $(OBJECTS)
+ @$(CC) $(CFLAGS) -o $(EXECUTABLE) $(OBJECTS)