2023-01-08 12:03:40 -05:00
|
|
|
SRCS = asset.c color.c draw.c ft_freer.c main.c map.c parsing.c xpm.c
|
2022-12-22 11:41:31 -05:00
|
|
|
|
2023-01-08 12:03:40 -05:00
|
|
|
OBJS = ${SRCS:.c=.o}
|
2022-12-22 11:41:31 -05:00
|
|
|
|
|
|
|
NAME = so_long
|
|
|
|
|
|
|
|
LIBS = libftx/libftx.a minilibx-linux/libmlx.a
|
|
|
|
|
2023-01-04 14:07:13 -05:00
|
|
|
CC = clang
|
2022-12-22 11:41:31 -05:00
|
|
|
|
|
|
|
FLAG = -Wall -Wextra -Werror -g
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
${CC} ${FLAG} -c $< -o $@
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
2023-01-08 12:03:40 -05:00
|
|
|
${NAME}: ${OBJS}
|
2022-12-22 11:41:31 -05:00
|
|
|
make -C libftx
|
|
|
|
make -C minilibx-linux
|
2023-01-08 12:03:40 -05:00
|
|
|
${CC} ${OBJS} -o ${NAME} ${LIBS} -lXext -lX11
|
2022-12-22 11:41:31 -05:00
|
|
|
|
|
|
|
clean:
|
2023-01-08 12:03:40 -05:00
|
|
|
rm -f ${OBJS}
|
2022-12-22 11:41:31 -05:00
|
|
|
make -C libftx clean
|
|
|
|
make -C minilibx-linux clean
|
|
|
|
|
|
|
|
fclean: clean
|
|
|
|
rm -f ${NAME}
|
|
|
|
make -C libftx fclean
|
|
|
|
make -C minilibx-linux clean
|
|
|
|
|
|
|
|
re: fclean all
|
|
|
|
|
|
|
|
.PHONY: all clean fclean re
|