-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (60 loc) · 1.88 KB
/
Copy pathMakefile
File metadata and controls
72 lines (60 loc) · 1.88 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pguillie <pguillie@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/22 15:06:34 by pguillie #+# #+# #
# Updated: 2020/01/10 10:52:30 by pguillie ### ########.fr #
# #
#******************************************************************************#
NAME := ft_ssl
CC = gcc
CFLAGS = -Wall -Werror -Wextra -I$(incdir)
incdir := include/
srcdir := src/
headers = $(addprefix $(incdir), \
ft_ssl.h \
ft_md5.h \
libft.h \
)
sources = $(addprefix $(srcdir), \
main.c \
ft_ssl_set_command.c \
ft_ssl_invalid_command.c \
ft_md5.c \
ft_md5_string.c \
ft_md5_file.c \
ft_md5_stdin.c \
ft_md5_init.c \
ft_md5_process_message.c \
ft_md5_process_block.c \
ft_md5_append_length.c \
ft_md5_print_digest.c \
ft_sha256.c \
ft_sha256_string.c \
ft_sha256_file.c \
ft_sha256_stdin.c \
ft_sha256_init.c \
ft_sha256_process_message.c \
ft_sha256_process_block.c \
ft_sha256_append_length.c \
ft_sha256_print_digest.c \
ft_strlen.c \
ft_putstr.c \
ft_puterr.c \
ft_strcmp.c \
ft_strcpy.c \
ft_memcpy.c \
)
objects = $(sources:%.c=%.o)
all: $(NAME)
$(NAME): $(objects)
$(CC) -o $@ $^
$(objects): Makefile $(headers)
clean:
$(RM) $(objects)
fclean:
$(RM) $(objects) $(NAME)
re: fclean all