-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 865 Bytes
/
Makefile
File metadata and controls
51 lines (37 loc) · 865 Bytes
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
47
48
49
50
51
##
## EPITECH PROJECT, 2023
## abstractVM
## File description:
## Makefile
##
CXXFLAGS += -Wall -Wextra -Wpedantic -Iinclude
SRC := source/main.cpp \
source/Double.cpp \
source/Factory.cpp \
source/Float.cpp \
source/Int8.cpp \
source/Int16.cpp \
source/Int32.cpp \
source/Interpreter.cpp \
source/stack.cpp \
source/Register.cpp \
OBJ := $(SRC:.cpp=.o)
NAME := abstractVM
all: $(NAME)
run: $(NAME)
./$(NAME)
$(NAME): $(OBJ)
$(CXX) -o $@ $(OBJ) $(LDFLAGS)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean
$(MAKE)
debug: fclean
CXXFLAGS=-g3 $(MAKE)
val: debug
valgrind -s ./$(NAME)
valtest: debug
valgrind -s --show-leak-kinds=all --leak-check=full ./$(NAME) test
.PHONY: all clean fclean re debug val