--- /dev/null
+#
+# Makefile.ad
+#
+# Author: Pekka Riikonen <priikone@silcnet.org>
+#
+# Copyright (C) 2000 - 2005 Pekka Riikonen
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
+
+if SILC_SIM
+noinst_LTLIBRARIES = libsilcsim.la
+else
+noinst_LTLIBRARIES =
+endif
+
+libsilcsim_la_SOURCES = \
+ silcsim.c \
+ silcsimutil.c
+
+#
+# SILC Ciphers to be compiled as modules
+#
+SIM_CIPHER_OBJS = \
+ none.o \
+ blowfish.o \
+ rc5.o \
+ aes.o \
+ rsa.o \
+ twofish.o \
+ cast.o
+
+#
+# SILC Hash Functions to be compiled as modules
+#
+SIM_HASH_OBJS = \
+ md5.o \
+ sha1.o
+
+if SILC_SIM
+all: $(SIM_CIPHER_OBJS) $(SIM_HASH_OBJS)
+endif
+
+if SILC_LIBTOOLFIX
+LTFLAGS = --libtool-enable-shared
+else
+LTFLAGS =
+endif
+
+$(SIM_CIPHER_OBJS):
+ @if test '!' -f lib$*.la ; then \
+ $(LIBTOOL) --mode=link $(CCLD) -rpath $(silc_modulesdir) \
+ ../silccrypt/$*.lo -o lib$*.la $(LTFLAGS); \
+ cd $(srcdir) && $(LN_S) -f $(srcdir)/.libs/lib$*.so \
+ $(srcdir)/$*.sim.so; \
+ fi
+
+$(SIM_HASH_OBJS):
+ @if test '!' -f lib$*.la ; then \
+ $(LIBTOOL) --mode=link $(CCLD) -rpath $(silc_modulesdir) \
+ ../silccrypt/$*.lo -o lib$*.la $(LTFLAGS); \
+ cd $(srcdir) && $(LN_S) -f $(srcdir)/.libs/lib$*.so \
+ $(srcdir)/$*.sim.so; \
+ fi
+
+CLEANFILES = *.sim.so *.la
+
+#ifdef SILC_DIST_TOOLKIT
+include_HEADERS = silcsim.h silcsimutil.h
+#endif SILC_DIST_TOOLKIT
+
+EXTRA_DIST = *.h
+
+include $(top_srcdir)/Makefile.defines.in