diff options
Diffstat (limited to 'philo_one/Makefile')
| -rw-r--r-- | philo_one/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/philo_one/Makefile b/philo_one/Makefile index 4ec2e75..391fa4f 100644 --- a/philo_one/Makefile +++ b/philo_one/Makefile @@ -6,7 +6,7 @@ # By: cacharle <marvin@42.fr> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2019/11/24 05:50:15 by cacharle #+# #+# # -# Updated: 2020/09/30 09:35:22 by cacharle ### ########.fr # +# Updated: 2020/09/30 10:20:59 by cacharle ### ########.fr # # # # **************************************************************************** # @@ -27,12 +27,12 @@ OBJDIR = obj SRC = $(shell find $(SRCDIR) -type f -name '*.c') OBJ = $(SRC:$(SRCDIR)/%.c=$(OBJDIR)/%.o) -all: prebuild common_all $(NAME) +all: prebuild $(NAME) prebuild: @mkdir -pv $(OBJDIR) -$(NAME): $(OBJ) +$(NAME): common_all $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) $(OBJDIR)/%.o: $(SRCDIR)/%.c |
