mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 16:43:08 +00:00
84f887bfb9
This avoids repeating the logic in every Makefile. We mimic the top-level Makefile and use $(CROSS_COMPILE)gcc. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
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
|