Skip to contentSkip to conversation

oprofile: tiny makefile tidy

PATCH New John Levon 1 participant 1 message Oct 31, 2002

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 oprofile: tiny makefile tidy

please apply

thanks
john

arch/i386/oprofile/Makefile +1 -5
diff -Naur -X dontdiff linux-linus/arch/i386/oprofile/Makefile linux/arch/i386/oprofile/Makefile
@@ -1,5 +1,3 @@
-vpath %.c = . $(TOPDIR)/drivers/oprofile
-
 obj-$(CONFIG_OPROFILE) += oprofile.o
  
 DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
@@ -9,8 +7,6 @@
  
 oprofile-objs := $(DRIVER_OBJS) init.o timer_int.o
 
-ifdef CONFIG_X86_LOCAL_APIC
-oprofile-objs += nmi_int.o op_model_athlon.o op_model_ppro.o
-endif
+oprofile-$(CONFIG_X86_LOCAL_APIC) += nmi_int.o op_model_athlon.o op_model_ppro.o
  
 include $(TOPDIR)/Rules.make