aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-14 10:00:59 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-14 10:00:59 -0500
commit37250afc820f712eb0de4340d25c9625ef6fa634 (patch)
treeb76111805c7f8007c97a52d64c0cce6a2746839f /Makefile
parent8883a04e689e370e3ca3383003909d3d0b8558bf (diff)
Move writing to data file to library
We need a way to have other applications easily make the output file. This moves the recording of the trace.dat file to the trace-cmd library. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f159a46..42cb7ad 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,12 @@ trace-util.o:: trace-util.c
39trace-input.o:: trace-input.c 39trace-input.o:: trace-input.c
40 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@ 40 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
41 41
42trace-output.o:: trace-output.c
43 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
44
45trace-record.o:: trace-record.c
46 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
47
42trace-ftrace.o:: trace-ftrace.c 48trace-ftrace.o:: trace-ftrace.c
43 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@ 49 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
44 50
@@ -50,7 +56,8 @@ libparsevent.so: $(PEVENT_LIB_OBJS)
50libparsevent.a: $(PEVENT_LIB_OBJS) 56libparsevent.a: $(PEVENT_LIB_OBJS)
51 $(RM) $@; $(AR) rcs $@ $^ 57 $(RM) $@; $(AR) rcs $@ $^
52 58
53TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o 59TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o \
60 trace-output.o trace-record.o
54 61
55libtracecmd.so: $(TCMD_LIB_OBJS) 62libtracecmd.so: $(TCMD_LIB_OBJS)
56 $(CC) --shared $^ -o $@ 63 $(CC) --shared $^ -o $@