aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTyler Baker <tyler.baker@linaro.org>2015-04-01 19:20:20 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2015-04-02 14:41:58 -0400
commit6886f41d885e1a0c0e95069e3c73d27eed89d8ed (patch)
tree74fdfc0328af9e31ec00f620bf46aa86792084d9 /tools
parent5de830490454315fa64fd42a6efa6ad83bf123da (diff)
selftest/mqueue: enable cross compilation
Use the CC variable instead of hard coding gcc. Also clean up the compiler options by creating a CFLAGS variable. Signed-off-by: Tyler Baker <tyler.baker@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/mqueue/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile
index 6ca7261b55dc..0e3b41eb85cd 100644
--- a/tools/testing/selftests/mqueue/Makefile
+++ b/tools/testing/selftests/mqueue/Makefile
@@ -1,6 +1,8 @@
1CFLAGS = -O2
2
1all: 3all:
2 gcc -O2 mq_open_tests.c -o mq_open_tests -lrt 4 $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt
3 gcc -O2 -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt 5 $(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
4 6
5include ../lib.mk 7include ../lib.mk
6 8