summaryrefslogtreecommitdiffstats
path: root/src/client_clui/Makefile
blob: 071462b373539c88828ff785b1f296f999d7600a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CPP = g++
CPPFLAGS = -Wall -g -lncurses
SOURCES = client.cpp clui.cpp user.cpp
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE = client

.PHONY: all clean

all: $(EXECUTABLE)

clean:
	rm -rf $(OBJECTS) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CPP) $(CPPFLAGS) -o $(EXECUTABLE) $(OBJECTS)

$(OBJECTS):
	$(CPP) -c $(CPPFLAGS) $(SOURCES)