Fix java build
[lttng-ust.git] / Makefile.am
... / ...
CommitLineData
1ACLOCAL_AMFLAGS = -I config
2
3# The order here is tricky. SUBDIRS applies both to compilation and
4# installation. Programs depending on the libs must be built after
5# libust and '.' (that contains the linker script). However, '.'
6# must be installed after libust so it can overwrite libust.so with
7# the linker script.
8SUBDIRS = snprintf liblttng-ust-comm libringbuffer libust include doc tests \
9 libustjava
10
11#temporarily disabled
12# . libustinstr-malloc libustfork
13
14EXTRA_DIST = libust.ldscript.in libust-initializer.c libust-initializer.h
15
16ldscriptsdir = $(libdir)
17ldscripts_DATA = libust.so libust-initializer.o
18
19CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
20
21libust.so: libust.ldscript.in
22 $(SED) -e $(if $(LIBFORMAT),"s@\@FORMAT\@@$(LIBFORMAT)@","s@.*\@FORMAT\@.*@@") < $< > $@
23
24# It is very important to compile the initializer with PIC otherwise we
25# may get obscure errors when linking to shared libraries.
26libust-initializer.o: libust-initializer.c
27 $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -I$(top_srcdir) -o $@ $<
28
29pkgconfigdir = $(libdir)/pkgconfig
30pkgconfig_DATA = ust.pc
This page took 0.022619 seconds and 4 git commands to generate.