Makefile 326 字节
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 7

all: ${bins}
8 9 10

run_tests: all
	./posix_timers
11
	./nanosleep
12
	./nsleep-lat
13
	./inconsistency-check
14
	./raw_skew
15
clean:
16
	rm -f ${bins}