summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/size/Makefile
blob: 04dc25e4fa92456597dc9a14862ab4192d84410d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CC = $(CROSS_COMPILE)gcc

all: get_size

get_size: get_size.c
	$(CC) -static -ffreestanding -nostartfiles -s $< -o $@

run_tests: all
	./get_size

clean:
	$(RM) get_size