aboutsummaryrefslogtreecommitdiff
path: root/philo_two/Makefile
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-24 13:06:05 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-24 13:06:05 +0200
commit2baa67fd7ad31fe53ab21d257a104478e787fb62 (patch)
treeac38bdf7aecd7056e1b7dfdd51f5403547966380 /philo_two/Makefile
parent47e1a7b4af69e1998182126310e42af83cf214ed (diff)
downloadphilosophers-2baa67fd7ad31fe53ab21d257a104478e787fb62.tar.gz
philosophers-2baa67fd7ad31fe53ab21d257a104478e787fb62.tar.bz2
philosophers-2baa67fd7ad31fe53ab21d257a104478e787fb62.zip
Replacing mutex stdout by semaphore in philo two, Compilation on Linux
Diffstat (limited to 'philo_two/Makefile')
-rw-r--r--philo_two/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/philo_two/Makefile b/philo_two/Makefile
index 33ae4ea..3135bb4 100644
--- a/philo_two/Makefile
+++ b/philo_two/Makefile
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/24 05:50:15 by cacharle #+# #+# #
-# Updated: 2020/10/05 16:21:27 by cacharle ### ########.fr #
+# Updated: 2020/10/24 13:02:05 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -16,7 +16,7 @@ MAKE = make --no-print-directory
COMMONDIR = ../common
CC = gcc
-CCFLAGS = -g -Wall -Wextra -I$(COMMONDIR) #-Werror
+CCFLAGS = -g -Wall -Wextra -I$(COMMONDIR) -Werror
LDFLAGS = -lpthread -L$(COMMONDIR) -lphilocommon
NAME = philo_two
@@ -33,7 +33,7 @@ prebuild:
@mkdir -p $(OBJDIR)
$(NAME): common_all $(OBJ)
- $(CC) $(LDFLAGS) -o $@ $(OBJ)
+ $(CC) -o $@ $(OBJ) $(LDFLAGS)
$(OBJDIR)/%.o: $(SRCDIR)/%.c
$(CC) $(CCFLAGS) -c -o $@ $<