From ad0a2dc909fbb772d42ab6faf13bba74fbc2483d Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 2 Dec 2020 12:46:42 +0000 Subject: try to make the code is easier; start work with db --- src/server/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/Makefile') 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 -- cgit v1.2.3-18-g5258