1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 uname_M := $(shell uname -m 2>/dev/null || ech 2 uname_M := $(shell uname -m 2>/dev/null || echo not) 3 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.8 3 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) 4 ifeq ($(ARCH),i386) 4 ifeq ($(ARCH),i386) 5 ARCH := x86 5 ARCH := x86 6 CFLAGS := -DCONFIG_X86_32 -D__i386__ 6 CFLAGS := -DCONFIG_X86_32 -D__i386__ 7 endif 7 endif 8 ifeq ($(ARCH),x86_64) 8 ifeq ($(ARCH),x86_64) 9 ARCH := x86 9 ARCH := x86 10 CFLAGS := -DCONFIG_X86_64 -D__x86_64__ 10 CFLAGS := -DCONFIG_X86_64 -D__x86_64__ 11 endif 11 endif 12 12 13 CFLAGS += $(KHDR_INCLUDES) 13 CFLAGS += $(KHDR_INCLUDES) 14 14 15 TEST_GEN_PROGS := msgque 15 TEST_GEN_PROGS := msgque 16 16 17 include ../lib.mk 17 include ../lib.mk 18 18
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.