1 # SPDX-License-Identifier: GPL-2.0
3 uname_M
:= $(shell uname
-m
2>/dev
/null || echo not
)
4 ARCH ?
= $(shell echo
$(uname_M
) | sed
-e s
/i
.86/x86
/ -e s
/x86_64
/x86
/)
9 CC
= $(CROSS_COMPILE
)gcc
10 CFLAGS
:= -I..
/..
/..
/usr
/include -I..
/..
/..
/tools
/include
13 CFLAGS
+= -DDEBUG
=$(DEBUG
)
17 mpssd
: mpssd.c sysfs.c
18 $(CC
) $(CFLAGS
) mpssd.c sysfs.c
-o mpssd
-lpthread
21 install mpssd
/usr
/sbin
/mpssd
22 install micctrl
/usr
/sbin
/micctrl