add: map SRCS
This commit is contained in:
parent
b84e391fa7
commit
317a17d4a3
21
Makefile
21
Makefile
@ -1,17 +1,22 @@
|
|||||||
SRCS_GAME = main.c game/game.c game/init.c game/manage.c \
|
SRCS_GAME := main.c game/game.c game/init.c game/manage.c \
|
||||||
game/manage_keys.c game/raycasting.c
|
game/manage_keys.c game/raycasting.c
|
||||||
SRCS_PARSING =
|
SRCS_MAP := parsing.c parsing_header.c parsing_header2.c parsing_meta.c parsing_body.c
|
||||||
OBJS = ${SRCS_GAME:.c=.o} ${SRCS_PARSING:.c=.o}
|
SRCS_MAP := $(addprefix map/, $(SRCS_MAP))
|
||||||
CC = clang
|
|
||||||
LIBS = libftx/libftx.a MLX42/build/libmlx42.a -ldl -lglfw -lm
|
SRCS := ${SRCS_MAP} \
|
||||||
CFLAGS = -g -Wall -Wextra -Werror
|
${SRCS_GAME}
|
||||||
NAME = cub3D
|
|
||||||
|
OBJS := ${SRCS:.c=.o}
|
||||||
|
CC := clang
|
||||||
|
LIBS := libftx/libftx.a MLX42/build/libmlx42.a -ldl -lglfw -lm
|
||||||
|
CFLAGS := -g -Wall -Wextra -Werror
|
||||||
|
NAME := cub3D
|
||||||
|
|
||||||
all: ${NAME}
|
all: ${NAME}
|
||||||
|
|
||||||
${NAME}: ${OBJS}
|
${NAME}: ${OBJS}
|
||||||
make -C libftx all
|
make -C libftx all
|
||||||
${CC} ${CFLAGS} -o ${NAME} ${OBJS} ${LIBS}
|
${CC} -o ${NAME} ${OBJS} ${LIBS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
make -C libftx clean
|
make -C libftx clean
|
||||||
|
Loading…
Reference in New Issue
Block a user