-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (47 loc) · 1.64 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lbopp <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/01/05 11:09:45 by lbopp #+# #+# #
# Updated: 2017/01/18 13:44:47 by lbopp ### ########.fr #
# #
# **************************************************************************** #
.PHONY: all, clean, fclean, re
NAME = ft_ls
CFLAGS = -Wall -Werror -Wextra -g
LIBFT = libft/
CC = clang
SRC_NAME = btree.c\
btree_long.c\
error.c\
ft_ls.c\
long_format.c\
long_format2.c\
long_format3.c\
ft_lstsort_insert.c\
main.c\
opt_to_bits.c\
print_tree.c\
sort_function.c\
readding.c
SRC_PATH = src
SRC = $(addprefix $(SRC_PATH)/,$(SRC_NAME))
OBJ = $(SRC:.c=.o)
RM = rm -f
.PHONY: all, clean, fclean, re
all: $(NAME)
$(NAME): $(OBJ)
@make -C libft
@$(CC) $(CFLAGS) -o $(NAME) $(OBJ) -I includes -I libft/includes -lft -L libft
%.o: %.c
@$(CC) $(CFLAGS) -c $^ -o $@ -I includes -I libft/includes
clean:
@make -C libft clean
@$(RM) $(OBJ)
fclean: clean
@make -C libft fclean
@$(RM) $(NAME)
re: fclean all