From e1e6511cd68b646234dcc8f5f86b25b7ea48a720 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 28 Mar 2019 15:17:34 +0106 Subject: schulung_tools: rename/modify malloc to avoid system() A more complex but cleaner implementation of retrieving/printing the stats has been implemented. The implementation is put into a separate stats.c file so that the main program (malloc.) can be easily reviewed to see what the program is doing. Signed-off-by: John Ogness --- schulung_tools/malloc/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'schulung_tools/malloc/Makefile') diff --git a/schulung_tools/malloc/Makefile b/schulung_tools/malloc/Makefile index b6160a8..a1bd685 100644 --- a/schulung_tools/malloc/Makefile +++ b/schulung_tools/malloc/Makefile @@ -1,7 +1,7 @@ -malloc: malloc.c - $(CROSS_COMPILE)gcc -g -omalloc malloc.c +malloc: malloc.c stats.c + $(CROSS_COMPILE)gcc -g $^ -o$@ clean: rm -f malloc core -.PHONY: clean +.PHONY: all clean -- cgit v1.2.3