Add.
[shishi.git] / lib / Makefile.am
blobf682ba7ca3fc1bb3b86aa9812dc47f47d0a33b1f
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Simon Josefsson.
4 # This file is part of Shishi.
6 # Shishi is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # Shishi is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Shishi; if not, see http://www.gnu.org/licenses or write
18 # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
19 # Floor, Boston, MA 02110-1301, USA.
21 INCLUDES = @LIBTASN1_CFLAGS@ -I$(top_srcdir)/gl -I$(top_builddir)/gl
23 DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\" \
24         -DSYSTEMCFGFILE=\"$(CONFDIR)/shishi.conf\" \
25         -DSKELCFGFILE=\"$(SKELDIR)/shishi.skel\" \
26         -DHOSTKEYSFILE=\"$(KEYDIR)/shishi.keys\"
28 BUILT_SOURCES = shishi-int.h kerberos5.c
29 DISTCLEANFILES = shishi-int.h
30 MAINTAINERCLEANFILES = kerberos5.c
31 nodist_include_HEADERS = shishi-int.h
33 shishi-int.h:
34         if test -n "$(STDINT_H)"; then \
35                 cp ../gl/stdint.h shishi-int.h; \
36         else \
37                 echo '#include <stdint.h>' > shishi-int.h; \
38         fi
40 include_HEADERS = shishi.h
41 lib_LTLIBRARIES = libshishi.la
42 libshishi_la_SOURCES = shishi.h.in internal.h \
43         init.c cfg.c cfg.h realm.c principal.c error.c krberror.c \
44         gztime.c diskio.c diskio.h authorize.c pki.c \
45         authenticator.c \
46         kdc.c kdcreq.c kdcrep.c enckdcreppart.c as.c tgs.c \
47         ap.c apreq.c aprep.c encapreppart.c \
48         safe.c priv.c \
49         ticket.c encticketpart.c tkt.c tkts.c tktccache.c \
50         ccache.c ccache.h \
51         netio.c \
52         key.c keys.c keytab.c hostkeys.c \
53         crypto.c crypto.h crypto-ctx.c \
54         asn1.c asn1.h kerberos5.c \
55         version.c password.c \
56         utils.c utils.h resolv.c \
57         kerberos5.asn1 shishi.vers \
58         low-crypto.c
60 if NULL
61 libshishi_la_SOURCES += crypto-null.c
62 endif
63 if MD
64 libshishi_la_SOURCES += crypto-md.c
65 endif
66 if DES
67 libshishi_la_SOURCES += crypto-des.c
68 endif
69 if DES3
70 libshishi_la_SOURCES += crypto-3des.c
71 endif
72 if AES
73 libshishi_la_SOURCES += crypto-aes.c
74 endif
75 if ARCFOUR
76 libshishi_la_SOURCES += crypto-rc4.c
77 endif
78 if STARTTLS
79 libshishi_la_SOURCES += starttls.c starttls.h
80 endif
81 libshishi_la_LIBADD = ../gl/libgnu.la @LIB_CLOCK_GETTIME@       \
82         @LTLIBGCRYPT@ @LTLIBTASN1@ @LTLIBGNUTLS@ @LTLIBIDN@     \
83         @LTLIBINTL@
84 libshishi_la_LDFLAGS = -no-undefined \
85         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
87 if HAVE_LD_VERSION_SCRIPT
88   libshishi_la_LDFLAGS += -Wl,--version-script=$(srcdir)/shishi.vers
89 endif
91 kerberos5.c: $(srcdir)/kerberos5.asn1
92         -@ASN1PARSER@ -o $@ -n shishi_asn1_tab $^