-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (26 loc) · 735 Bytes
/
makefile
File metadata and controls
36 lines (26 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
NAME = webserv.a
SRCS = ./webserv/webserv.cpp \
./webserv/connexion/answer.cpp \
./webserv/connexion/cgi.cpp \
./webserv/connexion/connexion.cpp \
./webserv/connexion/parsing/config_file.cpp \
./webserv/connexion/parsing/http_request.cpp \
./webserv/connexion/parsing/url_to_local_path.cpp \
./webserv/connexion/parsing/utils.cpp \
./webserv/connexion/utils/utils.cpp
CXX = clang++
CXXFLAGS = -Wall -Wextra -Werror
OBJ = $(SRCS:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME)
run: re
./webserv.a conf/webserv0.conf
test:
yes | ./tests/ubuntu_tester http://127.0.0.1:1900
clean:
rm -rf $(OBJ)
fclean: clean
rm -rf $(NAME)
re: fclean all
.PHONY:all fclean re run