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