Makefile 361 字节
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 6
bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
	set-timer-lat
7 8

all: ${bins}
9 10 11

run_tests: all
	./posix_timers
12
	./nanosleep
13
	./nsleep-lat
14
	./set-timer-lat
15
	./inconsistency-check
16
	./raw_skew
17

18
clean:
19
	rm -f ${bins}