1sbin_PROGRAMS = mailestd 2 3mailestd_SOURCES = ../mailestd.c ../mailestctl.c 4mailestd_SOURCES += ../parse.y ../parser.c 5mailestd_SOURCES += ../bytebuf.c 6mailestd_SOURCES += ../bytebuf.h ../defs.h 7mailestd_SOURCES += ../mailestd.h ../mailestd_local.h 8mailestd_SOURCES += ../parser.h ../thread.h 9mailestd_CPPFLAGS = -iquotedir -I$(top_srcdir)/replace -I$(top_srcdir) 10mailestd_LDFLAGS = -L../replace 11mailestd_LDADD = -lreplace 12dist_man_MANS = ../mailestctl.1 ../mailestd.8 ../mailestd.conf.5 13 14if ENABLE_MULTI_THREADS 15mailestd_CPPFLAGS += -DMAILESTD_MT 16endif 17 18if WITH_MONITOR_INOTIFY 19mailestd_CPPFLAGS += -DMONITOR_INOTIFY 20endif 21 22if WITH_MONITOR_KQUEUE 23mailestd_CPPFLAGS += -DMONITOR_KQUEUE 24endif 25 26if WITH_LIBESTDRAFT 27mailestd_CPPFLAGS += -DHAVE_LIBESTDRAFT 28mailestd_LDFLAGS += -L../libestdraft 29mailestd_LDADD += -lestdraft 30endif 31 32bin_SCRIPTS = mew-mailest cmew-mailest smew-mailest 33CLEANFILES = mew-mailest cmew-mailest smew-mailest ../parse.c 34EXTRA_DIST = $(top_srcdir)/mew-mailest.sh 35EXTRA_DIST += $(top_srcdir)/cmew-mailest.sh $(top_srcdir)/smew-mailest.sh 36 37mew-mailest: $(top_srcdir)/mew-mailest.sh 38 cp $(top_srcdir)/mew-mailest.sh mew-mailest 39 chmod +x mew-mailest 40 41cmew-mailest: $(top_srcdir)/cmew-mailest.sh 42 cp $(top_srcdir)/cmew-mailest.sh cmew-mailest 43 chmod +x cmew-mailest 44 45smew-mailest: $(top_srcdir)/smew-mailest.sh 46 cp $(top_srcdir)/smew-mailest.sh smew-mailest 47 chmod +x smew-mailest 48 49install-exec-hook: 50 ln -f $(DESTDIR)$(sbindir)/mailestd$(EXEEXT) \ 51 $(DESTDIR)$(bindir)/mailestctl$(EXEEXT) 52 53install-data-hook: 54 ln -sf mew-mailest.1 $(DESTDIR)$(mandir)/man1/cmew-mailest.1 55 ln -sf mew-mailest.1 $(DESTDIR)$(mandir)/man1/smew-mailest.1 56 57uninstall-hook: 58 rm $(DESTDIR)$(bindir)/mailestctl$(EXEEXT) 59 rm $(DESTDIR)$(mandir)/man1/cmew-mailest.1 60 rm $(DESTDIR)$(mandir)/man1/smew-mailest.1 61