summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3cee2cf17146bbac3cfabf38e27220c9a1761544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)