mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / samples / mic / mpssd / Makefile
bloba7a6e0c7042411adce5e8b8a509e231ebb0b6145
1 # SPDX-License-Identifier: GPL-2.0
2 ifndef CROSS_COMPILE
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/)
6 ifeq ($(ARCH),x86)
8 PROGS := mpssd
9 CC = $(CROSS_COMPILE)gcc
10 CFLAGS := -I../../../usr/include -I../../../tools/include
12 ifdef DEBUG
13 CFLAGS += -DDEBUG=$(DEBUG)
14 endif
16 all: $(PROGS)
17 mpssd: mpssd.c sysfs.c
18 $(CC) $(CFLAGS) mpssd.c sysfs.c -o mpssd -lpthread
20 install:
21 install mpssd /usr/sbin/mpssd
22 install micctrl /usr/sbin/micctrl
24 clean:
25 rm -fr $(PROGS)
27 endif
28 endif