# # Makefile.am # # Author: Pekka Riikonen # # Copyright (C) 2000 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; either version 2 of the License, or # (at your option) any later version. # # 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 noinst_LIBRARIES = libsilcsim.a libsilcsim_a_SOURCES = \ silcsim.c \ silcsimutil.c SIM_CFLAGS = -fPIC -shared SIM_MODULES_DIR = modules SUBDIRS = modules # # SILC Ciphers to be compiled as modules # SIM_CIPHER_OBJS = \ none.o \ blowfish.o \ rc5.o \ rc6.o \ mars.o \ rijndael.o \ rsa.o \ twofish.o # # SILC Hash Functions to be compiled as modules # SIM_HASH_OBJS = \ md5.o \ sha1.o all: $(SIM_CIPHER_OBJS) $(SIM_HASH_OBJS) $(SIM_CIPHER_OBJS): ../silccrypt/libsilccrypt.a rm -rf $*.c $*.o $(LN_S) $(srcdir)/../silccrypt/$*.c $(COMPILE) $(SIM_CFLAGS) $*.c -o $(SIM_MODULES_DIR)/$*.sim.so $(LN_S) $(srcdir)/$(SIM_MODULES_DIR)/$*.sim.so $*.o rm -rf $*.c $(SIM_HASH_OBJS): ../silccrypt/libsilccrypt.a rm -rf $*.c $*.o $(LN_S) $(srcdir)/../silccrypt/$*.c $(COMPILE) $(SIM_CFLAGS) $*.c -o $(SIM_MODULES_DIR)/$*.sim.so $(LN_S) $(srcdir)/$(SIM_MODULES_DIR)/$*.sim.so $*.o rm -rf $*.c CLEANFILES = $(SIM_MODULES_DIR)/*.sim.so EXTRA_DIST = *.h INCLUDES = -I. -I.. -I../silccrypt -I../silcmath -I../silcske \ -I../silccore -I../.. -I../../includes \ -I../silcmath/gmp-3.0.1