aboutsummaryrefslogtreecommitdiff
path: root/philo_two
diff options
context:
space:
mode:
Diffstat (limited to 'philo_two')
-rw-r--r--philo_two/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/philo_two/Makefile b/philo_two/Makefile
index 88c0f8b..ccb7ae6 100644
--- a/philo_two/Makefile
+++ b/philo_two/Makefile
@@ -6,17 +6,18 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/24 05:50:15 by cacharle #+# #+# #
-# Updated: 2021/01/02 11:27:33 by cacharle ### ########.fr #
+# Updated: 2021/01/08 14:31:50 by charles ### ########.fr #
# #
# **************************************************************************** #
RM = rm -f
+MKDIR = mkdir -p
MAKE = make --no-print-directory
COMMONDIR = ../common
CC = gcc
-CCFLAGS = -g -I$(COMMONDIR) -O2 -std=c99 -Wall -Wextra #-Werror
+CCFLAGS = -std=c99 -Wall -Wextra -Werror -O2 -I$(COMMONDIR)/inc
LDFLAGS = -lpthread -L$(COMMONDIR) -lphilocommon
NAME = philo_two
@@ -30,7 +31,7 @@ OBJ = $(SRC:$(SRCDIR)/%.c=$(OBJDIR)/%.o)
all: prebuild $(NAME)
prebuild:
- @mkdir -p $(OBJDIR)
+ $(MKDIR) $(OBJDIR)
$(NAME): common_all $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)