1## Process this file with automake to produce Makefile.in
2## Use aclocal -I m4; automake
3
4# ========================================================================
5# Copyright 2006-2008 University of Washington
6#
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11#     http://www.apache.org/licenses/LICENSE-2.0
12#
13# ========================================================================
14
15EXTRA_DIST = config.rpath VERSION README LICENSE
16
17SUBDIRS = m4 po $(REGEX_BUILD) pith pico alpine $(WEB_PUBCOOKIE_BUILD) $(WEB_BUILD)
18
19BUILT_SOURCES = c-client.d c-client $(WEB_PUBCOOKIE_LINK)
20
21CLEANFILES = c-client
22
23.PHONY: c-client.d c-client gssapi_proxy.l
24
25c-client.d:
26	if test ! -L c-client ; then $(LN_S) imap/c-client c-client ; fi
27
28c-client:
29	$(C_CLIENT_WITH_IPV6)
30	cd imap && $(MAKE) $(C_CLIENT_TARGET) $(C_CLIENT_CFLAGS) $(C_CLIENT_LDFLAGS) $(C_CLIENT_GCCOPTLEVEL) EXTRAAUTHENTICATORS="$(C_CLIENT_AUTHS)" EXTRASPECIALS="$(C_CLIENT_SPECIALS)" BUNDLED="$(C_CLIENT_BUNDLED)"
31
32gssapi_proxy.l:
33	if test ! -L c-client/auth_gss_proxy.c ; then $(LN_S) @abs_top_srcdir@/web/src/pubcookie/auth_gss_proxy.c c-client/auth_gss_proxy.c ; fi
34
35clean-local:
36	cd imap && $(MAKE) clean
37
38man_MANS = doc/man1/alpine.1 doc/man1/pico.1 doc/man1/pilot.1 doc/man1/rpdump.1 doc/man1/rpload.1
39
40ACLOCAL_AMFLAGS = --install -I m4
41
42install-exec-local:
43	cd imap && $(MAKE) install-mailutil BUNDLED="$(C_CLIENT_BUNDLED)" DESTDIR="$(DESTDIR)" bindir="$(bindir)" mandir="$(mandir)"
44
45uninstall-local:
46	cd imap && $(MAKE) uninstall-mailutil BUNDLED="$(C_CLIENT_BUNDLED)" DESTDIR="$(DESTDIR)" bindir="$(bindir)" mandir="$(mandir)"
47