-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 1.18 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mcherki <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/12/12 16:05:51 by mcherki #+# #+# #
# Updated: 2022/03/24 14:01:03 by mcherki ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Wall -Wextra -Werror
AR = ar rcs
NAME = libftprintf.a
SRC = printf.c\
hex.c\
nbr_str.c
OBJ = $(SRC:.c=.o)
%.o:%.c
@$(CC) $(CFLAGS) -c $<
all: $(NAME)
$(NAME): $(OBJ)
@$(AR) $(NAME) $?
clean:
@rm -rf ${OBJ}
fclean: clean
@rm -f $(NAME)
re: fclean all
.PHONY : re clean fclean all