aboutsummaryrefslogtreecommitdiff
path: root/philo_two
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-24 07:08:16 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-24 07:08:16 +0100
commit34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b (patch)
tree8597658d41e252bc22cd9abb9d596c929b0a1a68 /philo_two
downloadphilosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.tar.gz
philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.tar.bz2
philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.zip
Initial commit
Diffstat (limited to 'philo_two')
-rw-r--r--philo_two/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/philo_two/Makefile b/philo_two/Makefile
new file mode 100644
index 0000000..8845406
--- /dev/null
+++ b/philo_two/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:05 by cacharle ### ########.fr #
+# #
+# **************************************************************************** #
+
+RM = rm -f
+
+CC = gcc
+CCFLAGS = -Wall -Wextra #-Werror
+LDFLAGS = -lpthread
+
+NAME = philo_two
+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