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