-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.41 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: hbutt <hbutt@student.s19.be> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/05/24 18:55:41 by hbutt #+# #+# #
# Updated: 2024/06/18 16:07:36 by hbutt ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
SRCS = main.c check_args.c init_stack.c print_stack.c push.c reverse_rotate.c rotate.c \
sort.c swap.c utils_stack.c utils.c printf/ft_printf.c printf/ft_format.c printf/utils.c \
utils_stack_bis.c utils_ab.c do_ab.c sort_big.c utils_ba.c do_ba.c ft_split.c
OBJS = ${SRCS:.c=.o}
CC = gcc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@
${NAME}: ${OBJS}
${CC} -o ${NAME} ${OBJS}
all: ${NAME}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re