add tdm test for memory profiling

This commit is contained in:
2021-05-03 19:01:06 +02:00
parent c4f2a5ff5d
commit 9ebac41973
2 changed files with 42 additions and 1 deletions

View File

@@ -30,6 +30,14 @@ INST := /usr/local/bin
OST := $(shell uname)
CWD := $(shell pwd)
# --------------------------------------------------------------------------- #
tdmtest : tdmtest.o
$(CC) $(OPT) $^ -o $@
tdmtest.o : src/test.cpp lib/$(SRC).hpp $(HPP)
$(CC) -c $(OPT) $(LIB) -I lib/ $< -o $@
# --------------------------------------------------------------------------- #
# CLI tool
@@ -60,7 +68,7 @@ $(SRC).o : lib/$(SRC).cpp lib/$(SRC).hpp $(HPP)
$(CC) -c $(OPT) $(LIB) $< -o $@
cpp-clean :
rm -f $(EXE) *.o src/main.cpp.cpp
rm -f $(EXE) *.o src/main.cpp.cpp tdmtest
# --------------------------------------------------------------------------- #
# check process