summaryrefslogtreecommitdiffstats
path: root/src/client/clui/Makefile
blob: 3b0c825625a5aea22f7dc02018f4eeb84009b3a7 (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 = main.cpp clui.cpp Client.cpp ../ClientBase.cpp WindowInterface.cpp
OBJECTS = main.o clui.o Client.o ClientBase.o WindowInterface.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)