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

index a5b367f032ba094c5fc818ea3072230c3db9a564..95580a97326e166ce2cd9f267055bbc2cdbc2355 100644 (file)
@@ -1,9 +1,10 @@
 # Makefile for mount selftests.
-
+CFLAGS = -Wall \
+         -O2
 all: unprivileged-remount-test
 
 unprivileged-remount-test: unprivileged-remount-test.c
-       gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test
+       $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
 
 include ../lib.mk