Makefile more memory rules
* add to Makefile the rules: mem1, mem2 and mem3 Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
This commit is contained in:
parent
30d4aede61
commit
089a2a899c
13
Makefile
13
Makefile
|
@ -61,10 +61,19 @@ clean:
|
||||||
run: decimal-to-earth
|
run: decimal-to-earth
|
||||||
./decimal-to-earth 21
|
./decimal-to-earth 21
|
||||||
|
|
||||||
.PHONY: mem
|
.PHONY: mem mem1 mem2 mem3
|
||||||
mem: decimal-to-earth
|
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
|
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)
|
decimal-to-earth_test-1: $(DEP)
|
||||||
$(CC) $(CFLAGS) -DFROM_NUMERICALS=\"0123456789\" -DFROM_FIRST_NUMBER_VOID -DFROM_INFINITE_BASE -DTO_NUMERICALS=\"12345\" -o $@ $^
|
$(CC) $(CFLAGS) -DFROM_NUMERICALS=\"0123456789\" -DFROM_FIRST_NUMBER_VOID -DFROM_INFINITE_BASE -DTO_NUMERICALS=\"12345\" -o $@ $^
|
||||||
|
|
Loading…
Reference in New Issue