aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fcd1443..1c042e0 100644
--- a/Makefile
+++ b/Makefile
@@ -8,21 +8,23 @@ LIBS = -L. -lparsevent
8%.o: %.c 8%.o: %.c
9 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) $< -o $@ 9 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) $< -o $@
10 10
11TARGETS = trace-cmd libparsevent.so 11TARGETS = libparsevent.so trace-cmd
12 12
13all: $(TARGETS) 13all: $(TARGETS)
14 14
15trace-read.o:: parse-events.h 15trace-read.o:: parse-events.h
16trace-cmd.o:: parse-events.h 16trace-cmd.o:: parse-events.h
17trace-seq.o:: parse-events.h
18 17
19trace-cmd:: trace-cmd.o trace-read.o trace-seq.o 18trace-cmd:: trace-cmd.o trace-read.o
20 $(CC) $^ -o $@ $(LIBS) 19 $(CC) $^ -o $@ $(LIBS)
21 20
22parse-events.o: parse-events.c parse-events.h 21parse-events.o: parse-events.c parse-events.h
23 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@ 22 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
24 23
25libparsevent.so: parse-events.o 24trace-seq.o: trace-seq.c parse-events.h
25 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@
26
27libparsevent.so: parse-events.o trace-seq.o
26 $(CC) --shared $^ -o $@ 28 $(CC) --shared $^ -o $@
27 29
28.PHONY: force 30.PHONY: force