diff options
| author | Steven Rostedt <rostedt@goodmis.org> | 2009-07-17 09:53:34 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2009-07-17 09:53:34 -0400 |
| commit | d78f5f2d3d250b695587d88a001da073d2e94ca9 (patch) | |
| tree | 74b206f0b3ed2c51f1472a140d468f95f9ba1c54 /Makefile | |
Initial addition of trace-cmd files.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..538406c --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | CC = gcc | ||
| 2 | CFLAGS = -g -Wall # -O2 | ||
| 3 | INCLUDES = -I. -I/usr/local/include | ||
| 4 | |||
| 5 | %.o: %.c | ||
| 6 | $(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@ | ||
| 7 | |||
| 8 | TARGETS = trace-cmd | ||
| 9 | |||
| 10 | all: $(TARGETS) | ||
| 11 | |||
| 12 | parse-events.o:: parse-events.h | ||
| 13 | trace-read.o:: parse-events.h | ||
| 14 | trace-cmd.o:: parse-events.h | ||
| 15 | |||
| 16 | trace-cmd: trace-cmd.o trace-read.o parse-events.o | ||
| 17 | $(CC) $^ -o $@ | ||
| 18 | |||
| 19 | clean: | ||
| 20 | $(RM) *.o *~ $(TARGETS) | ||
