1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 TEST_PROGS := gpio-mockup.sh gpio-sim.sh !! 3 MOUNT_CFLAGS := $(shell pkg-config --cflags mount 2>/dev/null) >> 4 MOUNT_LDLIBS := $(shell pkg-config --libs mount 2>/dev/null) >> 5 ifeq ($(MOUNT_LDLIBS),) >> 6 MOUNT_LDLIBS := -lmount -I/usr/include/libmount >> 7 endif >> 8 >> 9 CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ $(MOUNT_CFLAGS) >> 10 LDLIBS += $(MOUNT_LDLIBS) >> 11 >> 12 TEST_PROGS := gpio-mockup.sh 4 TEST_FILES := gpio-mockup-sysfs.sh 13 TEST_FILES := gpio-mockup-sysfs.sh 5 TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gp !! 14 TEST_PROGS_EXTENDED := gpio-mockup-chardev 6 CFLAGS += -O2 -g -Wall $(KHDR_INCLUDES) !! 15 >> 16 GPIODIR := $(realpath ../../../gpio) >> 17 GPIOOBJ := gpio-utils.o >> 18 >> 19 all: $(TEST_PROGS_EXTENDED) 7 20 >> 21 override define CLEAN >> 22 $(RM) $(TEST_PROGS_EXTENDED) >> 23 $(MAKE) -C $(GPIODIR) OUTPUT=$(GPIODIR)/ clean >> 24 endef >> 25 >> 26 KSFT_KHDR_INSTALL := 1 8 include ../lib.mk 27 include ../lib.mk >> 28 >> 29 $(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) >> 30 >> 31 $(GPIODIR)/$(GPIOOBJ): >> 32 $(MAKE) OUTPUT=$(GPIODIR)/ -C $(GPIODIR)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.