-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (55 loc) · 1.03 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
NAME = libft.a
# FILESC = ft_atoi.c \
# ft_factorial.c \
# ft_in_range.c \
# ft_is_prime.c \
# ft_power.c \
# ft_putchar.c \
# ft_putnbr.c \
# ft_putstr.c \
# ft_sqrt.c \
# ft_strcmp.c \
# ft_strcpy.c \
# ft_strdup.c \
# ft_strlen.c \
# ft_strlowcase.c \
# ft_strncmp.c \
# ft_strncpy.c \
# ft_strrev.c \
# ft_strstr.c \
# ft_strtrim.c \
# ft_strupcase.c \
# ft_swap.c
# FILESO = ft_atoi.o \
# ft_factorial.o \
# ft_in_range.o \
# ft_is_prime.o \
# ft_power.o \
# ft_putchar.o \
# ft_putnbr.o \
# ft_putstr.o \
# ft_sqrt.o \
# ft_strcmp.o \
# ft_strcpy.o \
# ft_strdup.o \
# ft_strlen.o \
# ft_strlowcase.o \
# ft_strncmp.o \
# ft_strncpy.o \
# ft_strrev.o \
# ft_strstr.o \
# ft_strtrim.o \
# ft_strupcase.o \
# ft_swap.o
FILESC = ft_*.c
FILESO = ft_*.o
all: $(NAME)
$(NAME):
gcc -Wall -Wextra -Werror -c $(FILESC)
ar rc $(NAME) $(FILESO)
ranlib $(NAME)
clean:
rm -f $(FILESO)
fclean: clean
rm -f $(NAME)
re: fclean all