-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.28 KB
/
Makefile
File metadata and controls
45 lines (34 loc) · 1.28 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: halhashm <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/16 15:38:59 by halhashm #+# #+# #
# Updated: 2021/11/16 15:39:02 by halhashm ### ########.fr #
# #
# **************************************************************************** #
FLAG = -c -Wall -Werror -Wextra
NAME = libftprintf.a
SRC = ft_printf.c \
ft_printf_dt.c \
ft_strlen.c \
ft_putchar.c \
ft_putstr.c \
ft_putnbr.c \
ft_putnbr_base.c \
ft_ullitoa_base.c \
OBJ = $(SRC:.c=.o)
CC = gcc
RM = rm -f
all: $(NAME)
$(NAME): $(OBJ)
ar cr $(NAME) $(OBJ)
.c.o:
$(CC) $(FLAG) -g -c $< -o ${<:.c=.o}
clean:
${RM} $(OBJ)
fclean: clean
${RM} $(NAME)
re: fclean all