Stanislav Kinsbursky | 3a66553 | 2013-01-04 15:34:56 -0800 | [diff] [blame] | 1 | uname_M := $(shell uname -m 2>/dev/null || echo not) |
| 2 | ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) |
| 3 | ifeq ($(ARCH),i386) |
Phong Tran | 498b473 | 2014-08-29 15:19:06 -0700 | [diff] [blame] | 4 | ARCH := x86 |
Stanislav Kinsbursky | 3a66553 | 2013-01-04 15:34:56 -0800 | [diff] [blame] | 5 | CFLAGS := -DCONFIG_X86_32 -D__i386__ |
| 6 | endif |
| 7 | ifeq ($(ARCH),x86_64) |
Phong Tran | 498b473 | 2014-08-29 15:19:06 -0700 | [diff] [blame] | 8 | ARCH := x86 |
Stanislav Kinsbursky | 3a66553 | 2013-01-04 15:34:56 -0800 | [diff] [blame] | 9 | CFLAGS := -DCONFIG_X86_64 -D__x86_64__ |
| 10 | endif |
| 11 | |
| 12 | CFLAGS += -I../../../../usr/include/ |
| 13 | |
bamvor.zhangjian@huawei.com | 88baa78 | 2016-11-29 19:55:47 +0800 | [diff] [blame] | 14 | TEST_GEN_PROGS := msgque |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 15 | |
| 16 | include ../lib.mk |
Stanislav Kinsbursky | 3a66553 | 2013-01-04 15:34:56 -0800 | [diff] [blame] | 17 | |