makefile ok and client receive sigusr
This commit is contained in:
6
Makefile
6
Makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user