summaryrefslogtreecommitdiffstats
path: root/tests/vm-trace/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm-trace/Makefile')
-rw-r--r--tests/vm-trace/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/vm-trace/Makefile b/tests/vm-trace/Makefile
new file mode 100644
index 000000000..e367739d4
--- /dev/null
+++ b/tests/vm-trace/Makefile
@@ -0,0 +1,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.*