Bug fix.
[kvmfornfv.git] / kernel / arch / sh / oprofile / Makefile
1 obj-$(CONFIG_OPROFILE) += oprofile.o
2
3 CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
4
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
11 ifeq ($(CONFIG_HW_PERF_EVENTS),y)
12 DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
13 endif
14
15 oprofile-y      := $(DRIVER_OBJS) common.o backtrace.o