-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 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
38
39
40
41
42
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tchow-so <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/13 11:36:31 by tchow-so #+# #+# #
# Updated: 2023/11/17 11:37:32 by tchow-so ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = src/ft_printf.c src/ft_printchar.c src/ft_printstr.c src/ft_printint.c \
src/ft_printptr.c
OBJS = $(SRC:.c=.o)
CC = cc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
AR = ar rcs
INCLUDE = -I .
all: $(NAME)
$(NAME): $(OBJS)
$(AR) $(NAME) $(OBJS)
.o:.c
$(CC) $(CFLAGS) $(INCLUDE) -c $<
clean:
$(RM) $(OBJS) $(BONUS_OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re