aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rw-r--r--parse-events.h2
2 files changed, 8 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
diff --git a/parse-events.h b/parse-events.h
index 847d87e..8516672 100644
--- a/parse-events.h
+++ b/parse-events.h
@@ -1,6 +1,8 @@
1#ifndef _PARSE_EVENTS_H 1#ifndef _PARSE_EVENTS_H
2#define _PARSE_EVENTS_H 2#define _PARSE_EVENTS_H
3 3
4#include <stdarg.h>
5
4#ifndef __unused 6#ifndef __unused
5#define __unused __attribute__ ((unused)) 7#define __unused __attribute__ ((unused))
6#endif 8#endif