-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (41 loc) · 1.43 KB
/
Makefile
File metadata and controls
52 lines (41 loc) · 1.43 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
49
50
51
52
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: chaydont <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/12/13 13:10:43 by chaydont #+# #+# #
# Updated: 2017/12/13 14:36:32 by chaydont ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c \
ft_printu.c \
ft_printi.c \
ft_prints.c \
ft_printc.c \
parsing.c \
ft_strchr.c \
ft_atoi.c \
ft_strlen.c \
ft_putchar.c \
ft_isdigit.c \
ft_nb_digit_base.c
OBJ = $(SRC:.c=.o)
HEADER = ft_printf.h
LIB = libft/libft.a
FLAGS = -Wall -Werror -Wextra
all: $(NAME)
$(NAME):
@gcc -c $(FLAG) $(SRC)
@echo "[Objects Created]"
@ar rc $(NAME) $(OBJ)
@echo "[$(NAME) Created]"
clean:
@rm -f $(OBJ)
@echo "[Objects Cleaned]"
fclean: clean
@rm -f $(NAME)
@echo "[$(NAME) Cleaned]"
re: fclean all