aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-01 10:37:15 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-01 10:37:15 +0100
commit7af930f2242f933f79dfbb4ddc84bfd532069556 (patch)
treebc24aae2b8f8f446bdfbe83f56336a7c6d7a98db /Makefile
parent6e191a07bbc57d73152ba886b6f76f694a97e525 (diff)
downloadft_containers-7af930f2242f933f79dfbb4ddc84bfd532069556.tar.gz
ft_containers-7af930f2242f933f79dfbb4ddc84bfd532069556.tar.bz2
ft_containers-7af930f2242f933f79dfbb4ddc84bfd532069556.zip
Basic list methods
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 4837cab..26db30e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,27 @@
-RM = rm -f
+# **************************************************************************** #
+# #
+# ::: :::::::: #
+# Makefile :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2020/02/01 09:48:56 by cacharle #+# #+# #
+# Updated: 2020/02/01 10:11:21 by cacharle ### ########.fr #
+# #
+# **************************************************************************** #
-CC = clang++
-CCFLAGS = -Wall -Wextra #-Werror
+RM = rm -f
-SRC_DIR = src
+INCLUDE_DIR = include
TEST_DIR = test
OBJ_DIR = obj
+CC = clang++
+CCFLAGS = -I$(INCLUDE_DIR) -Wall -Wextra #-Werror
+
+INCLUDE = $(shell find $(INCLUDE_DIR) -type f -name "*.hpp")
TEST_SRC = $(shell find $(TEST_DIR) -type f -name "*.cpp")
OBJ = $(TEST_SRC:$(TEST_DIR)/%.cpp=$(OBJ_DIR)/%.o)
-$(info $(OBJ))
NAME = ft_containers_test
@@ -21,7 +33,7 @@ prebuild:
$(NAME): $(OBJ)
$(CC) -o $@ $^
-$(OBJ_DIR)/%.o: $(TEST_DIR)/%.cpp
+$(OBJ_DIR)/%.o: $(TEST_DIR)/%.cpp $(INCLUDE)
$(CC) $(CCFLAGS) -c -o $@ $<
clean: