Herping the derp
This commit is contained in:
45
Makefile
Executable file
45
Makefile
Executable 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
|
18
main.c
Normal file
18
main.c
Normal file
@ -0,0 +1,18 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/02 21:59:20 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/02 22:12:38 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("un super minishell\n");
|
||||
}
|
Reference in New Issue
Block a user