「🔨」 fix: It work on my machine also now 🎉
This commit is contained in:
8
Makefile
8
Makefile
@ -1,6 +1,6 @@
|
||||
NAME = cub3D
|
||||
|
||||
CC = cc
|
||||
CC = gcc
|
||||
|
||||
OBJSDIR = obj/
|
||||
|
||||
@ -12,9 +12,7 @@ LIBFT_DIR = libft/
|
||||
|
||||
INCLUDE = -I $(I_DIR) -I $(LIBFT_DIR)/$(I_DIR)
|
||||
|
||||
SRCS = src/main.c \
|
||||
src/parsing/check_arg.c \
|
||||
src/utils/mess_error.c
|
||||
SRCS = $(shell find src -name '*.c')
|
||||
|
||||
OBJS = $(addprefix $(OBJSDIR), $(SRCS:.c=.o))
|
||||
|
||||
@ -22,7 +20,7 @@ FLAGS = -Wall -Werror -Wextra
|
||||
LIB = libft/libft.a
|
||||
|
||||
$(NAME): $(OBJS)
|
||||
@make -s -C libft
|
||||
@make -sj $(nproc) -C libft
|
||||
@$(CC) $(FLAGS) $(OBJS) $(LIB) -o $(NAME)
|
||||
@echo "✅ Compiled"
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.c :+: :+: :+: */
|
||||
/* cub3d.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/04 16:58:27 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/07 19:12:04 by madumerg ### ########.fr */
|
||||
/* Updated: 2024/09/11 11:10:39 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../include/cub3d.h"
|
||||
#include "cub3d.h"
|
||||
|
||||
char **ft_parse_map(char *map)
|
||||
{
|
@ -6,11 +6,11 @@
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/04 21:33:35 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/07 17:57:29 by madumerg ### ########.fr */
|
||||
/* Updated: 2024/09/11 11:11:05 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../include/cub3d.h"
|
||||
#include "cub3d.h"
|
||||
|
||||
int check_err_arg(int ac, char **av)
|
||||
{
|
||||
|
@ -6,11 +6,11 @@
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/07 17:35:14 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/07 17:40:57 by madumerg ### ########.fr */
|
||||
/* Updated: 2024/09/11 11:10:48 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../include/cub3d.h"
|
||||
#include "cub3d.h"
|
||||
|
||||
int err_mess(char *str)
|
||||
{
|
||||
|
Reference in New Issue
Block a user