1 # NB: GNU Automake Manual, Chapter 8.3.5: Libtool Convenience Libraries
2 # These nine libraries are intermediary build components.
3 SUBDIRS = libavl libicp libshare libspl libtpool libzstd
4 CPPCHECKDIRS = libavl libicp libnvpair libshare libspl libtpool libunicode
5 CPPCHECKDIRS += libuutil libzfs libzfs_core libzfsbootenv libzpool libzutil
12 # libnvpair is installed as part of the final build product
13 # libzutil depends on it, so it must be compiled before libzutil
16 # libzutil depends on libefi if present
17 SUBDIRS += libzutil libunicode
19 # These five libraries, which are installed as the final build product,
20 # incorporate the eight convenience libraries given above.
21 DISTLIBS = libuutil libzfs_core libzfs libzpool libzfsbootenv
22 SUBDIRS += $(DISTLIBS)
25 # An ABI is stored for each of these libraries. Note that libzpool.so
26 # is only linked against by ztest and zdb and no stable ABI is provided.
27 ABILIBS = libnvpair libuutil libzfs_core libzfs libzfsbootenv
29 PHONY = checkabi storeabi cppcheck
31 set -e ; for dir in $(ABILIBS) ; do \
32 $(MAKE) -C $$dir checkabi ; \
36 set -e ; for dir in $(ABILIBS) ; do \
37 $(MAKE) -C $$dir storeabi ; \
40 cppcheck: $(CPPCHECKDIRS)
41 set -e ; for dir in $(CPPCHECKDIRS) ; do \
42 $(MAKE) -C $$dir cppcheck ; \