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
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

10
main.c
View File

@ -1,3 +1,11 @@
#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
{
void *content;
@ -12,3 +16,5 @@ typedef struct cmd
char *cmd;
char *args;
} cmd;
#endif