Makefile libftx

This commit is contained in:
Camille Chauvet 2023-01-31 15:02:23 +01:00
parent 5a102e93a1
commit f6e9c64b29
3 changed files with 20 additions and 2 deletions

View File

@ -8,18 +8,22 @@ CC = clang
CFLAGS = -Wall -Werror -Wextra CFLAGS = -Wall -Werror -Wextra
LIBS = libftx/libftx.a
%.o: %.c %.o: %.c
${CC} ${CFLAGS} -c -o $@ $< ${CC} ${CFLAGS} -c -o $@ $<
all: ${NAME} all: ${NAME}
${NAME}: ${OBJS} ${NAME}: ${OBJS}
${CC} ${OBJS} -o ${NAME} ${CC} ${OBJS} -o ${NAME} ${LIBS}
clean: clean:
make -C libftx clean
rm -f ${OBJS} rm -f ${OBJS}
fclean: clean fclean: clean
make -C libftx fclean
rm -f ${NAME} rm -f ${NAME}
re: fclean all re: fclean all

10
main.c
View File

@ -1,3 +1,11 @@
#include "minishell.h" #include "minishell.h"
int t_list **ft_parse_cmd(char *line)
{
ft_split()
}
int main(int ac, char **av)
{
}

View File

@ -1,3 +1,7 @@
#ifndef FT_MINISHELL
# define FT_MINISHELL
# include "libftx/libftx.h"
typedef struct s_list typedef struct s_list
{ {
void *content; void *content;
@ -12,3 +16,5 @@ typedef struct cmd
char *cmd; char *cmd;
char *args; char *args;
} cmd; } cmd;
#endif