2 uname_M
:= $(shell uname
-m
2>/dev
/null || echo not
)
3 ARCH ?
= $(shell echo
$(uname_M
) | sed
-e s
/i
.86/x86
/ -e s
/x86_64
/x86
/)
8 CC
= $(CROSS_COMPILE
)gcc
9 CFLAGS
:= -I..
/..
/..
/usr
/include -I..
/..
/..
/tools
/include
12 CFLAGS
+= -DDEBUG
=$(DEBUG
)
16 mpssd
: mpssd.c sysfs.c
17 $(CC
) $(CFLAGS
) mpssd.c sysfs.c
-o mpssd
-lpthread
20 install mpssd
/usr
/sbin
/mpssd
21 install micctrl
/usr
/sbin
/micctrl