init structs

This commit is contained in:
hugogogo
2022-01-05 09:00:02 +01:00
parent 23f93e706a
commit 1c44397e61
6 changed files with 74 additions and 68 deletions

View File

@@ -10,7 +10,9 @@ DIR_SRCS = srcs
INCLUDES = -I$(HEADERS_D) -I$(LIBFT_D)
HEADERS_D = ./headers
HEADERS = philo.h
HEADERS = philo.h \
philo_struct.h \
philo_proto.h
LIBS = -L $(LIBFT_D) -lft \
-lpthread
@@ -18,7 +20,8 @@ LIBS = -L $(LIBFT_D) -lft \
LIBFT_D = ./libft
LIBFT = $(LIBFT_D)/libft.a
SRCS = main.c
SRCS = main.c \
init.c
DIR_OBJS = builds
OBJS = $(SRCS:%.c=$(DIR_OBJS)/%.o)