Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03438212 authored by John Stultz's avatar John Stultz Committed by Shuah Khan
Browse files

selftests/timers: Cleanup Makefile to make it easier to add future tests



Try to streamline the makefile so its easier to add timer/timekeeping
tests.

Also adds support for the CROSS_COMPILE variable.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Tested-by: default avatarPrarit Bhargava <prarit@redhat.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 9eccca08
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
all:
	gcc posix_timers.c -o posix_timers -lrt
CC = $(CROSS_COMPILE)gcc
BUILD_FLAGS = -DKTEST
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
LDFLAGS += -lrt -lpthread
bins = posix_timers

all: ${bins}

run_tests: all
	./posix_timers

clean:
	rm -f ./posix_timers
	rm -f ${bins}