Makefile 693 字节
Newer Older
1 2 3 4
CC = $(CROSS_COMPILE)gcc
BUILD_FLAGS = -DKTEST
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
LDFLAGS += -lrt -lpthread
5
bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
6
	set-timer-lat threadtest mqueue-lat valid-adjtimex
7 8

all: ${bins}
9

10 11
# these are all "safe" tests that don't modify
# system time or require escalated privledges
12 13
run_tests: all
	./posix_timers
14
	./nanosleep
15
	./nsleep-lat
16
	./set-timer-lat
17
	./mqueue-lat
18
	./inconsistency-check
19
	./raw_skew
20
	./threadtest -t 30 -n 8
21 22 23 24 25 26 27

# these tests require escalated privledges
# and may modify the system time or trigger
# other behavior like suspend
run_destructive_tests: all
	./valid-adjtimex

28
clean:
29
	rm -f ${bins}