1include $(top_srcdir)/config/Rules.am 2include $(top_srcdir)/config/Shellcheck.am 3 4AM_CFLAGS += $(LIBUDEV_CFLAGS) $(LIBUUID_CFLAGS) 5 6SUBDIRS = zed.d 7SHELLCHECKDIRS = $(SUBDIRS) 8 9sbin_PROGRAMS = zed 10 11ZED_SRC = \ 12 zed.c \ 13 zed.h \ 14 zed_conf.c \ 15 zed_conf.h \ 16 zed_disk_event.c \ 17 zed_disk_event.h \ 18 zed_event.c \ 19 zed_event.h \ 20 zed_exec.c \ 21 zed_exec.h \ 22 zed_file.c \ 23 zed_file.h \ 24 zed_log.c \ 25 zed_log.h \ 26 zed_strings.c \ 27 zed_strings.h 28 29FMA_SRC = \ 30 agents/zfs_agents.c \ 31 agents/zfs_agents.h \ 32 agents/zfs_diagnosis.c \ 33 agents/zfs_mod.c \ 34 agents/zfs_retire.c \ 35 agents/fmd_api.c \ 36 agents/fmd_api.h \ 37 agents/fmd_serd.c \ 38 agents/fmd_serd.h 39 40zed_SOURCES = $(ZED_SRC) $(FMA_SRC) 41 42zed_LDADD = \ 43 $(abs_top_builddir)/lib/libzfs/libzfs.la \ 44 $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \ 45 $(abs_top_builddir)/lib/libnvpair/libnvpair.la \ 46 $(abs_top_builddir)/lib/libuutil/libuutil.la 47 48zed_LDADD += -lrt $(LIBATOMIC_LIBS) $(LIBUDEV_LIBS) $(LIBUUID_LIBS) 49zed_LDFLAGS = -pthread 50 51EXTRA_DIST = agents/README.md 52 53include $(top_srcdir)/config/CppCheck.am 54