Commit | Line | Data |
---|---|---|
693515ee | 1 | ACLOCAL_AMFLAGS = -I config |
89edbbc3 PMF |
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. | |
2b6f8df9 | 8 | SUBDIRS = snprintf liblttng-ust-comm libringbuffer libust include doc tests \ |
40930dac | 9 | libustjava |
15612a0f MD |
10 | |
11 | #temporarily disabled | |
8d8a24c8 | 12 | # . libustinstr-malloc libustfork |
e14a34e0 | 13 | |
3c6eae02 | 14 | EXTRA_DIST = libust.ldscript.in libust-initializer.c libust-initializer.h |
25123621 JB |
15 | |
16 | ldscriptsdir = $(libdir) | |
17 | ldscripts_DATA = libust.so libust-initializer.o | |
18 | ||
7b92d97d | 19 | CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po |
25123621 | 20 | |
25123621 | 21 | libust.so: libust.ldscript.in |
7adb228f | 22 | $(SED) -e $(if $(LIBFORMAT),"s@\@FORMAT\@@$(LIBFORMAT)@","s@.*\@FORMAT\@.*@@") < $< > $@ |
25123621 | 23 | |
ec96d08c PMF |
24 | # It is very important to compile the initializer with PIC otherwise we |
25 | # may get obscure errors when linking to shared libraries. | |
25123621 | 26 | libust-initializer.o: libust-initializer.c |
3c6eae02 | 27 | $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -I$(top_srcdir) -o $@ $< |
4cf459a7 YB |
28 | |
29 | pkgconfigdir = $(libdir)/pkgconfig | |
e26c8207 | 30 | pkgconfig_DATA = ust.pc |