1# SPDX-License-Identifier: GPL-2.0 2 3CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ 4LDLIBS += -lmount -I/usr/include/libmount 5 6TEST_PROGS := gpio-mockup.sh 7TEST_FILES := gpio-mockup-sysfs.sh 8TEST_PROGS_EXTENDED := gpio-mockup-chardev 9 10GPIODIR := $(realpath ../../../gpio) 11GPIOOBJ := gpio-utils.o 12 13all: $(TEST_PROGS_EXTENDED) 14 15override define CLEAN 16 $(RM) $(TEST_PROGS_EXTENDED) 17 $(MAKE) -C $(GPIODIR) OUTPUT=$(GPIODIR)/ clean 18endef 19 20KSFT_KHDR_INSTALL := 1 21include ../lib.mk 22 23$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) 24 25$(GPIODIR)/$(GPIOOBJ): 26 $(MAKE) OUTPUT=$(GPIODIR)/ -C $(GPIODIR) 27