aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-12 19:10:14 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-12 19:10:14 +0200
commit966eb29634a84496e0851ef2b5a7d64f413d33ed (patch)
tree40853771e98ef6c51ad82e2f8e740e88654c69e1 /Makefile
parentb9f000a80cbba38b8f21c9737a42f07573ec7b91 (diff)
downloadlibft-966eb29634a84496e0851ef2b5a7d64f413d33ed.tar.gz
libft-966eb29634a84496e0851ef2b5a7d64f413d33ed.tar.bz2
libft-966eb29634a84496e0851ef2b5a7d64f413d33ed.zip
Added ft_veciter_ret
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 14b556d..7ab6fe8 100644
--- a/Makefile
+++ b/Makefile
@@ -6,17 +6,17 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/08 15:45:53 by cacharle #+# #+# #
-# Updated: 2020/05/09 12:28:11 by charles ### ########.fr #
+# Updated: 2020/05/12 18:00:00 by charles ### ########.fr #
# #
# **************************************************************************** #
LIB = ar rcs
RM = rm -f
NORM = norminette
-MAKE = make
-MAKE_ARGS = --no-print-directory
+MAKE = make --no-print-directory
DOXYGEN = doxygen
DOXYGEN_FILE = Doxyfile
+JOBS = 4
SRC_DIR = src
INCLUDE_DIR = include
@@ -48,14 +48,15 @@ OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
INCLUDE = $(shell find $(INCLUDE_DIR) -name "*.h")
-# export LIBFT_SRC = $(SRC)
+all: prebuild
+ @$(MAKE) -j$(JOBS) allnopre
-all: prebuild $(NAME)
+allnopre: $(NAME)
.PHONY: test
test: all
@echo "Testing"
- @$(MAKE) $(MAKE_ARGS) -C $(TEST_DIR) run
+ @$(MAKE) -C $(TEST_DIR) run
norm:
@if [ `command -v $(NORM)` ]; \
@@ -75,7 +76,7 @@ $(NAME): $(OBJ) $(INCLUDE)
@echo "Linking: $@"
@$(LIB) $@ $(OBJ)
-$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
+$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(INCLUDE)
@echo "Compiling: $@"
@$(CC) $(CCFLAGS) -c -o $@ $<
@@ -84,7 +85,7 @@ clean:
@$(RM) -r $(OBJ_DIR)
fclean: clean
- @echo "Removing library"
+ @echo "Removing $(NAME)"
@$(RM) $(NAME)
re: fclean all