summaryrefslogtreecommitdiffstats
path: root/src/server/Makefile
diff options
context:
space:
mode:
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