blob: ce3b119021e78cc527c47425f427475c3a4c238e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001obj-$(CONFIG_OPROFILE) += oprofile.o
2
Paul Mundt2e4f17d2010-10-13 03:46:25 +09003CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005DRIVER_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 Fleming86c8c042010-09-10 20:36:23 +010011ifeq ($(CONFIG_HW_PERF_EVENTS),y)
12DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
13endif
14
Paul Mundt60a51fb2008-12-16 09:33:53 +090015oprofile-y := $(DRIVER_OBJS) common.o backtrace.o