mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
This avoids repeating the logic in every Makefile. We mimic the top-level Makefile and use $(CROSS_COMPILE)gcc. Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
12 lines
159 B
Makefile
12 lines
159 B
Makefile
all: get_size
|
|
|
|
get_size: get_size.c
|
|
$(CC) -static -ffreestanding -nostartfiles -s $< -o $@
|
|
|
|
TEST_PROGS := get_size
|
|
|
|
include ../lib.mk
|
|
|
|
clean:
|
|
$(RM) get_size
|