diff --git a/Makefile b/Makefile index 8e5843c..e0b3f8b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -NAME = ircserv +NAME = minichat SRC = main.cpp ./Srcs/Server.cpp ./Srcs/Client.cpp ./Srcs/Channel.cpp ./Srcs/Authentication.cpp \ ./Srcs/Broadcast.cpp ./Srcs/Commands.cpp ./Srcs/Helpers.cpp ./Srcs/Modes.cpp @@ -7,17 +7,25 @@ OBJ = ${SRC:.cpp=.o} CXX = c++ -CXXFLAGS = -std=c++98 -fsanitize=address -g3 -Wall -Wextra -Werror -I ./Includes +CXXFLAGS = -std=c++98 -Wall -Wextra -Werror -I ./Includes all : $(NAME) $(NAME) : $(OBJ) - $(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME) + @$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME) + @echo "\033[1;32m---- BUILT SUCCESSFULLY! ----\033[0m" + +%.o: %.cpp + @echo "\033[36mCompiling $<...\033[0m" + @$(CXX) $(CXXFLAGS) -c $< -o $@ clean : - rm -rf *.o + @rm -rf *.o + @rm -rf ./Srcs/*.o + @echo "\033[31mObject files cleaned.\033[0m" fclean : clean - rm -rf $(NAME) + @rm -rf $(NAME) + @echo "\033[31mExecutable cleaned.\033[0m" -re : fclean all \ No newline at end of file +re : fclean all diff --git a/Srcs/Authentication.o b/Srcs/Authentication.o deleted file mode 100644 index 6bed2aa..0000000 Binary files a/Srcs/Authentication.o and /dev/null differ diff --git a/Srcs/Broadcast.o b/Srcs/Broadcast.o deleted file mode 100644 index 64f69df..0000000 Binary files a/Srcs/Broadcast.o and /dev/null differ diff --git a/Srcs/Channel.o b/Srcs/Channel.o deleted file mode 100644 index 83c9783..0000000 Binary files a/Srcs/Channel.o and /dev/null differ diff --git a/Srcs/Client.o b/Srcs/Client.o deleted file mode 100644 index 400cf31..0000000 Binary files a/Srcs/Client.o and /dev/null differ diff --git a/Srcs/Commands.o b/Srcs/Commands.o deleted file mode 100644 index 57cd4a4..0000000 Binary files a/Srcs/Commands.o and /dev/null differ diff --git a/Srcs/Helpers.o b/Srcs/Helpers.o deleted file mode 100644 index 5a59e9a..0000000 Binary files a/Srcs/Helpers.o and /dev/null differ diff --git a/Srcs/Modes.o b/Srcs/Modes.o deleted file mode 100644 index d43fdb5..0000000 Binary files a/Srcs/Modes.o and /dev/null differ diff --git a/Srcs/Server.o b/Srcs/Server.o deleted file mode 100644 index 7b3c127..0000000 Binary files a/Srcs/Server.o and /dev/null differ diff --git a/main.cpp b/main.cpp index 5026a6f..af9a244 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,4 @@ #include "Server.hpp" -#include "Macros.hpp" int main(int ac, char **av) {