1 OPROFILE_DIR=@OPROFILE_DIR@ 2 VERSION=@VERSION@ 3 KVERS=@KVERS@ 4 KSRC=@KSRC@ 5 6 EXTRA_CFLAGS=@EXTRA_CFLAGS_MODULE@ -D__NO_VERSION__ \ 7 -I$(OPROFILE_DIR)/ -I$(OPROFILE_DIR)/libutil -I$(OPROFILE_DIR)/libop -I$(OPROFILE_DIR)/module 8 9 USE_STANDARD_AS_RULE=1 10 11 # NB: do not add a file here without adding it to EXTRA_DIST in ../Makefile.am 12 13 O_TARGET := arch.o 14 15 obj-y := cpu_type.o op_apic.o op_fixmap.o op_rtc.o op_nmi.o \ 16 op_model_ppro.o op_model_athlon.o op_model_p4.o 17 18 obj-y += oprofile_nmi.o op_syscalls.o 19 20 obj-m := $(O_TARGET) 21 O_OBJS := $(obj-y) 22 M_OBJS := $(O_TARGET) 23 24 TOPDIR := $(KSRC) 25 CONFIG_SHELL := TOPDIR=$(KSRC) /bin/bash 26 include $(KSRC)/Rules.make 27 28 # FIXME: dependencies 29