1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 222f6592bSBamvor Jian Zhang 322f6592bSBamvor Jian ZhangCFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ 422f6592bSBamvor Jian ZhangLDLIBS += -lmount -I/usr/include/libmount 522f6592bSBamvor Jian Zhang 6a4f222e0SFathi BoudraTEST_PROGS := gpio-mockup.sh 7a4f222e0SFathi BoudraTEST_FILES := gpio-mockup-sysfs.sh 8a4f222e0SFathi BoudraTEST_PROGS_EXTENDED := gpio-mockup-chardev 922f6592bSBamvor Jian Zhang 10*8c7f6316SDaniel DíazGPIODIR := $(realpath ../../../gpio) 11a4f222e0SFathi BoudraGPIOOBJ := gpio-utils.o 12a4f222e0SFathi Boudra 13a4f222e0SFathi Boudrainclude ../lib.mk 14a4f222e0SFathi Boudra 15a4f222e0SFathi Boudraall: $(TEST_PROGS_EXTENDED) 16a4f222e0SFathi Boudra 17a4f222e0SFathi Boudraoverride define CLEAN 18a4f222e0SFathi Boudra $(RM) $(TEST_PROGS_EXTENDED) 19*8c7f6316SDaniel Díaz $(MAKE) -C $(GPIODIR) OUTPUT=$(GPIODIR)/ clean 20a4f222e0SFathi Boudraendef 21a4f222e0SFathi Boudra 22a4f222e0SFathi Boudra$(TEST_PROGS_EXTENDED):| khdr 23a4f222e0SFathi Boudra$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) 24a4f222e0SFathi Boudra 25a4f222e0SFathi Boudra$(GPIODIR)/$(GPIOOBJ): 26*8c7f6316SDaniel Díaz $(MAKE) OUTPUT=$(GPIODIR)/ -C $(GPIODIR) 27