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 13include ../lib.mk 14 15all: $(TEST_PROGS_EXTENDED) 16 17override define CLEAN 18 $(RM) $(TEST_PROGS_EXTENDED) 19 $(MAKE) -C $(GPIODIR) OUTPUT=$(GPIODIR)/ clean 20endef 21 22$(TEST_PROGS_EXTENDED):| khdr 23$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) 24 25$(GPIODIR)/$(GPIOOBJ): 26 $(MAKE) OUTPUT=$(GPIODIR)/ -C $(GPIODIR) 27