mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-12 20:43:40 +01: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
|