| 1 | ifneq ($(KERNELRELEASE),) |
| 2 | ifneq ($(CONFIG_LTT),) |
| 3 | #obj-m += ltt-facility-loader-tests.o |
| 4 | # #obj-m += test-time-probe.o |
| 5 | #obj-m += test-time-probe2.o |
| 6 | #obj-m += test-compact.o |
| 7 | # obj-m += ltt-facility-loader-compact.o |
| 8 | # obj-m += test-instrument-size-small.o |
| 9 | # obj-m += test-instrument-size-med.o |
| 10 | # obj-m += test-instrument-size-big.o |
| 11 | # obj-m += test-printk-effect.o |
| 12 | #obj-m += ltt-probe-tests.o |
| 13 | #obj-m += test-time-probe3.o |
| 14 | endif |
| 15 | #obj-m += test-sys_call.o |
| 16 | # obj-m += test-bug.o |
| 17 | obj-m += test-tsc-sync2.o |
| 18 | obj-m += test-nop-speed.o |
| 19 | #obj-m += test-hpet.o |
| 20 | # obj-m += test-prefix-speed-32.o |
| 21 | #obj-m += test-prefix-speed.o |
| 22 | #obj-m += test-psrwlock.o |
| 23 | # obj-m += test-cmpxchg-nolock2.o |
| 24 | # obj-m += test-trace-speed.o |
| 25 | # obj-m += test-rcu-speed.o |
| 26 | # obj-m += test-fct-speed.o |
| 27 | # obj-m += test-int3-speed.o |
| 28 | # obj-m += test-kprobes2.o |
| 29 | #obj-m += test-mark-speed.o |
| 30 | #obj-m += test-mark-speed-edit.o |
| 31 | #obj-m += test-mark-speed-opt.o |
| 32 | # obj-m += toggle-tester.o |
| 33 | #obj-m += test-slub.o |
| 34 | #obj-m += test-slub2.o |
| 35 | #obj-m += test-showval.o |
| 36 | #obj-m += cond_call.o |
| 37 | #obj-m += cond_call2.o |
| 38 | # obj-m += test-irq-latency.o |
| 39 | # obj-m += test-kprobes2.o |
| 40 | # obj-m += test-imval.o |
| 41 | #obj-m += test-imval-bug.o |
| 42 | # obj-m += test-imvalw.o |
| 43 | #obj-m += list-mark.o |
| 44 | #obj-m += test-rodata.o |
| 45 | #obj-m += test-tlb.o |
| 46 | #obj-m += test-init.o |
| 47 | #obj-m += probe-example.o |
| 48 | #obj-m += marker-example.o |
| 49 | # obj-m += test-async-tsc.o |
| 50 | #obj-m += test-tsc-sync.o |
| 51 | #obj-m += test-tsc.o |
| 52 | # obj-m += test-hpet.o |
| 53 | #obj-m += test-debugfs.o |
| 54 | # obj-m += test-mod.o |
| 55 | # obj-m += atomic-pIII-cmx.o |
| 56 | #obj-m += test-hotplug.o |
| 57 | #obj-m += rdtsc-smp.o |
| 58 | #obj-m += test-local.o |
| 59 | #obj-m += test-ser.o |
| 60 | # obj-m += test-cmpxchg.o |
| 61 | # obj-m += test-cmpxchg-nolock.o |
| 62 | #obj-m += test-cmpxchg-nolock2.o |
| 63 | #obj-m += test-cmpxchg8b.o |
| 64 | # obj-m += test-spinlock.o |
| 65 | # obj-m += test-inc.o |
| 66 | # obj-m += test-inc-nolock.o |
| 67 | # obj-m += test-kmalloc.o |
| 68 | # obj-m += test-irqdis.o |
| 69 | # obj-m += test-int3.o |
| 70 | #obj-m += test-kprobes.o |
| 71 | #obj-m += test-printk.o |
| 72 | #obj-m += test-debugfs.o |
| 73 | #obj-m += test-mark.o |
| 74 | #obj-m += test-markxmc.o |
| 75 | # obj-m += probe.o |
| 76 | # obj-m += test-irqloop.o |
| 77 | #obj-m += marker-loader.o |
| 78 | #obj-m += test-linuxtrace.o |
| 79 | |
| 80 | CFLAGS_test-mark-instrumented.o += -DFORCE_MARK_JUMP_INLINE |
| 81 | CFLAGS_test-mark.o += -funroll-all-loops |
| 82 | else |
| 83 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build |
| 84 | PWD := $(shell pwd) |
| 85 | KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p') |
| 86 | ifneq ($(INSTALL_MOD_PATH),) |
| 87 | DEPMOD_OPT := -b $(INSTALL_MOD_PATH) |
| 88 | endif |
| 89 | |
| 90 | default: |
| 91 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules |
| 92 | |
| 93 | modules_install: |
| 94 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install |
| 95 | if [ -f $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map ] ; then /sbin/depmod -ae -F $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map $(DEPMOD_OPT) $(KERNELRELEASE) ; fi |
| 96 | |
| 97 | |
| 98 | clean: |
| 99 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean |
| 100 | endif |