Makefile (a4f222e000b3f75bd1ab763dcc289d004ff6596e) | Makefile (8c7f6316fccf38ca45d33ed658cc4813837b6294) |
---|---|
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 | 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 := ../../../gpio | 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) | 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) clean | 19 $(MAKE) -C $(GPIODIR) OUTPUT=$(GPIODIR)/ clean |
20endef 21 22$(TEST_PROGS_EXTENDED):| khdr 23$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) 24 25$(GPIODIR)/$(GPIOOBJ): | 20endef 21 22$(TEST_PROGS_EXTENDED):| khdr 23$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) 24 25$(GPIODIR)/$(GPIOOBJ): |
26 $(MAKE) -C $(GPIODIR) | 26 $(MAKE) OUTPUT=$(GPIODIR)/ -C $(GPIODIR) |