-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·50 lines (39 loc) · 1.4 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aimelda <aimelda@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/09/06 21:18:08 by aimelda #+# #+# #
# Updated: 2020/08/23 19:19:17 by aimelda ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
HDR = ft_printf.h
LIB = libft/libft.a
SRC = ft_printf.c \
parsing.c \
arg_malloc.c \
get_args.c \
printing.c \
dioux.c \
csp.c \
feg.c \
arithmetic.c \
OBJ = $(addsuffix .o, $(basename $(SRC)))
NEW_OBJ = $(addsuffix .o, $(basename $?))
all: $(NAME)
$(NAME): $(SRC)
make -C libft/
gcc -g -I$(HDR) -c $?
ar rc $@ $(NEW_OBJ) libft/*.o
ranlib $@
clean:
rm -rf $(OBJ)
make clean -C libft/
fclean:
rm -rf $(NAME)
rm -rf $(OBJ)
make fclean -C libft/
re: fclean all