churf/src/GC/Makefile
Victor Olin b79a83c32a Debugged mark()
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-24 13:39:55 +01:00

30 lines
No EOL
811 B
Makefile

mkfile_path = $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir = $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
PWD_V = /Users/valtermiari/Desktop/DV/Bachelors/code/language/src/GC/include
CC = clang++
PWD = /home/virre/dev/systemF/org/language/src/GC/include
CFLAGS = -Wall -Wextra -v -g -std=gnu++20 -stdlib=libc++ -I
VGFLAGS = --leak-check=full --show-leak-kinds=all
heap:
$(CC) $(CFLAGS)$(PWD) lib/heap.cpp
h_test:
rm -f tests/h_test.out
$(CC) $(CFLAGS)$(PWD) tests/h_test.cpp lib/heap.cpp -o tests/h_test.out
h_test_vg:
make h_test
valgrind $(VGFLAGS) tests/h_test.out
h_test_dbg:
make h_test
lldb tests/h_test.out launch
linker:
rm -f tests/linker.out
$(CC) $(CFLAGS)$(PWD) tests/linker.cpp lib/heap.cpp -o tests/linker.out
linker_vg:
make linker
valgrind $(VGFLAGS) tests/linker.out