summaryrefslogtreecommitdiffstats
path: root/src/server/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-11-25 19:04:49 +0300
committerJoursoir <chat@joursoir.net>2020-11-25 19:04:49 +0300
commit6139b74876a5c8417d75c2759ce0baec4ae0e171 (patch)
tree9924c31f8136c3834fd452e3846a35bcac6602d7 /src/server/Makefile
parent8dfca4755430209504dac5ed2e03a482342265b3 (diff)
downloadwant-chat-6139b74876a5c8417d75c2759ce0baec4ae0e171.tar.gz
want-chat-6139b74876a5c8417d75c2759ce0baec4ae0e171.tar.bz2
want-chat-6139b74876a5c8417d75c2759ce0baec4ae0e171.zip
add second (work with chat) level of abstraction
Diffstat (limited to 'src/server/Makefile')
-rw-r--r--src/server/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/server/Makefile b/src/server/Makefile
new file mode 100644
index 0000000..be312d7
--- /dev/null
+++ b/src/server/Makefile
@@ -0,0 +1,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) \ No newline at end of file