1## Process this file with automake to produce Makefile.in 2# Copyright (C) 1992, 1999, 2000, 2002 Free Software Foundation, Inc. 3# 4# This file is part of Libgcrypt. 5# 6# Libgcrypt is free software; you can redistribute it and/or modify 7# it under the terms of the GNU Lesser General Public License as 8# published by the Free Software Foundation; either version 2.1 of 9# the License, or (at your option) any later version. 10# 11# Libgcrypt 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 Lesser General Public License for more details. 15# 16# You should have received a copy of the GNU Lesser General Public 17# License along with this program; if not, write to the Free Software 18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 20# 1.5 leads to a combinatorial explosion due to all the conditionals 21# I was not able to build it with 64Megs - 1.6 fixes this. 22# not anymore required: AUTOMAKE_OPTIONS = 1.6 23 24# Need to include ../src in addition to top_srcdir because gcrypt.h is 25# a built header. 26AM_CPPFLAGS = -I../src -I$(top_srcdir)/src 27AM_CFLAGS = $(GPG_ERROR_CFLAGS) 28 29AM_ASFLAGS = $(MPI_SFLAGS) 30AM_CCASFLAGS = $(NOEXECSTACK_FLAGS) 31 32EXTRA_DIST = Manifest config.links 33DISTCLEANFILES = mpi-asm-defs.h \ 34 mpih-add1-asm.S mpih-mul1-asm.S mpih-mul2-asm.S mpih-mul3-asm.S \ 35 mpih-lshift-asm.S mpih-rshift-asm.S mpih-sub1-asm.S asm-syntax.h \ 36 mpih-add1.c mpih-mul1.c mpih-mul2.c mpih-mul3.c \ 37 mpih-lshift.c mpih-rshift.c mpih-sub1.c \ 38 sysdep.h mod-source-info.h 39 40# Beware: The following list is not a comment but grepped by 41# config.links to get the list of symlinked modules 42# Optional modules are marked with an O in the second column. 43#BEGIN_ASM_LIST 44# mpih-add1 C 45# mpih-sub1 C 46# mpih-mul1 C 47# mpih-mul2 C 48# mpih-mul3 C 49# mpih-lshift C 50# mpih-rshift C 51# udiv O 52# udiv-qrnnd O 53#END_ASM_LIST 54 55# Note: This function has not yet been implemented. There is only a dummy in 56# generic/ 57# udiv-w-sdiv O 58 59# And we need to have conditionals for all modules because 60# we don't know whether they are .c or .S. Very ugly; I know. 61# Remember to define them all in configure.ac 62if MPI_MOD_ASM_MPIH_ADD1 63mpih_add1 = mpih-add1-asm.S 64else 65if MPI_MOD_C_MPIH_ADD1 66mpih_add1 = mpih-add1.c 67else 68mpih_add1 = 69endif 70endif 71 72if MPI_MOD_ASM_MPIH_SUB1 73mpih_sub1 = mpih-sub1-asm.S 74else 75if MPI_MOD_C_MPIH_SUB1 76mpih_sub1 = mpih-sub1.c 77else 78mpih_sub1 = 79endif 80endif 81 82if MPI_MOD_ASM_MPIH_MUL1 83mpih_mul1 = mpih-mul1-asm.S 84else 85if MPI_MOD_C_MPIH_MUL1 86mpih_mul1 = mpih-mul1.c 87else 88mpih_mul1 = 89endif 90endif 91 92if MPI_MOD_ASM_MPIH_MUL2 93mpih_mul2 = mpih-mul2-asm.S 94else 95if MPI_MOD_C_MPIH_MUL2 96mpih_mul2 = mpih-mul2.c 97else 98mpih_mul2 = 99endif 100endif 101 102if MPI_MOD_ASM_MPIH_MUL3 103mpih_mul3 = mpih-mul3-asm.S 104else 105if MPI_MOD_C_MPIH_MUL3 106mpih_mul3 = mpih-mul3.c 107else 108mpih_mul3 = 109endif 110endif 111 112if MPI_MOD_ASM_MPIH_LSHIFT 113mpih_lshift = mpih-lshift-asm.S 114else 115if MPI_MOD_C_MPIH_LSHIFT 116mpih_lshift = mpih-lshift.c 117else 118mpih_lshift = 119endif 120endif 121 122if MPI_MOD_ASM_MPIH_RSHIFT 123mpih_rshift = mpih-rshift-asm.S 124else 125if MPI_MOD_C_MPIH_RSHIFT 126mpih_rshift = mpih-rshift.c 127else 128mpih_rshift = 129endif 130endif 131 132if MPI_MOD_ASM_UDIV 133udiv = udiv-asm.S 134else 135if MPI_MOD_C_UDIV 136udiv = udiv.c 137else 138udiv = 139endif 140endif 141 142if MPI_MOD_ASM_UDIV_QRNND 143udiv_qrnnd = udiv-qrnnd-asm.S 144else 145if MPI_MOD_C_UDIV_QRNND 146udiv_qrnnd = udiv-qrnnd.c 147else 148udiv_qrnnd = 149endif 150endif 151 152noinst_LTLIBRARIES = libmpi.la 153 154libmpi_la_LDFLAGS = 155nodist_libmpi_la_SOURCES = $(mpih_add1) $(mpih_sub1) $(mpih_mul1) \ 156 $(mpih_mul2) $(mpih_mul3) $(mpih_lshift) $(mpih_rshift) \ 157 $(udiv) $(udiv_qrnnd) 158libmpi_la_SOURCES = longlong.h \ 159 mpi-add.c \ 160 mpi-bit.c \ 161 mpi-cmp.c \ 162 mpi-div.c \ 163 mpi-gcd.c \ 164 mpi-internal.h \ 165 mpi-inline.h \ 166 mpi-inline.c \ 167 mpi-inv.c \ 168 mpi-mul.c \ 169 mpi-mod.c \ 170 mpi-pow.c \ 171 mpi-mpow.c \ 172 mpi-scan.c \ 173 mpicoder.c \ 174 mpih-div.c \ 175 mpih-mul.c \ 176 mpiutil.c \ 177 ec.c 178