42_push_swap/Makefile

40 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

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-11 13:16:18 -05:00
# Updated: 2022/12/11 19:15:24 by cchauvet ### ########.fr #
2022-11-29 08:06:22 -05:00
# #
# **************************************************************************** #
2022-12-11 09:49:45 -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_bozo_sort.c ft_get_max.c ft_rr.c ft_s.c ft_split.c ft_strlen.c
2022-11-29 08:06:22 -05:00
OBJS = ${SRCS:.c=.o}
NAME = push_swap
CC = clang
2022-12-11 13:16:18 -05:00
CFLAGS = -Wall -Werror -Wextra
2022-11-29 08:06:22 -05:00
%.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