From 1c32d3b4557e37b5f22f51735e585327754a0f90 Mon Sep 17 00:00:00 2001
From: Adam JOLY <adjoly@student.42angouleme.fr>
Date: Mon, 20 Jan 2025 16:52:02 +0100
Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=8E=89=E3=80=8D=20init:=20hello?=
 =?UTF-8?q?=20world=20!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Makefile           | 60 ++++++++++++++++++++++++++++++++++++++++++++++
 includes/webserv.h |  0
 src/webserv.cpp    | 20 ++++++++++++++++
 3 files changed, 80 insertions(+)
 create mode 100644 Makefile
 create mode 100644 includes/webserv.h
 create mode 100644 src/webserv.cpp

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1c0a8ff
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,60 @@
+# **************************************************************************** #
+#                                                                              #
+#                                                         :::      ::::::::    #
+#    Makefile                                           :+:      :+:    :+:    #
+#                                                     +:+ +:+         +:+      #
+#    By: adjoly <adjoly@student.42angouleme.fr>     +#+  +:+       +#+         #
+#                                                 +#+#+#+#+#+   +#+            #
+#    Created: 2024/10/25 16:09:27 by adjoly            #+#    #+#              #
+#    Updated: 2025/01/20 16:51:57 by adjoly           ###   ########.fr        #
+#                                                                              #
+# **************************************************************************** #
+
+SHELL = bash
+
+NAME = webserv
+
+CC = c++
+
+OBJSDIR = obj/
+
+SRCS = $(shell find . -name '*.cpp')
+
+OBJS = $(addprefix $(OBJSDIR), $(SRCS:.cpp=.o))
+
+FLAGS = -Wall -Werror -Wextra -std=c++98 -MMD -MP
+
+RED = \033[0;31m
+GREEN = \033[0;32m
+YELLOW = \033[1;33m
+PURPLE = \e[0;35m
+NC = \033[0m
+DELETE = \x1B[2K\r
+
+ifeq ($(VERBOSE),true)
+	FLAGS += -D VERBOSE
+endif
+
+all: $(NAME)
+
+$(NAME): $(OBJS)
+	@$(CC) $(FLAGS) -I . $(OBJS) -o $(NAME)
+	@printf "$(YELLOW)「✨」($(NAME)) Program compiled\n"
+
+$(OBJSDIR)%.o: %.cpp
+	@mkdir -p $(@D)
+	@$(CC) $(FLAGS) -I . -c $< -o $@
+	@printf "$(DELETE)$(GREEN)「🔨」($<) Object compiled\n"
+
+clean:
+	@rm -f $(OBJS)
+	@printf "$(DELETE)$(RED)「🗑️」($(OBJS)) Object deleted\n"
+
+fclean: clean
+	@rm -f $(NAME)
+	@rm -Rf $(OBJSDIR)
+	@printf "$(RED)「🗑️」($(NAME)) Program deleted\n"
+
+re: fclean all
+
+.PHONY: clean fclean all re
diff --git a/includes/webserv.h b/includes/webserv.h
new file mode 100644
index 0000000..e69de29
diff --git a/src/webserv.cpp b/src/webserv.cpp
new file mode 100644
index 0000000..b60c590
--- /dev/null
+++ b/src/webserv.cpp
@@ -0,0 +1,20 @@
+/* ************************************************************************** */
+/*                                                                            */
+/*                                                        :::      ::::::::   */
+/*   webserv.cpp                                        :+:      :+:    :+:   */
+/*                                                    +:+ +:+         +:+     */
+/*   By: adjoly <adjoly@student.42angouleme.fr>     +#+  +:+       +#+        */
+/*                                                +#+#+#+#+#+   +#+           */
+/*   Created: 2025/01/20 16:33:31 by adjoly            #+#    #+#             */
+/*   Updated: 2025/01/20 16:35:02 by adjoly           ###   ########.fr       */
+/*                                                                            */
+/* ************************************************************************** */
+
+#include <iostream>
+
+int	main(int ac, char **av, char **env) {
+	(void)ac;
+	(void)av;
+	(void)env;
+	std::cout << "test" << std::endl;
+}