-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
87 lines (68 loc) · 2.13 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kmira <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/09/29 20:34:09 by kmira #+# #+# #
# Updated: 2019/10/18 15:04:47 by kmira ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_ssl
FLAGS = -Wall -Wextra -Werror
LIBRARY = libft/libft.a
INCLUDE = -I includes
MD5_SRCS = \
main_md5 \
md5_utils
SHA256_SRCS = \
main_sha256 \
sha256_utils
SHA224_SRCS = \
main_sha224 \
sha224_utils
SHA512_SRCS = \
main_sha512 \
sha512_utils
SHA384_SRCS = \
main_sha384 \
sha384_utils
SRCS = \
debug \
function_dispatch \
io_input_reading \
io_output \
main \
parse_files \
parse_flags \
utils
C_FILES = \
$(addprefix srcs/md5/, $(addsuffix .c, $(MD5_SRCS))) \
$(addprefix srcs/sha256/, $(addsuffix .c, $(SHA256_SRCS))) \
$(addprefix srcs/sha224/, $(addsuffix .c, $(SHA224_SRCS))) \
$(addprefix srcs/sha512/, $(addsuffix .c, $(SHA512_SRCS))) \
$(addprefix srcs/sha384/, $(addsuffix .c, $(SHA384_SRCS))) \
$(addprefix srcs/, $(addsuffix .c, $(SRCS)))
OBJS = $(addsuffix .o, $(SRCS))
# gcc -o $(NAME) $(OBJS) $(LIBRARY)
all: $(NAME)
$(NAME): $(LIBRARY)
@echo "Creating executable ft_ssl"
@gcc $(FLAGS) $(LIBRARY) $(INCLUDE) $(C_FILES) -o $(NAME)
$(LIBRARY):
make -C libft/
clean:
@echo "Removing all .o files"
@make -C libft/ clean
@rm -f $(OBJS)
fclean: clean
@echo "Fully cleaning program files"
@make -C libft/ fclean
@rm -f $(NAME)
re: fclean all
quick: clean
@rm -f $(NAME)
make all
@clear
./ft_ssl md5 -s Testing