9aa48f93871c21904dc5a9c704641bba44acefa5
[silc.git] / lib / silcsim / Makefile.am
1 #
2 #  Makefile.am
3 #
4 #  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
5 #
6 #  Copyright (C) 2000 Pekka Riikonen
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
20
21 if SILC_SIM
22 noinst_LTLIBRARIES = libsilcsim.la
23 else
24 noinst_LTLIBRARIES = 
25 endif
26
27 libsilcsim_la_SOURCES = \
28         silcsim.c \
29         silcsimutil.c
30
31 #
32 # SILC Ciphers to be compiled as modules
33 #
34 SIM_CIPHER_OBJS = \
35         none.o \
36         blowfish.o \
37         rc5.o \
38         rc6.o \
39         mars.o \
40         aes.o \
41         rsa.o \
42         twofish.o \
43         cast.o
44
45 #
46 # SILC Hash Functions to be compiled as modules
47 #
48 SIM_HASH_OBJS = \
49         md5.o \
50         sha1.o
51
52 if SILC_SIM
53 all: $(SIM_CIPHER_OBJS) $(SIM_HASH_OBJS)
54 endif
55
56 $(SIM_CIPHER_OBJS):
57         @if test '!' -f lib$*.la ; then \
58           $(LIBTOOL) --mode=link $(CCLD) -rpath $(silc_modulesdir) \
59                 ../silccrypt/$*.lo -o lib$*.la; \
60           cd $(srcdir) && $(LN_S) -f $(srcdir)/.libs/lib$*.so \
61                 $(srcdir)/$*.sim.so; \
62         fi
63
64 $(SIM_HASH_OBJS):
65         @if test '!' -f lib$*.la ; then \
66           $(LIBTOOL) --mode=link $(CCLD) -rpath $(silc_modulesdir) \
67                 ../silccrypt/$*.lo -o lib$*.la; \
68           cd $(srcdir) && $(LN_S) -f $(srcdir)/.libs/lib$*.so \
69                 $(srcdir)/$*.sim.so; \
70         fi
71
72 CLEANFILES = *.sim.so *.la
73
74 if SILC_DIST_TOOLKIT
75 include_HEADERS = silcsim.h silcsimutil.h
76 endif
77
78 EXTRA_DIST = *.h
79
80 include $(top_srcdir)/Makefile.defines.in