summaryrefslogtreecommitdiffstats
path: root/src/server/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-12-02 12:46:42 +0000
committerJoursoir <chat@joursoir.net>2020-12-02 12:46:42 +0000
commitad0a2dc909fbb772d42ab6faf13bba74fbc2483d (patch)
tree22e71f968850b7862331040f035c1125fdb44880 /src/server/Makefile
parenta6b8d6e475700efcb7ae1f7cdb7afeb2027fd4b7 (diff)
downloadwant-chat-ad0a2dc909fbb772d42ab6faf13bba74fbc2483d.tar.gz
want-chat-ad0a2dc909fbb772d42ab6faf13bba74fbc2483d.tar.bz2
want-chat-ad0a2dc909fbb772d42ab6faf13bba74fbc2483d.zip
try to make the code is easier; start work with db
Diffstat (limited to 'src/server/Makefile')
-rw-r--r--src/server/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/Makefile b/src/server/Makefile
index be312d7..03836e8 100644
--- a/src/server/Makefile
+++ b/src/server/Makefile
@@ -1,6 +1,6 @@
CPP = g++
-CPPFLAGS = -Wall -g
-SOURCES = server.cpp sockets.cpp chat.cpp rooms.cpp
+CPPFLAGS = -Wall -g $(shell mariadb_config --cflags --libs)
+SOURCES = main.cpp sockets.cpp ChatServer.cpp UserInfo.cpp UserInfo_io.cpp ChatRoom.cpp database.cpp
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE = server
@@ -9,10 +9,10 @@ EXECUTABLE = server
all: $(EXECUTABLE)
clean:
- rm -rf $(OBJECTS) $(EXECUTABLE)
+ @rm -rf $(OBJECTS) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
- $(CPP) $(CPPFLAGS) -o $(EXECUTABLE) $(OBJECTS)
+ @$(CPP) $(CPPFLAGS) -o $(EXECUTABLE) $(OBJECTS)
$(OBJECTS):
- $(CPP) -c $(CPPFLAGS) $(SOURCES) \ No newline at end of file
+ @$(CPP) -c $(CPPFLAGS) $(SOURCES) \ No newline at end of file