mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 11:43:54 +08:00
f5db310d77
add -lrt to fix undefined reference to `clock_gettime' error seen when the test is compiled using gcc 4.6.4. Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
17 lines
331 B
Makefile
17 lines
331 B
Makefile
# Makefile for vm selftests
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
|
CFLAGS = -Wall
|
|
BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
|
|
BINARIES += transhuge-stress
|
|
|
|
all: $(BINARIES)
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^ -lrt
|
|
|
|
run_tests: all
|
|
@/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
|
|
|
|
clean:
|
|
$(RM) $(BINARIES)
|