2023-06-13 08:19:45 -04:00
|
|
|
SRCS_GAME := main.c game/game.c game/init.c \
|
2023-05-11 10:25:29 -04:00
|
|
|
game/manage_keys.c game/raycasting.c game/dda.c game/draw.c game/utils.c
|
2023-05-17 09:54:04 -04:00
|
|
|
SRCS_MAP := parsing.c parsing_header.c parsing_header2.c parsing_meta.c parsing_body.c map.c parsing_body2.c parsing_header3.c
|
2023-05-03 07:06:39 -04:00
|
|
|
SRCS_MAP := $(addprefix map/, $(SRCS_MAP))
|
|
|
|
|
|
|
|
SRCS := ${SRCS_MAP} \
|
|
|
|
${SRCS_GAME}
|
|
|
|
|
|
|
|
OBJS := ${SRCS:.c=.o}
|
2023-06-01 07:49:12 -04:00
|
|
|
CC := gcc
|
2023-05-03 07:06:39 -04:00
|
|
|
LIBS := libftx/libftx.a MLX42/build/libmlx42.a -ldl -lglfw -lm
|
2023-06-12 08:55:39 -04:00
|
|
|
CFLAGS := -g -Wall -Wextra -Werror -Wno-conversion -Ofast -fsanitize=leak
|
2023-05-03 07:06:39 -04:00
|
|
|
NAME := cub3D
|
2023-04-26 06:31:39 -04:00
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
${NAME}: ${OBJS}
|
2023-04-26 07:02:44 -04:00
|
|
|
make -C libftx all
|
2023-05-03 07:06:39 -04:00
|
|
|
${CC} -o ${NAME} ${OBJS} ${LIBS}
|
2023-04-26 06:31:39 -04:00
|
|
|
|
|
|
|
clean:
|
2023-04-26 07:02:44 -04:00
|
|
|
make -C libftx clean
|
2023-04-26 06:31:39 -04:00
|
|
|
rm -f ${OBJS}
|
|
|
|
|
2023-04-26 07:02:44 -04:00
|
|
|
fclean: clean
|
|
|
|
make -C libftx fclean
|
|
|
|
rm -f ${NAME}
|
2023-04-26 06:31:39 -04:00
|
|
|
|
2023-04-26 07:02:44 -04:00
|
|
|
re: fclean
|
|
|
|
make all
|
2023-04-26 06:31:39 -04:00
|
|
|
|
|
|
|
.PHONY: all clean fclean re coffee bozo
|
|
|
|
|
|
|
|
coffee:
|
|
|
|
@clear
|
|
|
|
@echo ""
|
|
|
|
@echo " ("
|
|
|
|
@echo " ) ("
|
|
|
|
@echo " ___...(-------)-....___"
|
|
|
|
@echo ' .-"" ) ( ""-.'
|
|
|
|
@echo " .-''''|-._ ) _.-|"
|
|
|
|
@echo ' / .--.| `""---...........---""` |'
|
|
|
|
@echo " / / | |"
|
|
|
|
@echo " | | | |"
|
|
|
|
@echo " \ \ | |"
|
|
|
|
@echo " '\ '\ | |"
|
|
|
|
@echo " '\ '| |"
|
|
|
|
@echo " _/ /\ /"
|
|
|
|
@echo " (__/ \ /"
|
|
|
|
@echo ' _..---""` \ /`""---.._'
|
|
|
|
@echo " .-' \ / '-."
|
|
|
|
@echo ": '-.__ __.-' :"
|
|
|
|
@echo ': ) ""---...---"" ( :'
|
|
|
|
@echo "\'._ '"--...___...--"' _.'"
|
|
|
|
@echo ' \""--..__ __..--""/'
|
|
|
|
@echo " '._ """----.....______.....----""" _.'"
|
|
|
|
@echo ' ""--..,,_____ _____,,..--"""'''
|
|
|
|
@echo ' """------"""'
|
|
|
|
@sleep 0.3
|
|
|
|
@clear
|
|
|
|
@echo ""
|
|
|
|
@echo " ("
|
|
|
|
@echo " ) ("
|
|
|
|
@echo " ___..(.------)--....___"
|
|
|
|
@echo ' .-"" ) ( ""-.'
|
|
|
|
@echo " .-''''|-._ ( ) _.-|"
|
|
|
|
@echo ' / .--.| `""---...........---""` |'
|
|
|
|
@echo " / / | |"
|
|
|
|
@echo " | | | |"
|
|
|
|
@echo " \ \ | |"
|
|
|
|
@echo " '\ '\ | |"
|
|
|
|
@echo " '\ '| |"
|
|
|
|
@echo " _/ /\ /"
|
|
|
|
@echo " (__/ \ /"
|
|
|
|
@echo ' _..---""` \ /`""---.._'
|
|
|
|
@echo " .-' \ / '-."
|
|
|
|
@echo ": '-.__ __.-' :"
|
|
|
|
@echo ': ) ""---...---"" ( :'
|
|
|
|
@echo "\'._ '"--...___...--"' _.'"
|
|
|
|
@echo ' \""--..__ __..--""/'
|
|
|
|
@echo " '._ """----.....______.....----""" _.'"
|
|
|
|
@echo ' ""--..,,_____ _____,,..--"""'''
|
|
|
|
@echo ' """------"""'
|
|
|
|
@sleep 0.3
|
|
|
|
@clear
|
|
|
|
@echo ""
|
|
|
|
@echo " ("
|
|
|
|
@echo " ) ("
|
|
|
|
@echo " ___..(.------)--....___"
|
|
|
|
@echo ' .-"" ) ( ""-.'
|
|
|
|
@echo " .-''''|-._ ( ) _.-|"
|
|
|
|
@echo ' / .--.| `""---...........---""` |'
|
|
|
|
@echo " / / | |"
|
|
|
|
@echo " | | | |"
|
|
|
|
@echo " \ \ | |"
|
|
|
|
@echo " '\ '\ | |"
|
|
|
|
@echo " '\ '| |"
|
|
|
|
@echo " _/ /\ /"
|
|
|
|
@echo " (__/ \ /"
|
|
|
|
@echo ' _..---""` \ /`""---.._'
|
|
|
|
@echo " .-' \ / '-."
|
|
|
|
@echo ": '-.__ __.-' :"
|
|
|
|
@echo ': ) ""---...---"" ( :'
|
|
|
|
@echo "\'._ '"--...___...--"' _.'"
|
|
|
|
@echo ' \""--..__ __..--""/'
|
|
|
|
@echo " '._ """----.....______.....----""" _.'"
|
|
|
|
@echo ' ""--..,,_____ _____,,..--"""'''
|
|
|
|
@echo ' """------"""'
|
|
|
|
@sleep 0.3
|
|
|
|
@clear
|
|
|
|
@echo ""
|
|
|
|
@echo " ( ) "
|
|
|
|
@echo " ) ("
|
|
|
|
@echo " ___)...----)----....___"
|
|
|
|
@echo ' .-"" ) ( ""-.'
|
|
|
|
@echo " .-''''|-._ ( ) _.-|"
|
|
|
|
@echo ' / .--.| `""---...........---""` |'
|
|
|
|
@echo " / / | |"
|
|
|
|
@echo " | | | |"
|
|
|
|
@echo " \ \ | |"
|
|
|
|
@echo " '\ '\ | |"
|
|
|
|
@echo " '\ '| |"
|
|
|
|
@echo " _/ /\ /"
|
|
|
|
@echo " (__/ \ /"
|
|
|
|
@echo ' _..---""` \ /`""---.._'
|
|
|
|
@echo " .-' \ / '-."
|
|
|
|
@echo ": '-.__ __.-' :"
|
|
|
|
@echo ': ) ""---...---"" ( :'
|
|
|
|
@echo "\'._ '"--...___...--"' _.'"
|
|
|
|
@echo ' \""--..__ __..--""/'
|
|
|
|
@echo " '._ """----.....______.....----""" _.'"
|
|
|
|
@echo ' ""--..,,_____ _____,,..--"""'''
|
|
|
|
@echo ' """------"""'
|
|
|
|
make coffee
|
|
|
|
|
|
|
|
bozo :
|
|
|
|
@wget -q -O bozo.gif https://i.kym-cdn.com/photos/images/newsfeed/002/322/200/e51.gif
|
|
|
|
@xdg-open bozo.gif
|
|
|
|
@sleep 2.26
|
|
|
|
@pkill eog
|
|
|
|
@rm bozo.gif
|