-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 1.19 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mpetruse <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/06/18 16:34:50 by mpetruse #+# #+# #
# Updated: 2018/07/24 15:11:12 by mpetruse ### ########.fr #
# #
# **************************************************************************** #
#
C = gcc
NAME = libft.a
FLAGS = -Wall -Wextra -Werror -O2
SOURCES = ./src/ft_*.c ./ft_printf/*.c
INCLUDE = header
OBJS = ./src/ft_*.o ./ft_printf/*.o
all: $(NAME)
$(NAME):
$(CC) $(FLAGS) -c $(SOURCES) -I $(INCLUDE)
ar rc $(NAME) *.o
ranlib $(NAME)
clean:
rm -f *.o
fclean: clean
rm -f $(NAME)
re: fclean all