Fix every malloc error

This commit is contained in:
David Gailleton
2025-11-10 11:27:35 +01:00
parent 37fc319f64
commit cb2edb6a2b
4 changed files with 15 additions and 17 deletions

View File

@@ -70,14 +70,11 @@ $(NAME): $(OBJ)
$(AR) $(ARFLAGS) $(NAME) $(OBJ)
ranlib $(NAME)
$(OBJ_DIR)/%.o: %.c | $(OBJ_DIR)
$(OBJ_DIR)/%.o: %.c
$(CC) -o $@ -c $< $(CFLAGS) -I$(HEADER)
$(OBJ_DIR):
mkdir $@
clean:
rm -f $(OBJ)
rm -f $(OBJ) $(BONUS_OBJ)
fclean: clean
rm -f $(NAME)