--- a
+++ b/pe_profiling/Makefile.am
@@ -0,0 +1,22 @@
+LIBS=@LIBERTY_LIBS@ @PFM_LIB@
+if BUILD_FOR_PERF_EVENT
+
+AM_CPPFLAGS = \
+	-I ${top_srcdir}/libutil \
+	-I ${top_srcdir}/libop \
+	-I ${top_srcdir}/libutil++ \
+	-I ${top_srcdir}/libperf_events \
+	@PERF_EVENT_FLAGS@
+
+operf_SOURCES = operf.cpp
+
+AM_CXXFLAGS = @OP_CXXFLAGS@
+bin_PROGRAMS = operf
+operf_LDADD =	../libperf_events/libperf_events.a \
+	../libutil++/libutil++.a \
+	../libdb/libodb.a \
+	../libop/libop.a \
+	../libutil/libutil.a \
+	../libabi/libabi.a
+
+endif