2023-05-03 07:06:39 -04:00
|
|
|
SRCS_GAME := main.c game/game.c game/init.c game/manage.c \
|
2023-05-03 11:48:36 -04:00
|
|
|
game/manage_keys.c game/raycasting.c game/dda.c
|
2023-05-05 10:49:04 -04:00
|
|
|
SRCS_MAP := parsing.c parsing_header.c parsing_header2.c parsing_meta.c parsing_body.c map.c
|
2023-05-03 07:06:39 -04:00
|
|
|
SRCS_MAP := $(addprefix map/, $(SRCS_MAP))
|
|
|
|
|
|
|
|
SRCS := ${SRCS_MAP} \
|
|
|
|
${SRCS_GAME}
|
|
|
|
|
|
|
|
OBJS := ${SRCS:.c=.o}
|
|
|
|
CC := clang
|
|
|
|
LIBS := libftx/libftx.a MLX42/build/libmlx42.a -ldl -lglfw -lm
|
2023-05-09 08:46:49 -04:00
|
|
|
CFLAGS := -g -Wall -Wextra -Werror -Wno-conversion #-Ofast
|
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
|