diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-24 07:08:16 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-24 07:08:16 +0100 |
| commit | 34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b (patch) | |
| tree | 8597658d41e252bc22cd9abb9d596c929b0a1a68 /philo_one/Makefile | |
| download | philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.tar.gz philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.tar.bz2 philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.zip | |
Initial commit
Diffstat (limited to 'philo_one/Makefile')
| -rw-r--r-- | philo_one/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/philo_one/Makefile b/philo_one/Makefile new file mode 100644 index 0000000..0c9125c --- /dev/null +++ b/philo_one/Makefile @@ -0,0 +1,38 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2019/11/24 05:50:15 by cacharle #+# #+# # +# Updated: 2019/11/24 07:07:35 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +RM = rm -f + +CC = gcc +CCFLAGS = -Wall -Wextra #-Werror +LDFLAGS = -lpthread + +NAME = philo_one +SRC = main.c +OBJ = $(SRC:.c=.o) + + +all: $(NAME) + +$(NAME): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $(OBJ) + +%.o: %.c + $(CC) $(CCFLAGS) -c -o $@ $^ + +clean: + $(RM) $(OBJ) + +fclean: clean + $(RM) $(NAME) + +re: fclean all |
