[PATCH intel-gpu-tools 2/6] Benchmark: simplify makefile
Gaetan Nadon
memsize at videotron.ca
Fri Jan 6 07:52:37 PST 2012
AM_* and LDAAD applies to all targets
libintel_tools.la is located in builddir, not srcdir.
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
benchmarks/Makefile.am | 29 ++++++++---------------------
1 files changed, 8 insertions(+), 21 deletions(-)
diff --git a/benchmarks/Makefile.am b/benchmarks/Makefile.am
index bc0a533..a80a2f6 100644
--- a/benchmarks/Makefile.am
+++ b/benchmarks/Makefile.am
@@ -1,23 +1,10 @@
-NULL=#
-bin_PROGRAMS = $(NULL)
+bin_PROGRAMS = \
+ intel_upload_blit_large \
+ intel_upload_blit_large_gtt \
+ intel_upload_blit_large_map \
+ intel_upload_blit_small
-bin_PROGRAMS += \
- intel_upload_blit_large \
- intel_upload_blit_large_gtt \
- intel_upload_blit_large_map \
- intel_upload_blit_small \
- $(NULL)
-
-BENCHMARK_LIBS = \
- ../lib/libintel_tools.la \
- $(DRM_LIBS)
-
-intel_upload_blit_large_LDADD = $(BENCHMARK_LIBS)
-intel_upload_blit_large_gtt_LDADD = $(BENCHMARK_LIBS)
-intel_upload_blit_large_map_LDADD = $(BENCHMARK_LIBS)
-intel_upload_blit_small_LDADD = $(BENCHMARK_LIBS)
-
-AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
- -I$(srcdir)/.. \
- -I$(srcdir)/../lib
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib
+AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS)
+LDADD = $(top_builddir)/lib/libintel_tools.la $(DRM_LIBS)
--
1.7.5.4
More information about the xorg-devel
mailing list