-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1.5 KB
/
Makefile
File metadata and controls
48 lines (37 loc) · 1.5 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aabda <aabda@student.s19.be> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/08/03 20:58:10 by aabda #+# #+# #
# Updated: 2022/08/04 14:33:48 by aabda ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
DIR = srcs/
CC = gcc
FLAGS = -Wall -Wextra -Werror
LIB = ar rcs
SRCS = $(DIR)ft_printf.c $(DIR)ft_count_nbr.c \
$(DIR)ft_is_char.c $(DIR)ft_is_hex.c \
$(DIR)ft_is_int.c $(DIR)ft_is_percent.c \
$(DIR)ft_is_pointer.c $(DIR)ft_is_string.c \
$(DIR)ft_is_unsigned.c $(DIR)ft_putchar_fd.c \
$(DIR)ft_putnbr_fd.c $(DIR)ft_putstr_fd.c \
$(DIR)ft_search_tc.c $(DIR)ft_strlen.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
%.o: %.c
$(CC) $(FLAGS) -o $@ -c $<
$(NAME): $(OBJS)
$(LIB) $@ $^
norm:
norminette -R CheckDefine
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re norm