1 # SPDX-License-Identifier: GPL-2.0
3 TEST_PROGS
:= gpio-mockup.sh
4 TEST_FILES
:= gpio-mockup-sysfs.sh
$(BINARIES
)
5 BINARIES
:= gpio-mockup-chardev
6 EXTRA_PROGS
:= ..
/gpiogpio-event-mon ..
/gpiogpio-hammer ..
/gpiolsgpio
7 EXTRA_DIRS
:= ..
/gpioinclude
/
8 EXTRA_OBJS
:= ..
/gpiogpio-event-mon-in.o ..
/gpiogpio-event-mon.o
9 EXTRA_OBJS
+= ..
/gpiogpio-hammer-in.o ..
/gpiogpio-utils.o ..
/gpiolsgpio-in.o
10 EXTRA_OBJS
+= ..
/gpiolsgpio.o
17 $(RM
) $(BINARIES
) $(EXTRA_PROGS
) $(EXTRA_OBJS
)
18 $(RM
) -r
$(EXTRA_DIRS
)
21 CFLAGS
+= -O2
-g
-std
=gnu99
-Wall
-I..
/..
/..
/..
/usr
/include/
22 LDLIBS
+= -lmount
-I
/usr
/include/libmount
24 $(BINARIES
): ..
/..
/..
/gpio
/gpio-utils.o ..
/..
/..
/..
/usr
/include/linux
/gpio.h
26 ..
/..
/..
/gpio
/gpio-utils.o
:
27 make ARCH
=$(ARCH
) CROSS_COMPILE
=$(CROSS_COMPILE
) -C ..
/..
/..
/gpio
29 ..
/..
/..
/..
/usr
/include/linux
/gpio.h
:
30 make
-C ..
/..
/..
/.. headers_install INSTALL_HDR_PATH
=$(shell pwd
)/..
/..
/..
/..
/usr
/