-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 1.38 KB
/
Copy pathMakefile
File metadata and controls
43 lines (35 loc) · 1.38 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
43
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jbartosi <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/17 12:24:34 by jbartosi #+# #+# #
# Updated: 2023/01/29 16:16:37 by jbartosi ### ########.fr #
# #
# **************************************************************************** #
SRC = ft_print_nbr.c ft_print_alpha.c ft_print_hex.c ft_printf.c ft_format.c
INC = ft_printf.h
OBJ = $(SRC:.c=.o)
NAME = libftprintf.a
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
LIBC = ar rc
LIBFT = ./libft/libft.a
.c.o:
cc ${CFLAGS} -c $< -o ${<:.c=.o} -I ${INC}
${NAME}: ${OBJ}
make -C ./libft
cp ./libft/libft.a ${NAME}
${LIBC} ${NAME} ${OBJ}
all: ${NAME}
bonus: all
clean:
${MAKE} clean -C ./libft
${RM} ${OBJ}
${RM} ${OBJ_BONUS}
fclean: clean
${MAKE} fclean -C ./libft
${RM} ${NAME}
re: fclean all