-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.29 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rlechapt <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/02/02 16:45:04 by rlechapt #+# #+# #
# Updated: 2015/03/11 06:08:45 by rlechapt ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
SRC = \
main.c \
ft_atoi.c \
ft_itoa.c \
ft_putchar.c \
ft_putnbr.c \
ft_strequ.c \
ft_memalloc.c \
ft_putstr.c \
check_param.c \
swap.c \
push.c \
rotate.c \
reverse_rotate.c \
sort_algo.c \
error.c \
tricks.c
OBJ = $(SRC:.c=.o)
FLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME):
cc $(FLAGS) -c $(SRC)
cc $(FLAGS) -o $(NAME) $(OBJ)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all