blob: 30ef4c7f53eaa3d29baaa47b69fd9090e328b8a9 [file] [log] [blame]
Stanislav Kinsbursky3a665532013-01-04 15:34:56 -08001uname_M := $(shell uname -m 2>/dev/null || echo not)
2ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
3ifeq ($(ARCH),i386)
Phong Tran498b4732014-08-29 15:19:06 -07004 ARCH := x86
Stanislav Kinsbursky3a665532013-01-04 15:34:56 -08005 CFLAGS := -DCONFIG_X86_32 -D__i386__
6endif
7ifeq ($(ARCH),x86_64)
Phong Tran498b4732014-08-29 15:19:06 -07008 ARCH := x86
Stanislav Kinsbursky3a665532013-01-04 15:34:56 -08009 CFLAGS := -DCONFIG_X86_64 -D__x86_64__
10endif
11
12CFLAGS += -I../../../../usr/include/
13
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +080014TEST_GEN_PROGS := msgque
Michael Ellerman5e29a912015-03-11 15:05:59 +110015
16include ../lib.mk
Stanislav Kinsbursky3a665532013-01-04 15:34:56 -080017