selftest/mqueue: enable cross compilation
authorTyler Baker <tyler.baker@linaro.org>
Wed, 1 Apr 2015 23:20:20 +0000 (16:20 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 2 Apr 2015 18:41:58 +0000 (12:41 -0600)
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>
tools/testing/selftests/mqueue/Makefile

index 6ca7261b55dc9d51ce6b179f04c64cd795d536e3..0e3b41eb85cde2cd553bda36ac0b09f43553ceb8 100644 (file)
@@ -1,6 +1,8 @@
+CFLAGS = -O2
+
 all:
-       gcc -O2 mq_open_tests.c -o mq_open_tests -lrt
-       gcc -O2 -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
+       $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt
+       $(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
 
 include ../lib.mk