diff options
author | Joursoir <chat@joursoir.net> | 2021-03-12 21:11:33 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-03-12 21:11:33 +0000 |
commit | 97445877a5fbfff033114367e0893c7a8903460c (patch) | |
tree | 26c8b16f39c8ba6c510869f150087b7b5985e48c /Makefile | |
parent | a049134af7b0f82746eab9ec032f61a62eb67ecd (diff) | |
download | ascii-road-97445877a5fbfff033114367e0893c7a8903460c.tar.gz ascii-road-97445877a5fbfff033114367e0893c7a8903460c.tar.bz2 ascii-road-97445877a5fbfff033114367e0893c7a8903460c.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
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) |