bonus and mandatory separation
This commit is contained in:
15
Makefile
15
Makefile
@ -1,7 +1,11 @@
|
||||
SRCS = asset.c draw.c key.c main.c map.c parsing2.c parsing.c xpm.c
|
||||
SRCS = mandatory/asset.c mandatory/draw.c mandatory/key.c mandatory/main.c mandatory/map.c mandatory/parsing2.c mandatory/parsing.c mandatory/xpm.c
|
||||
|
||||
BSRCS = bonus/asset.c bonus/draw.c bonus/key.c bonus/main.c bonus/map.c bonus/parsing2.c bonus/parsing.c bonus/xpm.c
|
||||
|
||||
OBJS = ${SRCS:.c=.o}
|
||||
|
||||
BOBJS = ${BSRCS:.c=.o}
|
||||
|
||||
NAME = so_long
|
||||
|
||||
LIBS = libftx/libftx.a minilibx-linux/libmlx.a
|
||||
@ -15,13 +19,18 @@ FLAG = -Wall -Wextra -Werror -g
|
||||
|
||||
all: ${NAME}
|
||||
|
||||
bonus: ${BOBJS}
|
||||
make -C libftx
|
||||
make -C minilibx-linux
|
||||
${CC} ${BOBJS} -o ${NAME} ${LIBS} -lXext -lX11
|
||||
|
||||
${NAME}: ${OBJS}
|
||||
make -C libftx
|
||||
make -C minilibx-linux
|
||||
${CC} ${OBJS} -o ${NAME} ${LIBS} -lXext -lX11
|
||||
|
||||
clean:
|
||||
rm -f ${OBJS}
|
||||
rm -f ${OBJS} ${BOBJS}
|
||||
make -C libftx clean
|
||||
make -C minilibx-linux clean
|
||||
|
||||
@ -33,4 +42,4 @@ fclean: clean
|
||||
re: fclean
|
||||
make all
|
||||
|
||||
.PHONY: all clean fclean re
|
||||
.PHONY: all clean fclean re bonus
|
||||
|
Reference in New Issue
Block a user