Restore to a stage where it works and is easier to manage (#5)
Everything in the parser that needs to be normed is in a single .c + .h file (also there is the scanner.c file)
This commit is contained in:
parent
dc2358a320
commit
cc8567f434
61 changed files with 14052 additions and 15081 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/04/28 17:28:30 by maiboyer #+# #+# #
|
||||
# Updated: 2024/04/30 14:19:46 by maiboyer ### ########.fr #
|
||||
# Updated: 2024/05/01 10:34:21 by maiboyer ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
|
|
@ -63,7 +63,8 @@ bonus: $(OBJ) $(LIB_OBJ) $(OBJDIRNAME)/libme.a $(OBJDIRNAME)/libgmr.a
|
|||
@mkdir -p $(OBJDIRNAME)
|
||||
@mkdir -p $(OBJDIRNAME)/$(LIBDIRNAME)
|
||||
@mkdir -p $(OBJDIRNAME)/$(SRCDIRNAME)
|
||||
@printf '$(GREY) Be Carefull ur in $(END)$(GREEN)Debug Mode$(END)\n'
|
||||
@echo -e '$(GREY) Be Carefull ur in $(END)$(GREEN)Debug Mode$(END)'
|
||||
@echo -e '$(GREY) Linking\t$(END)$(GREEN)$(NAME)$(END)'
|
||||
@cc $(CFLAGS) -D DEBUG=42 -o $(NAME) $(OBJ) -L$(OBJDIRNAME) -lgmr -lme
|
||||
|
||||
# Dependences for all
|
||||
|
|
@ -71,13 +72,13 @@ $(NAME): $(OBJ) $(LIB_OBJ) $(OBJDIRNAME)/libgmr.a $(OBJDIRNAME)/libme.a
|
|||
@mkdir -p $(OBJDIRNAME)
|
||||
@mkdir -p $(OBJDIRNAME)/$(LIBDIRNAME)
|
||||
@mkdir -p $(OBJDIRNAME)/$(SRCDIRNAME)
|
||||
@echo "$(GREY) Linking $(END)$(GREEN)$(NAME)$(END)"
|
||||
@echo -e '$(GREY) Linking\t$(END)$(GREEN)$(NAME)$(END)'
|
||||
@cc $(CFLAGS) -o $(NAME) $(OBJ) $(LIB_OBJ) -L$(OBJDIRNAME) -lgmr -lme
|
||||
|
||||
# Creating the objects
|
||||
$(OBJDIRNAME)/%.o: %.c
|
||||
@mkdir -p $(dir $@)
|
||||
@printf '$(GREY) Compiling $(END)$(GREEN)$<$(END)\n'
|
||||
@echo -e '$(GREY) Compiling\t$(END)$(GREEN)$<$(END)'
|
||||
@cc $(CFLAGS) -o $@ -c $<
|
||||
|
||||
-include ${OBJ:.o=.d}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue