-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 1.37 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: rklein <rlein@student.hive.fi> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/06/12 10:59:40 by rklein #+# #+# #
# Updated: 2020/06/15 10:12:59 by rklein ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_ls
FLAGS = -Wall -Wextra -Werror
SRC = allign.c bytes.c date.c flags.c ft_ls.c ftree.c ids.c main.c misc.c \
mode.c params.c free.c
OBJ = allign.o bytes.o date.o flags.o ft_ls.o ftree.o ids.o main.o misc.o \
mode.o params.o free.o
INC = ./
LIB = libft/libft.a
all : $(NAME)
$(NAME) :
make -C libft/
gcc $(FLAGS) -c $(SRC)
gcc -o $(NAME) $(FLAGS) $(OBJ) $(LIB) -I $(INC)
clean :
rm -rf $(OBJ)
make clean -C libft/
fclean : clean
rm -rf $(NAME)
make fclean -C libft/
re : fclean all