-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 2.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: iakyaou <iakyaou@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/21 23:49:36 by iakyaou #+# #+# #
# Updated: 2022/10/28 23:53:18 by iakyaou ### ########.fr #
# #
# ************************************************************************** #
# #
# █████████ ██████████ ██████████ ██████████ #
# ██ ██ ██ ██ ██ ██ #
# ██ ██ ██ ██ ██ #
# ██ ██ ██ ██ #
# ██ ██████████ ██████████ ██ #
# ██ ██ ██ ██ #
# ██ ██ ██ ██ #
# ██ ██ ██ ██ #
# ████████ ██████████ ██████████ ██ #
# #
# ************************************************************************** #
SOURCES = ft_printf.c ft_putunsigned.c ft_putadress.c ft_putchar.c ft_puthexdecimal.c ft_putnumber.c ft_putstring.c
OBJECTS = $(SOURCES:.c=.o)
NAME = libftprintf.a
FLAGS = -Wall -Wextra -Werror
APPEND = ar -rc
RM = rm -f
CC = cc
all: $(NAME)
%.o: %.c ft_printf.h
$(CC) $(FLAGS) -c $<
$(NAME) : $(OBJECTS)
$(APPEND) $(NAME) $(OBJECTS)
clean:
$(RM) $(OBJECTS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all fclean re clean