1CC = $(CROSS_COMPILE)gcc 2CFLAGS += -O2 -Wall -g -D_GNU_SOURCE 3 4all: lsgpio 5 6lsgpio: lsgpio.o gpio-utils.o 7 8%.o: %.c gpio-utils.h 9 10.PHONY: clean 11clean: 12 rm -f *.o lsgpio 13