浏览代码

selftest/mount: 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>
Tyler Baker 10 年之前
父节点
当前提交
365ce9997b
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      tools/testing/selftests/mount/Makefile

+ 3 - 2
tools/testing/selftests/mount/Makefile

@@ -1,9 +1,10 @@
 # Makefile for mount selftests.
 # Makefile for mount selftests.
-
+CFLAGS = -Wall \
+         -O2
 all: unprivileged-remount-test
 all: unprivileged-remount-test
 
 
 unprivileged-remount-test: unprivileged-remount-test.c
 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
 include ../lib.mk