-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 1.21 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: juwong <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/06/20 11:00:07 by juwong #+# #+# #
# Updated: 2018/09/06 12:56:26 by juwong ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = sources/*.c
HEADER = includes/*.h
LIBFT = -L./libft -lft
LIB = libft
all: $(NAME)
$(NAME):
@gcc -g -c $(SRC) -I$(HEADER)
@make -C $(LIB)
@cp libft/libft.a $(NAME)
@ar rc $(NAME) *.o
@ranlib $(NAME)
clean:
@rm -f *.o
@make clean -C $(LIB)
fclean: clean
@rm -f $(NAME)
@make fclean -C $(LIB)
re: fclean all