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