2022-11-29 08:06:22 -05:00
|
|
|
# **************************************************************************** #
|
|
|
|
# #
|
|
|
|
# ::: :::::::: #
|
|
|
|
# Makefile :+: :+: :+: #
|
|
|
|
# +:+ +:+ +:+ #
|
|
|
|
# By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ #
|
|
|
|
# +#+#+#+#+#+ +#+ #
|
|
|
|
# Created: 2022/11/28 16:34:37 by cchauvet #+# #+# #
|
2022-12-01 11:15:17 -05:00
|
|
|
# Updated: 2022/12/01 16:54:34 by cchauvet ### ########.fr #
|
2022-11-29 08:06:22 -05:00
|
|
|
# #
|
|
|
|
# **************************************************************************** #
|
|
|
|
|
2022-12-01 11:15:17 -05:00
|
|
|
SRCS = ft_swap.c ft_putstr.c ft_p.c ft_sort.c ft_tablen.c main.c ft_atoi.c ft_radix.c ft_isnum.c ft_r.c ft_is_sorted.c ft_get_max.c
|
2022-11-29 08:06:22 -05:00
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
NAME = push_swap
|
|
|
|
|
|
|
|
CC = clang
|
|
|
|
|
|
|
|
CFLAGS = -Wall -Werror -Wextra -g
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
${CC} ${CFLAGS} -c -o $@ $<
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
${NAME}: ${OBJS}
|
|
|
|
${CC} ${OBJS} -o ${NAME}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS}
|
|
|
|
|
|
|
|
fclean: clean
|
|
|
|
rm -f ${NAME}
|
|
|
|
|
|
|
|
re: fclean all
|
|
|
|
|
|
|
|
.PHONY: all clean fclean re
|