diff options
author | Daniel Santos <dacs.git@brilhante.top> | 2022-03-17 11:51:42 +0000 |
---|---|---|
committer | Daniel Santos <dacs.git@brilhante.top> | 2022-03-17 11:51:42 +0000 |
commit | 089a2a899c9daa0861e5776991244c40ec88a2fa (patch) | |
tree | 9ef7d373ceaf4bfcc61105c38a20f86f9003f424 /Makefile | |
parent | 30d4aede6111facdf59567c04495c7428aec0654 (diff) | |
download | numericx-c-089a2a899c9daa0861e5776991244c40ec88a2fa.tar.gz |
Makefile more memory rules
* add to Makefile the rules: mem1, mem2 and mem3 Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 7b885f6..51c5a7c 100644 --- a/Makefile +++ b/Makefile @@ -61,10 +61,19 @@ clean: run: decimal-to-earth ./decimal-to-earth 21 -.PHONY: mem -mem: decimal-to-earth +.PHONY: mem mem1 mem2 mem3 +mem: + echo "the memory make rules are: mem1 mem2 mem3" + +mem1: decimal-to-earth valgrind --leak-check=full --show-leak-kinds=all -s decimal-to-earth 999 +mem2: decimal-to-earth + valgrind --leak-check=full --show-leak-kinds=all -s decimal-to-earth 0 + +mem3: decimal-to-earth + valgrind --leak-check=full --show-leak-kinds=all -s decimal-to-earth abc + decimal-to-earth_test-1: $(DEP) $(CC) $(CFLAGS) -DFROM_NUMERICALS=\"0123456789\" -DFROM_FIRST_NUMBER_VOID -DFROM_INFINITE_BASE -DTO_NUMERICALS=\"12345\" -o $@ $^ |