forked from ayoubelhioui/WebServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (36 loc) · 1004 Bytes
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
NAME=webserv
CC=c++
CPPFLAGS= -Wall -Wextra -Werror -std=c++98
FS= -fsanitize=address -g3
RM=rm -rf
HEADERS = Interfaces/ConfigFileParser.hpp \
Interfaces/MultiHttpServer.hpp \
SOURCES = main.cpp \
Implementations/ConfigFileParser.cpp \
Implementations/LocationBlockParse.cpp \
Implementations/GETMethod.cpp \
Implementations/POSTMethod.cpp \
Implementations/ServerConfiguration.cpp \
Implementations/MultiHttpServer.cpp \
Implementations/Client.cpp \
Implementations/ChunkedPostRequest.cpp \
Implementations/HttpServer.cpp \
Implementations/RequestParser.cpp \
Implementations/DeleteMethod.cpp \
errorsHandling/errorsHandling.cpp \
Utils/stringManip.cpp \
getFormat.cpp \
DIR_LISTING_FILE = directoryListing.html
OBJECTS=$(SOURCES:.cpp=.o)
all : $(NAME)
$(NAME) : $(OBJECTS)
$(CC) $(CPPFLAGS) $(FS) $(OBJECTS) -o $(NAME)
$(OBJECTS) : $(HEADERS)
leaks:
./leaks.sh
clean:
$(RM) $(OBJECTS)
$(RM) $(DIR_LISTING_FILE)
fclean: clean
$(RM) $(NAME)
re : fclean all