-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (37 loc) · 1.54 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kbelov <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/04/30 14:25:08 by kbelov #+# #+# #
# Updated: 2019/10/24 18:47:57 by kbelov ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
FLAG = -Wall -Wextra -Werror
SRC = ft_printf.c format.c parse.c output.c output_d.c output_oxx.c output_f.c
OBJ = *.o
LIBFT = ./libft/*.c
HEADER = ft_printf.h
all: $(NAME)
$(NAME):
gcc -c $(FLAG) $(SRC) $(LIBFT)
ar rcs $(NAME) $(OBJ)
lib:
@make -C libft
clean:
@/bin/rm -rf $(OBJ)
@make -C libft/ clean
fclean: clean
@/bin/rm -rf $(NAME)
@make -C libft/ fclean
re: fclean all
test: lib
gcc $(FLAG) $(SRC) main.c libft/libft.a -o ft_printf_makefile
lldb: lib
gcc -g $(FLAG) $(SRC) main.c libft/libft.a -o ft_printf_lldb
norme:
norminette ft_printf.c format.c parse.c output.c output_d.c \
output_oxx.c output_f.c ft_printf.h Makefile