Add VM preemption latency measuring tool vm-trace
[kvmfornfv.git] / tests / vm-trace / Makefile
1 DEBUG ?= n
2
3 ifeq ($(DEBUG),y)
4   DBGFLAGS = -g -DDEBUG
5 else
6   DBGFLAGS = -O2
7 endif
8
9 XTRA_CFLAGS = $(DBGFLAGS) -Wall
10 XTRALIBS = -lrt -lpthread
11
12 all: vm-trace cscope
13
14 vm-trace: vm-trace.c
15         $(CC) $(XTRA_CFLAGS) $< -o $@ $(XTRALIBS)
16
17 cscope.out: vm-trace.c
18         cscope -b
19
20 cscope: cscope.out
21
22 clean:
23         rm -f *.o core* vm-trace cscope.*