]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - tools/testing/selftests/ipc/Makefile
Merge branch 'for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[karo-tx-linux.git] / tools / testing / selftests / ipc / Makefile
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)
4         ARCH := x86
5         CFLAGS := -DCONFIG_X86_32 -D__i386__
6 endif
7 ifeq ($(ARCH),x86_64)
8         ARCH := x86
9         CFLAGS := -DCONFIG_X86_64 -D__x86_64__
10 endif
11
12 CFLAGS += -I../../../../usr/include/
13
14 all:
15         $(CC) $(CFLAGS) msgque.c -o msgque_test
16
17 TEST_PROGS := msgque_test
18
19 include ../lib.mk
20
21 clean:
22         rm -fr ./msgque_test