1 # Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
3 # This file is part of GnuPG.
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 ## Process this file with automake to produce Makefile.in
22 INCLUDES = -I.. -I$(top_srcdir)/include
23 AM_CFLAGS = $(MPI_OPT_FLAGS)
24 AM_CCASFLAGS = $(NOEXECSTACK_FLAGS) $(MPI_SFLAGS)
26 EXTRA_DIST = config.links
27 DISTCLEANFILES = mpi-asm-defs.h \
28 mpih-add1.S mpih-add1.c mpih-mul1.S mpih-mul1.c \
29 mpih-mul2.S mpih-mul2.c mpih-mul3.S mpih-mul3.c \
30 mpih-lshift.S mpih-lshift.c mpih-rshift.S mpih-rshift.c \
31 mpih-sub1.S mpih-sub1.c asm-syntax.h sysdep.h
33 # Note: we only use .S files so we should delete all left over .s
36 noinst_LIBRARIES = libmpi.a
39 libmpi_a_SOURCES = longlong.h \
59 # Note this objects are actually links, the sourcefiles are
60 # distributed by special code in dist-hook
61 common_asm_objects = mpih-mul1.o \
69 libmpi_a_DEPENDENCIES = $(common_asm_objects) @MPI_EXTRA_ASM_OBJS@
70 libmpi_a_LIBADD = $(common_asm_objects) @MPI_EXTRA_ASM_OBJS@
72 # cancel the default rules used by libtool which do not really
73 # work and add one to cpp .S files
75 $(CPP) $(INCLUDES) $(DEFS) $< | grep -v '^#' > _$*.s
76 $(COMPILE) $(AM_CCASFLAGS) -c _$*.s