42_solong/Makefile
Camille Chauvet d7256c47a5 kekw
2023-01-06 19:37:36 +01:00

36 lines
546 B
Makefile

SRCS = asset.c draw.c main.c map.c parsing.c shape.c xpm.c
OBJ = ${SRCS:.c=.o}
NAME = so_long
LIBS = libftx/libftx.a minilibx-linux/libmlx.a
CC = clang
FLAG = -Wall -Wextra -Werror -g
%.o: %.c
${CC} ${FLAG} -c $< -o $@
all: ${NAME}
${NAME}: ${OBJ}
make -C libftx
make -C minilibx-linux
${CC} ${OBJ} -o ${NAME} ${LIBS} -lXext -lX11
clean:
rm -f OBJ
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