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>
This commit is contained in:
Tyler Baker 2015-04-01 16:20:17 -07:00 коммит произвёл Shuah Khan
Родитель 52dd5576cd
Коммит 365ce9997b
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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