X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=Makefile.am;h=810761ca3b52cd46608dd5e667bc44b0f3f3b6ea;hp=8c4eb65c677564754bf0652720e4505271ad393d;hb=702d1b7d91bc75f4fc01415fc625af1b834ddec4;hpb=9727555f30daf958f4817b28069ad36e871d65e8 diff --git a/Makefile.am b/Makefile.am index 8c4eb65c..810761ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,17 +1,43 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = libust tests libmallocwrap ustd ustctl libinterfork include -EXTRA_DIST = doc libust.ldscript.in libust-initializer.c -dist_bin_SCRIPTS = usttrace +SUBDIRS = . include snprintf libringbuffer liblttng-ust-comm \ + liblttng-ust \ + liblttng-ust-ctl \ + liblttng-ust-fd \ + liblttng-ust-fork \ + liblttng-ust-libc-wrapper \ + liblttng-ust-cyg-profile \ + tools -ldscriptsdir = $(libdir) -ldscripts_DATA = libust.so libust-initializer.o +if HAVE_DLINFO +SUBDIRS += liblttng-ust-dl +endif -CLEANFILES = $(ldscripts_DATA) +if BUILD_JNI_INTERFACE +SUBDIRS += liblttng-ust-java +endif -libust_FORMAT := $(shell case $(shell uname -m) in (i*86) echo elf32-i386 ;; (x86_64) echo elf64-x86-64 ;; (ppc) echo elf32-powerpc ;; (ppc64) echo elf64-powerpc ;; (s390) echo elf32-s390 ;; (s390x) echo elf64-s390 ;; esac) -libust.so: libust.ldscript.in - $(SED) -e "s@\@FORMAT\@@${libust_FORMAT}@" -e "s@\@PATH\@@${libdir}@g" < $< > $@ +if BUILD_JAVA_AGENT +SUBDIRS += liblttng-ust-java-agent +endif -libust-initializer.o: libust-initializer.c - $(CC) $(CFLAGS) -c -I$(top_builddir)/include -o $@ $< +if BUILD_PYTHON_AGENT +SUBDIRS += python-lttngust \ + liblttng-ust-python-agent +endif + +SUBDIRS += tests doc + +#temporarily disabled +# liblttng-ust-malloc + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = lttng-ust.pc + +dist_doc_DATA = README.md ChangeLog + +dist_noinst_DATA = CodingStyle + +check-loop: + cd tests && $(MAKE) $(AM_MAKEFLAGS) check-loop +.PHONY: check-loop