Skip to content

Commit

Permalink
Add server_engine folder.
Browse files Browse the repository at this point in the history
Changes Makefile structure.
  • Loading branch information
Sepulven committed May 22, 2024
1 parent ef17894 commit 91042a5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
NAME = webserv
CXX = c++
CXXFLAGS = -Wall -Werror -Wextra -std=c++98 -g # -fsanitize=address
INCLUDES = -I ./inc

SRCS = main.cpp ServerContext.cpp WebServer.cpp HttpError.cpp

## * File folder defintion
PARSER = Parser.cpp ParserUtils.cpp Lexer.cpp

UTILS = __raw_data_utils.cpp __file_manager_utils.cpp __webserv_utils.cpp

CONN = Req.cpp Res.cpp ConnStream.cpp
CONN = Req.cpp Res.cpp ConnStream.cpp HttpError.cpp

SRC = $(addprefix srcs/,$(SRCS)) \
$(addprefix srcs/utils/,$(UTILS)) \
$(addprefix srcs/parser/,$(PARSER)) \
$(addprefix srcs/conn/,$(CONN))
SERVER_ENG = ServerContext.cpp WebServer.cpp

INCLUDES = -I ./inc
SRC = $(addprefix srcs/__utils/,$(UTILS)) \
$(addprefix srcs/server_engine/,$(SERVER_ENG)) \
$(addprefix srcs/parser/,$(PARSER)) \
$(addprefix srcs/conn/,$(CONN)) \
$(addprefix srcs/,main.cpp) \

OBJ = $(SRC:.cpp=.o)

## * Compilation phase
%.o: %.cpp
@${CXX} ${CXXFLAGS} ${INCLUDES} -c $< -o $@

## * Makefile standart rules
all: $(NAME)

$(NAME): ${OBJ}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 91042a5

Please sign in to comment.