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)/module/@OPROFILE_MODULE_ARCH@ -I$(OPROFILE_DIR) -I$(OPROFILE_DIR)/libutil -I$(OPROFILE_DIR)/libop 8 9 # NB: do not add a file here without adding it to EXTRA_DIST in ../Makefile.am 10 11 O_TARGET := oprofile-module.o 12 13 obj-y := compat.o op_init.o op_util.o op_dname.o oprofile.o @OPROFILE_MODULE_ARCH@/arch.o $(OPROFILE_DIR)/libop/libop.a 14 obj-m := $(O_TARGET) 15 O_OBJS := $(obj-y) 16 M_OBJS := $(O_TARGET) 17 18 TOPDIR := $(KSRC) 19 CONFIG_SHELL := TOPDIR=$(KSRC) /bin/bash 20 include $(KSRC)/Rules.make 21 22 # FIXME: deps 23