aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-11-30 15:56:40 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-11-30 15:56:40 -0500
commit12b4430819051ce143bf57b9ed55edfdf8b5fc5f (patch)
tree5aa01c392dccec6a9c6a45647942180c463d5937 /Makefile
parent67e19b45283f32e1e215ab08d399c6c9c0ef32a2 (diff)
Create a libtracecmd.so
It may be needed to have a shared object library for trace-cmd. Allow one to be created (not by default). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77f03d9..1b73a9e 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,15 @@ parse-events.o: parse-events.c parse-events.h
32trace-seq.o: trace-seq.c parse-events.h 32trace-seq.o: trace-seq.c parse-events.h
33 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@ 33 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
34 34
35trace-util.o:: trace-util.c
36 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
37
38trace-input.o:: trace-input.c
39 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
40
41trace-ftrace.o:: trace-ftrace.c
42 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
43
35PEVENT_LIB_OBJS = parse-events.o trace-seq.o 44PEVENT_LIB_OBJS = parse-events.o trace-seq.o
36 45
37libparsevent.so: $(PEVENT_LIB_OBJS) 46libparsevent.so: $(PEVENT_LIB_OBJS)
@@ -42,6 +51,9 @@ libparsevent.a: $(PEVENT_LIB_OBJS)
42 51
43TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o 52TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o
44 53
54libtracecmd.so: $(TCMD_LIB_OBJS)
55 $(CC) --shared $^ -o $@
56
45libtracecmd.a: $(TCMD_LIB_OBJS) 57libtracecmd.a: $(TCMD_LIB_OBJS)
46 $(RM) $@; $(AR) rcs $@ $^ 58 $(RM) $@; $(AR) rcs $@ $^
47 59