1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006 Simon Josefsson.
4 # This file is part of Shishi.
6 # Shishi is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # Shishi is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Shishi; see the file COPYING. If not, write to the Free
18 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
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
34 if test -n "$(STDINT_H)"; then \
35 cp ../gl/stdint.h shishi-int.h; \
37 echo '#include <stdint.h>' > shishi-int.h; \
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 \
46 kdc.c kdcreq.c kdcrep.c enckdcreppart.c as.c tgs.c \
47 ap.c apreq.c aprep.c encapreppart.c \
49 ticket.c encticketpart.c tkt.c tkts.c tktccache.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 \
61 libshishi_la_SOURCES += crypto-null.c
64 libshishi_la_SOURCES += crypto-md.c
67 libshishi_la_SOURCES += crypto-des.c
70 libshishi_la_SOURCES += crypto-3des.c
73 libshishi_la_SOURCES += crypto-aes.c
76 libshishi_la_SOURCES += crypto-rc4.c
79 libshishi_la_SOURCES += starttls.c starttls.h
81 libshishi_la_LIBADD = ../gl/libgnu.la @LIB_CLOCK_GETTIME@ \
82 @LTLIBGCRYPT@ @LTLIBTASN1@ @LTLIBGNUTLS@ @LTLIBIDN@ \
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
91 kerberos5.c: $(srcdir)/kerberos5.asn1
92 -@ASN1PARSER@ -o $@ -n shishi_asn1_tab $^