Add LIBTASN1_CFLAGS.
[shishi.git] / lib / Makefile.am
blob20cef016cb7a59c221f2139a8f5bee98b1013b1a
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003 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)
9 # any later version.
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
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
21 INCLUDES = -I$(top_srcdir)/gl -I$(top_srcdir)/asn1 \
22         @LIBGCRYPT_CFLAGS@ @CRYPTO_CFLAGS@ @LIBGNUTLS_CFLAGS@
24 DEFS = -DLOCALEDIR=\"$(localedir)\" \
25         -DSYSTEMCFGFILE=\"$(sysconfdir)/shishi.conf\" \
26         -DSKELCFGFILE=\"$(pkgdatadir)/shishi.skel\" \
27         -DHOSTKEYSFILE=\"$(sysconfdir)/shishi.keys\" \
28         -DDMALLOC_FUNC_CHECK \
29         @DEFS@
31 BUILT_SOURCES = shishi-int.h kerberos5.c
32 DISTCLEANFILES = shishi-int.h
33 MAINTAINERCLEANFILES = kerberos5.c
34 nodist_include_HEADERS = shishi-int.h
36 include_HEADERS = shishi.h
37 lib_LTLIBRARIES = libshishi.la
38 libshishi_la_SOURCES = internal.h \
39         init.c cfg.c realm.c principal.c error.c krberror.c \
40         gztime.c diskio.c \
41         authenticator.c \
42         kdc.c kdcreq.c kdcrep.c enckdcreppart.c as.c tgs.c \
43         ap.c apreq.c aprep.c encapreppart.c \
44         safe.c priv.c \
45         ticket.c encticketpart.c tkt.c tkts.c \
46         netio.c key.c keys.c hostkeys.c crypto.c crypto.h \
47         asn1.c kerberos5.asn1 kerberos5.c \
48         version.c password.c \
49         utils.c resolv.c
50 if NULL
51 libshishi_la_SOURCES += crypto-null.c
52 endif
53 if MD
54 libshishi_la_SOURCES += crypto-md.c
55 endif
56 if DES
57 libshishi_la_SOURCES += crypto-des.c
58 endif
59 if DES3
60 libshishi_la_SOURCES += crypto-3des.c
61 endif
62 if AES
63 libshishi_la_SOURCES += crypto-aes.c
64 endif
65 if ARCFOUR
66 libshishi_la_SOURCES += crypto-rc4.c
67 endif
68 if NETTLE
69 libshishi_la_SOURCES += nettle.c
70 endif
71 if LIBGCRYPT
72 libshishi_la_SOURCES += libgcrypt.c
73 endif
74 libshishi_la_LIBADD = @LIBGCRYPT_LIBS@ @CRYPTO_LIBS@ \
75         @LTLIBINTL@ ../gl/libfoo.la @LIBTASN1_LIBS@ @LIBGNUTLS_LIBS@
76 libshishi_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
78 kerberos5.c: $(srcdir)/kerberos5.asn1
79         -@ASN1PARSER@ -o $@ -n shishi_asn1_tab $^
81 indent:
82         indent $(SOURCES) crypto-*.c nettle.c libgcrypt.c shishi.h.in