aboutsummaryrefslogtreecommitdiff
path: root/philo_one/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-22 13:43:00 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-22 13:43:00 +0200
commit3c2c3a07396c001f51eac8d0fd0fc84e83eb127b (patch)
tree7c646f128d97784fba9fd76cf8bb758a9b965c76 /philo_one/Makefile
parent2c5abe421b7a1b92081e38f6b1f04d407fcba834 (diff)
downloadphilosophers-3c2c3a07396c001f51eac8d0fd0fc84e83eb127b.tar.gz
philosophers-3c2c3a07396c001f51eac8d0fd0fc84e83eb127b.tar.bz2
philosophers-3c2c3a07396c001f51eac8d0fd0fc84e83eb127b.zip
philo_one refactoring without common lib
Diffstat (limited to 'philo_one/Makefile')
-rw-r--r--philo_one/Makefile24
1 files changed, 9 insertions, 15 deletions
diff --git a/philo_one/Makefile b/philo_one/Makefile
index 1bab8d6..8b1213b 100644
--- a/philo_one/Makefile
+++ b/philo_one/Makefile
@@ -6,46 +6,40 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/24 05:50:15 by cacharle #+# #+# #
-# Updated: 2020/02/14 22:48:10 by cacharle ### ########.fr #
+# Updated: 2020/04/22 13:02:38 by charles ### ########.fr #
# #
# **************************************************************************** #
RM = rm -f
-COMMON_DIR = ../common
-
CC = gcc
-CCFLAGS = -I$(COMMON_DIR) -Wall -Wextra #-Werror
-LDFLAGS = -lpthread -L$(COMMON_DIR) -lphilocommon
+CCFLAGS = -Wall -Wextra -Werror
+LDFLAGS = -lpthread
NAME = philo_one
SRC = main.c \
philo.c \
- fork.c \
+ forks.c \
routine.c \
- io.c
+ io.c \
+ common.c \
+ helper.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
-$(NAME): common_all $(OBJ)
+$(NAME): $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
%.o: %.c
$(CC) $(CCFLAGS) -c -o $@ $<
-clean: common_fclean
+clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
-
-common_all:
- make -C $(COMMON_DIR) all
-
-common_fclean:
- make -C $(COMMON_DIR) fclean