-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
37 lines (27 loc) · 1.41 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
NAME= ft_ssl
FLAGS= -Wall -Werror -Wextra
SRC= $(addsuffix .c, utils/ft_ssl_utils1 utils/ft_ssl_utils2 utils/ft_ssl_getoptions \
utils/ft_ssl_utils3 crypto/md5/ft_md5_transform crypto/md5/ft_md5_utils crypto/md5/ft_md5 \
crypto/md5/md5round1 crypto/md5/md5round2 crypto/md5/md5round3 crypto/md5/md5round4 \
crypto/sha256/ft_sha256 crypto/sha256/ft_sha256_transform \
crypto/sha256/ft_sha256_utils crypto/sha224/ft_sha224 main)
$(NAME):
@echo "\033[0;32mBuilding FT_SSL Program\033[0m"
@make -C libft
@$(CC) $(FLAGS) $(SRC) libft/libft.a -o $(NAME)
all: $(NAME)
clean:
@rm ft_ssl 2>/dev/null && echo "\033[0;36m\tremoving ft_ssl...\033[0m" || echo "\033[0;36m\tchecking for ft_ssl removal...\nremoved \033[0;32m\tX\033[0m"
@rm ft_ssl_debug 2>/dev/null && echo "\033[0;36m\tremoving ft_ssl_debug...\033[0m" || echo "\033[0;36m\tchecking for ft_ssl_debug removal...\nremoved \033[0;32m\tX\033[0m"
@rm -rf ft_ssl_debug.dSYM 2>/dev/null && echo "\033[0;36m\tremoving ft_ssl_debug.dSYM...\033[0m" || echo "\033[0;36m\tchecking for ft_ssl_debug.dSYM removal...\nremoved \033[0;32m\tX\033[0m"
@make -C libft clean
fclean: clean
@make -C libft fclean
fc: fclean
@echo "\033[1;34mDestroying FT_SSL Program\033[0m"
re: fc all
debug: fc
@echo "\033[0;32mBuilding FT_SSL \033[0;35mDEBUG MODE\033[0m"
@make -C libft
@$(CC) -fsanitize=address -g $(FLAGS) $(SRC) libft/libft.a -o ft_ssl_debug
.PHONY: clean fclean fc re main.c ft_ssl