1# SPDX-License-Identifier: GPL-2.0 2 3TEST_PROGS := gpio-mockup.sh 4TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES) 5BINARIES := gpio-mockup-chardev 6EXTRA_PROGS := ../gpiogpio-event-mon ../gpiogpio-hammer ../gpiolsgpio 7EXTRA_DIRS := ../gpioinclude/ 8EXTRA_OBJS := ../gpiogpio-event-mon-in.o ../gpiogpio-event-mon.o 9EXTRA_OBJS += ../gpiogpio-hammer-in.o ../gpiogpio-utils.o ../gpiolsgpio-in.o 10EXTRA_OBJS += ../gpiolsgpio.o 11 12include ../lib.mk 13 14all: $(BINARIES) 15 16override define CLEAN 17 $(RM) $(BINARIES) $(EXTRA_PROGS) $(EXTRA_OBJS) 18 $(RM) -r $(EXTRA_DIRS) 19endef 20 21CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ 22LDLIBS += -lmount -I/usr/include/libmount 23 24$(BINARIES):| khdr 25$(BINARIES): ../../../gpio/gpio-utils.o 26 27../../../gpio/gpio-utils.o: 28 make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio 29