-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1.25 KB
/
Makefile
File metadata and controls
35 lines (25 loc) · 1.25 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dzui <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/01 15:02:50 by dzui #+# #+# #
# Updated: 2018/08/04 13:40:55 by dzui ### ########.fr #
# #
# **************************************************************************** #
NAME = avm
SRC = main.cpp OperandFactory/OperandFactory.cpp Vm/VM.cpp Vm/VM_Instructions.cpp Lexer/Lexer.cpp Parser/Parser.cpp
OBJ = $(SRC:.cpp=.o)
FLAGS = -Wall -Wextra -Werror -std=c++14
$(NAME): $(OBJ)
clang++ $(FLAGS) $(OBJ) -o $(NAME)
%.o:%.cpp
clang++ $(FLAGS) -c -o $@ $<
all: $(NAME)
clean:
rm -rf $(OBJ)
fclean: clean
rm -rf $(NAME) $(OBJ)
re: fclean $(NAME)