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