1 # To build: 2 # 3 # CROSS_COMPILE=aarch64-linux-gnu- make 4 # 5 CROSS_COMPILE?=aarch64-linux-gnu- 6 CC=$(CROSS_COMPILE)gcc 7 CFLAGS=-static -lc 8 9 readenergy: readenergy.c 10 $(CC) $(CFLAGS) readenergy.c -o readenergy 11 mv readenergy ../../devlib/bin/arm64/readenergy 12