summaryrefslogtreecommitdiffstats
path: root/src/client/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-11-27 01:21:10 +0300
committerJoursoir <chat@joursoir.net>2020-11-27 01:21:10 +0300
commit67cdd15d97b14dd92de28fdbdb2770187c94e338 (patch)
tree1a3acc83f0187111404047f407b042671ff5d4e0 /src/client/Makefile
parent6139b74876a5c8417d75c2759ce0baec4ae0e171 (diff)
downloadwant-chat-67cdd15d97b14dd92de28fdbdb2770187c94e338.tar.gz
want-chat-67cdd15d97b14dd92de28fdbdb2770187c94e338.tar.bz2
want-chat-67cdd15d97b14dd92de28fdbdb2770187c94e338.zip
one more fix chat, support spec-messages, add exit from program :)
Diffstat (limited to 'src/client/Makefile')
-rw-r--r--src/client/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client/Makefile b/src/client/Makefile
new file mode 100644
index 0000000..071462b
--- /dev/null
+++ b/src/client/Makefile
@@ -0,0 +1,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) \ No newline at end of file