-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·60 lines (49 loc) · 1.59 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
53
54
55
56
57
58
59
60
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: stherman <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2013/11/20 14:58:54 by stherman #+# #+# #
# Updated: 2014/11/11 18:07:04 by ngouy ### ########.fr #
# #
#******************************************************************************#
CC = gcc
NAME = libftprintf.a
SRC = \
ft_wcharlen.c\
ft_apply_opt.c\
ft_apply_opt_aux.c\
ft_convert_int.c\
ft_found_opt_len.c\
ft_found_opt_len_aux1.c\
ft_convert_long_int.c\
ft_convert_unsigned_long_int.c\
ft_ptr.c\
ft_wart.c\
ft_printf.c\
ft_printf_aux1.c\
ft_printf_aux2.c\
ft_printf_aux3.c\
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Werror -Wextra -ansi -pedantic
OFLAGS = -O3
MAKE = make -C ./libft/
RM = rm -rf
all: $(NAME)
$(NAME):
$(MAKE)
gcc -I Include/ -c $(SRC)
ar rc temp.a $(OBJ)
libtool -static -o $(NAME) libft/libft.a temp.a
clean:
$(RM) $(OBJ)
$(MAKE) clean
spec :
gcc -I Include/ libft/libft.a $(SRC)
fclean: clean
$(RM) $(NAME) temp.a
$(MAKE) fclean
re: fclean all
norminette :
norminette $(SRC) ./Include/header.h ./Include/libft.h
.PHONY: all clean re fclean