norm ok fonctionnement ok leaks ok

This commit is contained in:
hugogogo
2021-09-03 16:45:46 +02:00
parent 5ab8015b2e
commit 2d00b06f1c
10 changed files with 33 additions and 45 deletions

View File

@@ -28,16 +28,14 @@ C_DEPS = ./includes/client.h
# rules to execute # recipe | $< : 1st prerequisite
# - - - - - - - - - - - - - - # recipe | $^ : all prerequisites
all: libft $(S_NAME) $(C_NAME)
libft:
@echo "hello"
make -C $(LDIR)
all: $(S_NAME) $(C_NAME)
$(S_NAME): $(S_OBJS) $(S_DEPS)
make -C $(LDIR)
$(CC) $(CFLAGS) -o $@ $< $(LFLAGS)
$(C_NAME): $(C_OBJS) $(C_DEPS)
make -C $(LDIR)
$(CC) $(CFLAGS) -o $@ $< $(LFLAGS)
$(ODIR)/%.o: %.c | $(ODIR)
@@ -55,6 +53,7 @@ clean:
/bin/rm -f $(S_OBJS) $(C_OBJS)
fclean: clean
make fclean -C $(LDIR)
/bin/rm -rf $(ODIR)
/bin/rm -f $(S_NAME) $(C_NAME)
/bin/rm -rf a.out a.out.dSYM