aboutsummaryrefslogtreecommitdiff
path: root/philo_one/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'philo_one/Makefile')
-rw-r--r--philo_one/Makefile38
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