1## This file is part of GNU Mailutils. 2## Copyright (C) 2001-2021 Free Software Foundation, Inc. 3## 4## GNU Mailutils is free software; you can redistribute it and/or 5## modify it under the terms of the GNU General Public License as 6## published by the Free Software Foundation; either version 3, or (at 7## your option) any later version. 8## 9## GNU Mailutils is distributed in the hope that it will be useful, but 10## WITHOUT ANY WARRANTY; without even the implied warranty of 11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12## General Public License for more details. 13## 14## You should have received a copy of the GNU General Public License 15## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. 16 17SUBDIRS = . etc tests 18bindir = @MH_BIN_DIR@ 19 20bin_PROGRAMS = \ 21 ali\ 22 anno\ 23 burst\ 24 comp\ 25 fmtcheck\ 26 folder\ 27 forw\ 28 inc\ 29 install-mh\ 30 mark\ 31 mhl\ 32 mhn\ 33 mhparam\ 34 mhpath\ 35 mhseq\ 36 msgchk\ 37 pick\ 38 prompter\ 39 refile\ 40 repl\ 41 rmf\ 42 rmm\ 43 scan\ 44 show\ 45 send\ 46 sortm\ 47 whatnow\ 48 whom 49 50prompter_LDADD = $(mh_LIBS) 51 52if MU_COND_READLINE 53 PROMPTER_FUN=prompter-rl.c 54 prompter_LDADD += @READLINE_LIBS@ 55else 56 PROMPTER_FUN=prompter-tty.c 57 prompter_LDADD += @CURSES_LIBS@ 58endif 59 60prompter_SOURCES = \ 61 prompter.c\ 62 prompter.h\ 63 $(PROMPTER_FUN) 64 65noinst_LIBRARIES = libmh.a 66 67libmh_a_SOURCES= \ 68 compcommon.c\ 69 mboxprop.c\ 70 mh_alias_gram.y\ 71 mh_alias_lex.l\ 72 mh_getopt.c\ 73 mh_global.c\ 74 mh_format.c\ 75 mh_init.c\ 76 mh_list.c\ 77 mh_fmtgram.y\ 78 mh_msgset.c\ 79 mh_sequence.c\ 80 mh_stream.c\ 81 mh_whatnow.c\ 82 mh_whom.c\ 83 scanfmt.c\ 84 seqelim.c\ 85 whatnowenv.c 86noinst_HEADERS = mh.h mh_alias_gram.h mh_format.h mh_getopt.h 87 88BUILT_SOURCES=\ 89 mh_fmtgram.c\ 90 pick-gram.c\ 91 pick-gram.h\ 92 mh_alias_gram.c\ 93 mh_alias_gram.h\ 94 mh_alias_lex.c 95 96MAINTAINERCLEANFILES=$(BUILT_SOURCES) 97 98EXTRA_DIST = gylwrap.conf 99 100mhlibdir = $(pkgdatadir)/mh 101 102AM_CPPFLAGS =\ 103 $(MU_APP_COMMON_INCLUDES)\ 104 -D_GNU_SOURCE -DMHLIBDIR=\"$(mhlibdir)\"\ 105 -DMHBINDIR=\"$(bindir)\" 106 107mh_LIBS = \ 108 ./libmh.a\ 109 $(MU_APP_LIBRARIES)\ 110 $(MU_LIB_MAILBOX)\ 111 $(MU_LIB_MAILER)\ 112 $(MU_LIB_AUTH)\ 113 $(MU_AUTHLIBS)\ 114 $(MU_LIB_MAILUTILS)\ 115 $(MU_COMMON_LIBRARIES) 116LDADD = $(mh_LIBS) 117scan_LDADD = $(mh_LIBS) @CURSES_LIBS@ 118pick_SOURCES = pick.c pick.h pick-gram.y pick-gram.h 119 120YLWRAP = $(MU_YLWRAP) 121AM_YFLAGS=-vt 122 123inc_LDADD = \ 124 ./libmh.a\ 125 $(MU_APP_LIBRARIES)\ 126 ../lib/libmuscript.a\ 127 @LIBMU_SCM@ @GUILE_LIBS@\ 128 @LIBMU_SCM_DEPS@\ 129 $(MU_LIB_PY) @PYTHON_LIBS@\ 130 $(MU_LIB_SIEVE)\ 131 $(MU_LIB_MAILBOX)\ 132 $(MU_LIB_MAILER)\ 133 $(MU_LIB_AUTH)\ 134 $(MU_AUTHLIBS)\ 135 $(MU_LIB_MAILUTILS)\ 136 $(MU_COMMON_LIBRARIES) 137 138install-exec-hook: 139 @here=`pwd`; \ 140 cd $(DESTDIR)$(bindir); \ 141 rm -f folders next prev; \ 142 $(LN_S) folder folders; \ 143 $(LN_S) show next; \ 144 $(LN_S) show prev; \ 145 cd $$here 146