blob: e367739d41d08ae1cc78fae0c7301887f22f3f8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
DEBUG ?= n
ifeq ($(DEBUG),y)
DBGFLAGS = -g -DDEBUG
else
DBGFLAGS = -O2
endif
XTRA_CFLAGS = $(DBGFLAGS) -Wall
XTRALIBS = -lrt -lpthread
all: vm-trace cscope
vm-trace: vm-trace.c
$(CC) $(XTRA_CFLAGS) $< -o $@ $(XTRALIBS)
cscope.out: vm-trace.c
cscope -b
cscope: cscope.out
clean:
rm -f *.o core* vm-trace cscope.*
|