122f6592bSBamvor Jian Zhang 222f6592bSBamvor Jian ZhangTEST_PROGS := gpio-mockup.sh 322f6592bSBamvor Jian ZhangTEST_FILES := gpio-mockup-sysfs.sh $(BINARIES) 422f6592bSBamvor Jian ZhangBINARIES := gpio-mockup-chardev 551c6bd7cSShuah KhanEXTRA_PROGS := ../gpiogpio-event-mon ../gpiogpio-hammer ../gpiolsgpio 651c6bd7cSShuah KhanEXTRA_DIRS := ../gpioinclude/ 751c6bd7cSShuah KhanEXTRA_OBJS := ../gpiogpio-event-mon-in.o ../gpiogpio-event-mon.o 851c6bd7cSShuah KhanEXTRA_OBJS += ../gpiogpio-hammer-in.o ../gpiogpio-utils.o ../gpiolsgpio-in.o 951c6bd7cSShuah KhanEXTRA_OBJS += ../gpiolsgpio.o 1022f6592bSBamvor Jian Zhang 1122f6592bSBamvor Jian Zhanginclude ../lib.mk 1222f6592bSBamvor Jian Zhang 1322f6592bSBamvor Jian Zhangall: $(BINARIES) 1422f6592bSBamvor Jian Zhang 156dd89010SShuah Khanoverride define CLEAN 1651c6bd7cSShuah Khan $(RM) $(BINARIES) $(EXTRA_PROGS) $(EXTRA_OBJS) 1751c6bd7cSShuah Khan $(RM) -r $(EXTRA_DIRS) 186dd89010SShuah Khanendef 1922f6592bSBamvor Jian Zhang 2022f6592bSBamvor Jian ZhangCFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ 2122f6592bSBamvor Jian ZhangLDLIBS += -lmount -I/usr/include/libmount 2222f6592bSBamvor Jian Zhang 2322f6592bSBamvor Jian Zhang$(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h 2422f6592bSBamvor Jian Zhang 2522f6592bSBamvor Jian Zhang../../../gpio/gpio-utils.o: 2622f6592bSBamvor Jian Zhang make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio 2722f6592bSBamvor Jian Zhang 2822f6592bSBamvor Jian Zhang../../../../usr/include/linux/gpio.h: 2922f6592bSBamvor Jian Zhang make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/ 3022f6592bSBamvor Jian Zhang 31