1 2TEST_PROGS := gpio-mockup.sh 3TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES) 4BINARIES := gpio-mockup-chardev 5 6include ../lib.mk 7 8all: $(BINARIES) 9 10override define CLEAN 11 $(RM) $(BINARIES) 12endef 13 14CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ 15LDLIBS += -lmount -I/usr/include/libmount 16 17$(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h 18 19../../../gpio/gpio-utils.o: 20 make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio 21 22../../../../usr/include/linux/gpio.h: 23 make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/ 24 25