diff --git a/Makefile b/Makefile index fab4bd4..3ac1765 100644 --- a/Makefile +++ b/Makefile @@ -8,18 +8,22 @@ CC = clang CFLAGS = -Wall -Werror -Wextra +LIBS = libftx/libftx.a + %.o: %.c ${CC} ${CFLAGS} -c -o $@ $< all: ${NAME} ${NAME}: ${OBJS} - ${CC} ${OBJS} -o ${NAME} + ${CC} ${OBJS} -o ${NAME} ${LIBS} clean: + make -C libftx clean rm -f ${OBJS} fclean: clean + make -C libftx fclean rm -f ${NAME} re: fclean all diff --git a/main.c b/main.c index a6fc1b1..e080582 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,11 @@ #include "minishell.h" -int +t_list **ft_parse_cmd(char *line) +{ + ft_split() +} + +int main(int ac, char **av) +{ + +} diff --git a/minishell.h b/minishell.h index dbcb823..8aff914 100644 --- a/minishell.h +++ b/minishell.h @@ -1,3 +1,7 @@ +#ifndef FT_MINISHELL +# define FT_MINISHELL +# include "libftx/libftx.h" + typedef struct s_list { void *content; @@ -12,3 +16,5 @@ typedef struct cmd char *cmd; char *args; } cmd; + +#endif