sh: oprofile: Refactor common setup code for multiple driver support.
[linux-2.6.git] / arch / sh / oprofile / Makefile
1 obj-$(CONFIG_OPROFILE) += oprofile.o
2
3 DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
4                 oprof.o cpu_buffer.o buffer_sync.o \
5                 event_buffer.o oprofile_files.o \
6                 oprofilefs.o oprofile_stats.o \
7                 timer_int.o )
8
9 oprofile-y      := $(DRIVER_OBJS) common.o backtrace.o
10
11 oprofile-$(CONFIG_CPU_SUBTYPE_SH7750S)  += op_model_sh7750.o
12 oprofile-$(CONFIG_CPU_SUBTYPE_SH7750)   += op_model_sh7750.o
13 oprofile-$(CONFIG_CPU_SUBTYPE_SH7091)   += op_model_sh7750.o