-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (41 loc) · 1.42 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: qdegraev <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/12/07 08:41:32 by qdegraev #+# #+# #
# Updated: 2016/03/11 16:30:08 by qdegraev ### ########.fr #
# #
# **************************************************************************** #
LIBPATH = ft_printf
LIB = $(LIBPATH)/libftprintf.a
NAME = ft_ls
CC = gcc
CFLAGS = -Wall -Wextra -Werror
LDFLAGS = -L ft_printf -lftprintf
SRC = \
./define_type.c \
./ft_ls.c \
./list_tools.c \
./read_n_sort.c \
./tools.c \
./print.c \
./get_argv.c \
./options.c \
mr_proper.c \
OBJ = $(SRC:.c=.o)
all: $(LIB) $(NAME)
$(NAME): $(OBJ)
$(CC) $(LDFLAGS) -o $@ $^
$(LIB):
make -C $(LIBPATH)
clean:
rm -f $(OBJ)
make clean -C $(LIBPATH)
fclean: clean
rm -f $(NAME)
make fclean -C $(LIBPATH)
re: fclean all
.PHONY: all re clean flcean