diff options
| author | Manuel Traut <manut@linutronix.de> | 2019-01-09 17:18:55 +0100 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-01-28 19:47:53 +0106 |
| commit | 5dfa2823a0ee23303c9e1dd7e38833e3e6e01396 (patch) | |
| tree | fd37351df751aefaeb1b12f19607f6c1c5f6f7cf /schulung_tools/malloc/Makefile | |
| parent | 16c579d5fbb7ac62bf2f6f105d56d46e7409f74e (diff) | |
add a malloc example
it demonstrates that memory is only allocated if used.
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'schulung_tools/malloc/Makefile')
| -rw-r--r-- | schulung_tools/malloc/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/schulung_tools/malloc/Makefile b/schulung_tools/malloc/Makefile new file mode 100644 index 0000000..b6160a8 --- /dev/null +++ b/schulung_tools/malloc/Makefile @@ -0,0 +1,7 @@ +malloc: malloc.c + $(CROSS_COMPILE)gcc -g -omalloc malloc.c + +clean: + rm -f malloc core + +.PHONY: clean |
