42_solong/Makefile
Camille Chauvet 1088942133 kekw
2023-01-13 15:10:27 +01:00

37 lines
568 B
Makefile

SRCS = asset.c draw.c key.c main.c map.c parsing2.c parsing.c xpm.c
OBJS = ${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}: ${OBJS}
make -C libftx
make -C minilibx-linux
${CC} ${OBJS} -o ${NAME} ${LIBS} -lXext -lX11
clean:
rm -f ${OBJS}
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
make all
.PHONY: all clean fclean re