Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blinking executable ready message #139

Open
552020 opened this issue Feb 8, 2024 · 4 comments
Open

blinking executable ready message #139

552020 opened this issue Feb 8, 2024 · 4 comments
Assignees

Comments

@552020
Copy link
Collaborator

552020 commented Feb 8, 2024

Screen.Recording.2024-02-08.at.22.50.18.mov

NAME	:= cub3D
CC		:= cc
CFLAGS	:= -Wextra -Wall -Werror 
LIBMLX	:= ./lib/MLX42
LIBFT	:= ./lib/libft
LIBFT_A	:= lib/libft/libft.a

HEADERS	:= -I ./include -I $(LIBMLX)/include -I $(LIBFT)
LIBS	:= $(LIBMLX)/build/libmlx42.a $(LIBFT)/libft.a -ldl -lglfw -pthread -lm
SRCS	:= $(shell find ./src -iname "*.c")
OBJDIR	:= .objFiles
OBJS	:= $(addprefix $(OBJDIR)/, $(SRCS:.c=.o))

#Colors:
GREEN		= \e[92;5;118m
YELLOW		= \e[93;5;226m
GRAY		= \e[33;2;37m
RESET		= \e[0m
CURSIVE		= \e[33;3m

#Debug 
ifeq ($(DEBUG), 1)
   OPTS = -g
endif

all: $(NAME)

libmlx:
	@cmake $(LIBMLX) -B $(LIBMLX)/build && make -C $(LIBMLX)/build -j4; \

$(LIBFT_A):
	@cd lib/libft && make

$(OBJDIR)/%.o: %.c
	@mkdir -p $(dir $@)
	@$(CC) $(CFLAGS) -o $@ -c $< $(HEADERS)

$(NAME): $(LIBFT_A) $(OBJS)
	@$(CC) $(OBJS) $(LIBS) $(HEADERS) -o $(NAME) -g
	@printf "$(_SUCCESS) $(GREEN)- Executable ready.\n$(RESET)"

clean:
	@rm -rf $(OBJDIR) $(OBJS)
	@printf "$(YELLOW)    - Object files removed.$(RESET)\n"

clean_mlx:
	@rm -rf $(LIBMLX)/build

fclean_libft:
	@cd lib/libft && make fclean

fclean: fclean_libft clean
	@rm -rf $(NAME)
	@printf "$(YELLOW)    - Executable removed.$(RESET)\n"

re: fclean all

@lmangall
Copy link
Owner

lmangall commented Feb 9, 2024

Fancy

@lmangall
Copy link
Owner

This doesn't work in main, so I guess you didn't pushed it ?

@552020 552020 added the backlog Potential To do label Feb 17, 2024
@552020
Copy link
Collaborator Author

552020 commented Feb 17, 2024

This is a 'backlog' issue, there is nothing besides the issue itself ...

@lmangall
Copy link
Owner

Ah ok, because of the video showing the terminal in cub3d I thought you implemented it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants