diff options
Diffstat (limited to 'philo_one/Makefile')
| -rw-r--r-- | philo_one/Makefile | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/philo_one/Makefile b/philo_one/Makefile index 1bab8d6..8b1213b 100644 --- a/philo_one/Makefile +++ b/philo_one/Makefile @@ -6,46 +6,40 @@ # By: cacharle <marvin@42.fr> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2019/11/24 05:50:15 by cacharle #+# #+# # -# Updated: 2020/02/14 22:48:10 by cacharle ### ########.fr # +# Updated: 2020/04/22 13:02:38 by charles ### ########.fr # # # # **************************************************************************** # RM = rm -f -COMMON_DIR = ../common - CC = gcc -CCFLAGS = -I$(COMMON_DIR) -Wall -Wextra #-Werror -LDFLAGS = -lpthread -L$(COMMON_DIR) -lphilocommon +CCFLAGS = -Wall -Wextra -Werror +LDFLAGS = -lpthread NAME = philo_one SRC = main.c \ philo.c \ - fork.c \ + forks.c \ routine.c \ - io.c + io.c \ + common.c \ + helper.c OBJ = $(SRC:.c=.o) all: $(NAME) -$(NAME): common_all $(OBJ) +$(NAME): $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) %.o: %.c $(CC) $(CCFLAGS) -c -o $@ $< -clean: common_fclean +clean: $(RM) $(OBJ) fclean: clean $(RM) $(NAME) re: fclean all - -common_all: - make -C $(COMMON_DIR) all - -common_fclean: - make -C $(COMMON_DIR) fclean |
