summaryrefslogtreecommitdiff
path: root/schulung_tools/malloc/Makefile
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-03-28 15:17:34 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-03-28 15:17:34 +0106
commite1e6511cd68b646234dcc8f5f86b25b7ea48a720 (patch)
tree859af07101563fb34d00dfbf256c4a76b3294f99 /schulung_tools/malloc/Makefile
parenta39de4609225129c19df931d556b1d032d806403 (diff)
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 <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/malloc/Makefile')
-rw-r--r--schulung_tools/malloc/Makefile6
1 files changed, 3 insertions, 3 deletions
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