| 1 | # |
| 2 | # Makefile for the LTT objects. |
| 3 | # |
| 4 | |
| 5 | ifneq ($(KERNELRELEASE),) |
| 6 | ifneq ($(CONFIG_MARKERS),) |
| 7 | |
| 8 | obj-m += ltt-core.o |
| 9 | obj-m += ltt-tracer.o |
| 10 | obj-m += ltt-marker-control.o |
| 11 | |
| 12 | obj-m += ltt-relay.o |
| 13 | ltt-relay-objs := ltt-event-header.o ltt-serialize.o ltt-type-serializer.o |
| 14 | #ltt-ascii.o |
| 15 | |
| 16 | obj-m += ltt-statedump.o |
| 17 | obj-m += ltt-trace-control.o |
| 18 | obj-m += ltt-userspace-event.o |
| 19 | obj-m += ltt-filter.o |
| 20 | obj-m += ltt-kprobes.o |
| 21 | obj-m += probes/ |
| 22 | |
| 23 | endif |
| 24 | |
| 25 | else |
| 26 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build |
| 27 | PWD := $(shell pwd) |
| 28 | CFLAGS = $(EXTCFLAGS) |
| 29 | |
| 30 | default: |
| 31 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules |
| 32 | |
| 33 | modules_install: |
| 34 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install |
| 35 | /sbin/depmod -a |
| 36 | |
| 37 | clean: |
| 38 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean |
| 39 | |
| 40 | endif |