Makefile 305 字节
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
6 7

all: ${bins}
8 9 10

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