summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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)