-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 1.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: sverschu </var/mail/sverschu> +#+ #
# +#+ #
# Created: 2019/10/30 16:10:10 by sverschu #+# #+# #
# Updated: 2020/11/28 16:52:52 by sverschu ######## odam.nl #
# #
# **************************************************************************** #
# C sourcefiles
SRC = criterion_libft.c $(LIBFT_FOLDER)/libft.a
# compiler and linker
CC = clang
CC_FLAGS = -Werror -Wextra -Wall -lcriterion
# commands
all: libft $(NAME)
$(NAME): $(SRC)
@$(CC) $(CC_FLAGS) $(EXT_FLAGS) -I$(LIBFT_INC) -I$(LIBFT_FOLDER)/inc -I$(LIBT_FOLDER)/Inc -I$(LIBFT_FOLDER)/Includes -I$(LIBFT_FOLDER)/includes $(SRC) -o $(NAME)
clean:
@$(RM) $(OBJ)
fclean: clean
@$(RM) $(NAME)
libft:
@$(MAKE) -C $(LIBFT_FOLDER) re
love: all
@echo "Functions like split and trim are open to interpretation; your idea of these functions might be different than mine."
@./$(NAME)
re: fclean all