-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dbaldy <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/12/10 21:59:46 by dbaldy #+# #+# #
# Updated: 2016/01/07 12:28:51 by dbaldy ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_ls
SRC = aux.c list.c main.c lc.c ft_print_list.c analyse.c ft_print_long.c\
multiple_args.c multiple_args2.c print_long_aux.c device.c bonus.c\
bonus2.c
BIN = $(SRC:.c=.o)
FLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME):
@echo "proceeding"
@gcc $(FLAGS) -c $(SRC)
@make -C libft/ fclean
@make -C libft/
@make -C libft/ clean
@gcc -o $(NAME) $(BIN) -L libft/ -lft
@echo "ft_ls done"
clean:
@/bin/rm -rf $(BIN)
@echo "clean done"
fclean: clean
@/bin/rm -rf $(NAME)
@echo "fclean done"
re: fclean all