-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (33 loc) · 1.29 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
39
40
41
42
43
44
45
46
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aleblanc <aleblanc@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/01/26 14:13:37 by aleblanc #+# #+# #
# Updated: 2017/01/27 10:56:38 by aleblanc ### ########.fr #
# #
# **************************************************************************** #
NAME = avm
FLAGS= -Wall -Werror -Wextra
INC= -I include
SRC= main.cpp \
Factory.class.cpp \
Vm.class.cpp \
Instruction.class.cpp \
Error.class.cpp
OBJ= $(SRC:%.cpp=obj/%.o)
all: $(NAME)
$(NAME): obj $(OBJ)
clang++ $(FLAGS) -o $@ $(OBJ) $(LIB)
obj/%.o: src/%.cpp
clang++ $(FLAGS) $(INC) -o $@ -c $<
obj:
mkdir -p obj
clean:
rm -rf obj
fclean: clean
rm -rf $(NAME)
re: fclean all
.PHONY: fclean all clean