Commit | Line | Data |
---|---|---|
e14a34e0 | 1 | ACLOCAL_AMFLAGS = -I m4 |
93d0f2ea | 2 | SUBDIRS = libust tests libmallocwrap ustd ustctl libinterfork include |
e14a34e0 | 3 | |
25123621 | 4 | EXTRA_DIST = doc libust.ldscript.in libust-initializer.c |
5f118a1c | 5 | dist_bin_SCRIPTS = usttrace |
25123621 JB |
6 | |
7 | ldscriptsdir = $(libdir) | |
8 | ldscripts_DATA = libust.so libust-initializer.o | |
9 | ||
10 | CLEANFILES = $(ldscripts_DATA) | |
11 | ||
12 | 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) | |
13 | libust.so: libust.ldscript.in | |
14 | $(SED) -e "s@\@FORMAT\@@${libust_FORMAT}@" -e "s@\@PATH\@@${libdir}@g" < $< > $@ | |
15 | ||
16 | libust-initializer.o: libust-initializer.c | |
9727555f | 17 | $(CC) $(CFLAGS) -c -I$(top_builddir)/include -o $@ $< |