-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1.28 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abel-mak <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/09/10 17:10:37 by abel-mak #+# #+# #
# Updated: 2021/11/24 17:57:41 by abel-mak ### ########.fr #
# #
# **************************************************************************** #
NAME=ft
NAME_DEBUG=ft_debug
SRC=main.cpp
TEST2_SRC:=$(wildcard ./test/_test*.cpp)
TEST2_OUT=ft_test2
OBJ= $(SRC:.cpp=.o)
FLAGS= -Wall -Wextra -Werror -std=c++98
HDR=$(wildcard ./src/*.hpp)
all: $(NAME)
$(NAME): $(SRC) $(HDR)
clang++ $(FLAGS) $(SRC) -o $(NAME)
test2: $(TEST2_SRC)
@clang++ $(FLAGS) $(TEST2_SRC) -o $(TEST2_OUT) && ./$(TEST2_OUT)
clean:
rm -f $(NAME) $(TEST2_OUT) $(NAME_DEBUG) a.out