Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | obj-$(CONFIG_OPROFILE) += oprofile.o |
| 2 | |
Paul Mundt | 2e4f17d | 2010-10-13 03:46:25 +0900 | [diff] [blame] | 3 | CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' |
| 4 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ |
| 6 | oprof.o cpu_buffer.o buffer_sync.o \ |
| 7 | event_buffer.o oprofile_files.o \ |
| 8 | oprofilefs.o oprofile_stats.o \ |
| 9 | timer_int.o ) |
| 10 | |
Matt Fleming | 86c8c04 | 2010-09-10 20:36:23 +0100 | [diff] [blame] | 11 | ifeq ($(CONFIG_HW_PERF_EVENTS),y) |
| 12 | DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o) |
| 13 | endif |
| 14 | |
Paul Mundt | 60a51fb | 2008-12-16 09:33:53 +0900 | [diff] [blame] | 15 | oprofile-y := $(DRIVER_OBJS) common.o backtrace.o |