blob: be312d7049cbc38dc5f6c5ddb4cdf4273638dbb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CPP = g++
CPPFLAGS = -Wall -g
SOURCES = server.cpp sockets.cpp chat.cpp rooms.cpp
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE = server
.PHONY: all clean
all: $(EXECUTABLE)
clean:
rm -rf $(OBJECTS) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CPP) $(CPPFLAGS) -o $(EXECUTABLE) $(OBJECTS)
$(OBJECTS):
$(CPP) -c $(CPPFLAGS) $(SOURCES)
|