-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (46 loc) · 1.05 KB
/
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
47
48
49
50
51
52
53
54
55
56
##
## EPITECH PROJECT, 2023
## MyFTP
## File description:
## MAKEFILE file.
##
SRC = src/main.c \
src/print_help.c \
src/error_handling.c \
src/utils/my_exit.c \
src/socket.c \
src/socket_loop.c \
src/connections_loop.c \
src/accept_connections_loop.c \
src/parameters.c \
src/commands/command_delete.c \
src/commands/command_password.c \
src/commands/command_pwd.c \
src/commands/command_quit.c \
src/commands/command_username.c \
src/commands/command_list.c \
src/utils/invalid_path.c \
src/utils/is_file_or_directory.c \
src/utils/my_write.c \
src/utils/concat_strings.c \
src/commands/command_cwd.c \
src/utils/real_path.c \
src/utils/full_path.c \
src/commands/command_noop.c \
src/commands/command_cdup.c \
src/commands/command_help.c \
src/utils/search_line.c \
src/utils/close_socket.c \
src/utils/my_free.c
OBJ = $(SRC:.c=.o)
CFLAGS += -Wall -Wextra -Werror -I ./inc
NAME = myftp
$(NAME): $(OBJ)
gcc -o $(NAME) $(OBJ)
all: $(NAME)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re