Makefile libftx
This commit is contained in:
parent
5a102e93a1
commit
f6e9c64b29
6
Makefile
6
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
|
||||
|
10
main.c
10
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user