4 # Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6 # Copyright (C) 2000 Pekka Riikonen
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.
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.
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
22 noinst_LIBRARIES = libsilcsim.a
27 libsilcsim_a_SOURCES = \
31 SIM_CFLAGS = -fPIC -shared
33 SIM_MODULES_DIR = modules
38 # SILC Ciphers to be compiled as modules
51 # SILC Hash Functions to be compiled as modules
58 all: $(SIM_CIPHER_OBJS) $(SIM_HASH_OBJS)
61 $(SIM_CIPHER_OBJS): ../silccrypt/libsilccrypt.a
63 $(LN_S) $(srcdir)/../silccrypt/$*.c
64 $(COMPILE) $(SIM_CFLAGS) $*.c -o $(SIM_MODULES_DIR)/$*.sim.so
65 $(LN_S) $(srcdir)/$(SIM_MODULES_DIR)/$*.sim.so $*.o
68 $(SIM_HASH_OBJS): ../silccrypt/libsilccrypt.a
70 $(LN_S) $(srcdir)/../silccrypt/$*.c
71 $(COMPILE) $(SIM_CFLAGS) $*.c -o $(SIM_MODULES_DIR)/$*.sim.so
72 $(LN_S) $(srcdir)/$(SIM_MODULES_DIR)/$*.sim.so $*.o
75 CLEANFILES = $(SIM_MODULES_DIR)/*.sim.so
79 INCLUDES = -I. -I.. -I../silccrypt -I../silcmath -I../silcske \
80 -I../silccore -I../.. -I../silcutil -I../../includes \
81 -I../silcmath/gmp -I../trq