Commit 1b7f1161 authored by Brice Videau's avatar Brice Videau
Browse files

Fix make distcheck.

parent 0582f9f2
Pipeline #12953 failed with stage
......@@ -18,6 +18,8 @@ AM_PROG_AR
LT_INIT([disable-static])
# Checks for programs.
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_CXX
AC_PROG_CC
if test -z "$RUBY"; then
......
......@@ -118,6 +118,7 @@ MODIFIED_CUDA_HDR = \
modified_include/cuda.h: $(CUDA_HDR) $(srcdir)/headers.patch
$(RM) -r modified_include/
cp -r $(srcdir)/include/ modified_include/
chmod -R u+w modified_include/
cat $(srcdir)/headers.patch | patch -i - -d modified_include/ -s -p1
$(MODIFIED_CUDA_EXTRA_HDR): modified_include/cuda.h
......@@ -228,16 +229,19 @@ libTracerCUDART_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread $(LIBFFI_LIBS)
libTracerCUDART_la_LDFLAGS += -version-number 11:0:3
libTracerCUDART_la_LIBADD = libcudarttracepoints.la
install-exec-hook::
mkdir -p $(pkglibdir)
mkdir -p $(pkglibdir)/cuda
mkdir -p $(pkglibdir)/cudart
$(RM) $(pkglibdir)/cudart/libcudart.so.11.0 $(pkglibdir)/cudart/libcudart.so
$(RM) $(pkglibdir)/cuda/libcuda.so.1 $(pkglibdir)/cuda/libcuda.so
ln -s $(libdir)/libTracerCUDART.so.11.0.3 $(pkglibdir)/cudart/libcudart.so.11.0
ln -s $(pkglibdir)/cudart/libcudart.so.11.0 $(pkglibdir)/cudart/libcudart.so
ln -s $(libdir)/libTracerCUDA.so.1.0.0 $(pkglibdir)/cuda/libcuda.so.1
ln -s $(pkglibdir)/cuda/libcuda.so.1 $(pkglibdir)/cuda/libcuda.so
install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/cudart
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/cuda
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerCUDART.so.11.0.3 $(DESTDIR)$(pkglibdir)/cudart/libcudart.so.11.0
$(LN_S) -f $(DESTDIR)$(pkglibdir)/cudart/libcudart.so.11.0 $(DESTDIR)$(pkglibdir)/cudart/libcudart.so
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerCUDA.so.1.0.0 $(DESTDIR)$(pkglibdir)/cuda/libcuda.so.1
$(LN_S) -f $(DESTDIR)$(pkglibdir)/cuda/libcuda.so.1 $(DESTDIR)$(pkglibdir)/cuda/libcuda.so
uninstall-hook:
$(RM) -f $(DESTDIR)$(pkglibdir)/cudart/libcudart.so.11.0 $(DESTDIR)$(pkglibdir)/cudart/libcudart.so
$(RM) -f $(DESTDIR)$(pkglibdir)/cuda/libcuda.so.1 $(DESTDIR)$(pkglibdir)/cuda/libcuda.so
-rmdir $(DESTDIR)$(pkglibdir)/cudart
-rmdir $(DESTDIR)$(pkglibdir)/cuda
CUDA_LIB_GEN = \
$(srcdir)/gen_cuda_library_base.rb \
......
......@@ -111,11 +111,14 @@ libTracerOpenCL_la_LDFLAGS += -Wl,--version-script,$(srcdir)/tracer_opencl.map -
libTracerOpenCL_la_DEPENDS = $(srcdir)/tracer_opencl.map
libTracerOpenCL_la_LIBADD = libtracepoints.la
install-exec-hook::
mkdir -p $(pkglibdir)/opencl
$(RM) $(pkglibdir)/opencl/libOpenCL.so.1 $(pkglibdir)/opencl/libOpenCL.so
ln -s $(libdir)/libTracerOpenCL.so.1.0.0 $(pkglibdir)/opencl/libOpenCL.so.1
ln -s $(pkglibdir)/opencl/libOpenCL.so.1 $(pkglibdir)/opencl/libOpenCL.so
install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/opencl
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerOpenCL.so.1.0.0 $(DESTDIR)$(pkglibdir)/opencl/libOpenCL.so.1
$(LN_S) -f $(DESTDIR)$(pkglibdir)/opencl/libOpenCL.so.1 $(DESTDIR)$(pkglibdir)/opencl/libOpenCL.so
uninstall-hook:
$(RM) -f $(DESTDIR)$(pkglibdir)/opencl/libOpenCL.so.1 $(DESTDIR)$(pkglibdir)/opencl/libOpenCL.so
-rmdir $(DESTDIR)$(pkglibdir)/opencl
clprof.c: $(srcdir)/clprof_callbacks.cpp.erb $(srcdir)/clprof_callbacks.h.erb $(srcdir)/clprof.c.erb $(srcdir)/gen_clprof.rb opencl_model.yaml babeltrace_cl_callbacks.h tracer_opencl.h
SRC_DIR=$(srcdir) $(RUBY) $(srcdir)/gen_clprof.rb production
......@@ -284,4 +287,5 @@ CLEANFILES = \
clprof_callbacks.h \
testing_clprof.c \
testing_clprof_callbacks.cpp \
testing_clprof_callbacks.h
testing_clprof_callbacks.h \
clprof.sh
......@@ -280,9 +280,6 @@ $l_test = l_test_d.map{ | d | Test_clprof.new(d) }
if $sink_type == 'dust'
write_file_via_template('dust.c')
elsif $sink_type == 'production' or $sink_type == 'testing'
if $sink_type == 'testing'
$l_test.each{ | test | File.write(test.path, test.dust) }
end
$l_file_generated.each{ |f|
write_file_via_template(f, $sink_type == 'testing' )
}
......
......@@ -3,3 +3,5 @@ bin_SCRIPTS = iprof
iprof: $(top_builddir)/utils/xprof.sh.erb
$(ERB) -T 1 languages=["opencl","ze"] $(top_builddir)/utils/xprof.sh.erb > $@
chmod a+x $@
CLEANFILES = iprof
......@@ -102,6 +102,7 @@ MODIFIED_ZE_HDR = \
modified_include/ze_api.h: $(ZE_HDR) $(srcdir)/headers.patch
$(RM) -r modified_include/
cp -r $(srcdir)/include/ modified_include/
chmod -R u+w modified_include/
cat $(srcdir)/headers.patch | patch -i - -d modified_include/ -s -p1
$(MODIFIED_ZE_EXTRA_HDR): modified_include/ze_api.h
......@@ -171,6 +172,8 @@ zeprof.sh: $(top_builddir)/utils/xprof.sh.erb
$(ERB) -T 1 languages=["ze"] $(top_builddir)/utils/xprof.sh.erb > $@
chmod a+x $@
CLEANFILES += zeprof.sh
BUILT_SOURCES = $(ZE_PROBES_INCL) $(ZE_STATIC_PROBES_INCL) babeltrace_ze_callbacks.h
tracer_ze.c: $(srcdir)/gen_ze.rb $(srcdir)/tracer_ze_helpers.include.c $(ZE_MODEL) $(ZE_PROBES_INCL) $(ZE_STATIC_PROBES_INCL)
......@@ -205,11 +208,14 @@ libTracerZE_la_CFLAGS = -Wall -Wextra -Werror $(LIBFFI_CFLAGS) $(LTTNG_UST_CFLAG
libTracerZE_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread $(LIBFFI_LIBS)
libTracerZE_la_LIBADD = libzetracepoints.la
install-exec-hook::
mkdir -p $(pkglibdir)/ze
$(RM) $(pkglibdir)/ze/libze_loader.so.1 $(pkglibdir)/ze/libze_loader.so
ln -s $(libdir)/libTracerZE.so.0.0.0 $(pkglibdir)/ze/libze_loader.so.1
ln -s $(pkglibdir)/ze/libze_loader.so.1 $(pkglibdir)/ze/libze_loader.so
install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/ze
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerZE.so.0.0.0 $(DESTDIR)$(pkglibdir)/ze/libze_loader.so.1
$(LN_S) -f $(DESTDIR)$(pkglibdir)/ze/libze_loader.so.1 $(DESTDIR)$(pkglibdir)/ze/libze_loader.so
uninstall-hook:
$(RM) -f $(DESTDIR)$(pkglibdir)/ze/libze_loader.so.1 $(DESTDIR)$(pkglibdir)/ze/libze_loader.so
-rmdir $(DESTDIR)$(pkglibdir)/ze
ZEPROF = \
$(srcdir)/zeprof_callbacks.cpp.erb \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment