-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 1.29 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ikotvits <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/03/22 20:37:47 by ikotvits #+# #+# #
# Updated: 2018/03/28 15:20:49 by ikotvits ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
FLAGS = -Wall -Wextra -Werror
SRC = ./ft_strcmp.c ./ft_alpha.c ./ft_atoi.c ./ft_buf.c ./ft_bzero.c ./ft_manage.c ./ft_numb.c ./ft_printf.c ./ft_strcpy.c ./ft_strlen.c ./ft_strdup.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@ar rc $(NAME) $(OBJ)
@ranlib $(NAME)
$(OBJ): $(SRC)
gcc -c $(FLAGS) $(SRC) -I ./
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
@ rm -f a.out
re: fclean all