Herping the derp

This commit is contained in:
Tom Moron
2024-02-02 22:12:49 +01:00
parent 7524a53cc5
commit 6a7d550a92
2 changed files with 63 additions and 0 deletions

45
Makefile Executable file
View File

@ -0,0 +1,45 @@
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tomoron <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/07/28 00:35:01 by tomoron #+# #+# #
# Updated: 2024/02/02 22:12:25 by tomoron ### ########.fr #
# #
# **************************************************************************** #
CC = cc
SRCS = main.c\
OBJS = $(SRCS:.c=.o)
FLAGS = -Wall -Wextra -Werror -g
LIBFT = libft/libft.a
NAME = minishell
all: $(NAME)
$(NAME) : $(LIBFT) $(OBJS)
$(CC) $(FLAGS) $(OBJS) $(LIBFT) -o $(NAME)
$(LIBFT) :
make --no-print-directory -j -C ./libft
.c.o:
$(CC) $(FLAGS) -c $< -o $@
clean:
rm -f $(OBJS_PS) $(OBJS_CHECKER)
make --no-print-directory -C ./libft fclean
fclean: clean
rm -f push_swap checker
re: fclean all
.PHONY: all clean fclean re