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. | |
9dc7b7ff | 8 | SUBDIRS = snprintf libustcomm libustcmd libust . tests libustinstr-malloc libustconsumer ust-consumerd ustctl libustfork include doc |
e14a34e0 | 9 | |
3c6eae02 | 10 | EXTRA_DIST = libust.ldscript.in libust-initializer.c libust-initializer.h |
5f118a1c | 11 | dist_bin_SCRIPTS = usttrace |
25123621 JB |
12 | |
13 | ldscriptsdir = $(libdir) | |
14 | ldscripts_DATA = libust.so libust-initializer.o | |
15 | ||
7b92d97d | 16 | CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po |
25123621 | 17 | |
25123621 | 18 | libust.so: libust.ldscript.in |
23ae9ca8 | 19 | $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@ |
25123621 | 20 | |
ec96d08c PMF |
21 | # It is very important to compile the initializer with PIC otherwise we |
22 | # may get obscure errors when linking to shared libraries. | |
25123621 | 23 | libust-initializer.o: libust-initializer.c |
3c6eae02 | 24 | $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -I$(top_srcdir) -o $@ $< |