makefile ok and client receive sigusr

This commit is contained in:
hugogogo
2021-08-28 12:30:24 +02:00
parent 620a820bd3
commit 737ce47555
8 changed files with 151 additions and 11 deletions

View File

@@ -15,7 +15,8 @@ ODIR = ./builds
S_OBJS = $(S_SRCS:%.c=$(ODIR)/%.o)
C_OBJS = $(C_SRCS:%.c=$(ODIR)/%.o)
DEPS = ./includes/minitalk.h
DEPS = ./includes/minitalk.h \
./libft/includes/libft.h
IDIR = $(dir $(DEPS))
# $(dir PATH/TO/FILE) expands to "PATH/TO/" -> the directory of a file
@@ -25,7 +26,7 @@ LIBS = $(_LIBS:lib%.a=%)
CFLAGS = $(IDIR:%=-I%)
CFLAGS += -g3 -Wall -Wextra -Werror
LFLAGS = -L$(LDIR) -l$(LIBS)
LFLAGS = -L./libft -lft
# - - - - - - - - - - - - - - # target: prerequisites | $@ : target
@@ -35,6 +36,7 @@ LFLAGS = -L$(LDIR) -l$(LIBS)
all: libft $(SERVER) $(CLIENT)
libft:
@echo "hello"
make -C $(LDIR)
$(SERVER): $(S_OBJS) $(DEPS)