18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciuname_M := $(shell uname -m 2>/dev/null || echo not) 38c2ecf20Sopenharmony_ciARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) 48c2ecf20Sopenharmony_ciifeq ($(ARCH),i386) 58c2ecf20Sopenharmony_ci ARCH := x86 68c2ecf20Sopenharmony_ci CFLAGS := -DCONFIG_X86_32 -D__i386__ 78c2ecf20Sopenharmony_ciendif 88c2ecf20Sopenharmony_ciifeq ($(ARCH),x86_64) 98c2ecf20Sopenharmony_ci ARCH := x86 108c2ecf20Sopenharmony_ci CFLAGS := -DCONFIG_X86_64 -D__x86_64__ 118c2ecf20Sopenharmony_ciendif 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciCFLAGS += -I../../../../usr/include/ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciTEST_GEN_PROGS := msgque 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciinclude ../lib.mk 188c2ecf20Sopenharmony_ci 19