-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (34 loc) · 1.3 KB
/
Copy pathMakefile
File metadata and controls
42 lines (34 loc) · 1.3 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vcodrean <vcodrean@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/12/19 17:18:20 by vcodrean #+# #+# #
# Updated: 2023/01/04 16:32:15 by vcodrean ### ########.fr #
# #
# **************************************************************************** #
NAME= libftprintf.a
CC= gcc
CFLAGS= -Wall -Wextra -Werror
RM= rm -f
SRCS = ft_putchar.c \
ft_printf.c \
ft_putstr.c \
ft_strlen.c \
ft_putchar_fd.c \
ft_print_ptr.c \
ft_putnbr.c \
ft_print_unsigned.c \
ft_print_hex.c
OBJS = $(SRCS:.c=.o)
$(NAME) : $(OBJS)
@ar crs $(NAME) $(OBJS)
all: $(NAME)
clean:
@$(RM) $(OBJS)
fclean: clean
@rm -f $(NAME)
re: fclean all
.PHONY: all re clean fclean