summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-04-07 20:58:34 +0200
committerWerner Koch <wk@gnupg.org>1999-04-07 20:58:34 +0200
commit9f40263e56cc9ebe28016bb4588da3846342ba79 (patch)
tree1ca711569d0878d441798bf4f185036eda8fceda /mpi
parentSee ChangeLog: Tue Apr 6 19:58:12 CEST 1999 Werner Koch (diff)
downloadgnupg2-9f40263e56cc9ebe28016bb4588da3846342ba79.tar.xz
gnupg2-9f40263e56cc9ebe28016bb4588da3846342ba79.zip
See ChangeLog: Wed Apr 7 20:51:39 CEST 1999 Werner Koch
Diffstat (limited to 'mpi')
-rw-r--r--mpi/ChangeLog4
-rw-r--r--mpi/Makefile.am12
2 files changed, 13 insertions, 3 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index 71fedb1ab..c4e214e08 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,7 @@
+Wed Apr 7 20:51:39 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
+
+ * Makefile.am: Explicit rules to invoke cpp on *.S
+
Mon Mar 8 20:47:17 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
* config.links: Take advantage of the with_symbol_underscore macro.
diff --git a/mpi/Makefile.am b/mpi/Makefile.am
index 6fb7adda0..2f743093e 100644
--- a/mpi/Makefile.am
+++ b/mpi/Makefile.am
@@ -4,18 +4,16 @@ INCLUDES = -I$(top_srcdir)/include
CFLAGS = @CFLAGS@ @MPI_OPT_FLAGS@
SFLAGS = @MPI_SFLAGS@
-SUFFIXES = .S .s
-
EXTRA_DIST = config.links
DISTCLEANFILES = mpih-add1.S mpih-mul1.S mpih-mul2.S mpih-mul3.S \
mpih-lshift.S mpih-rshift.S mpih-sub1.S asm-syntax.h sysdep.h
+CLEANFILES = tmp-*.s
noinst_LIBRARIES = libmpi.a
# noinst_HEADERS =
-
libmpi_a_SOURCES = longlong.h \
mpi-add.c \
mpi-bit.c \
@@ -51,3 +49,11 @@ common_asm_objects = mpih-mul1.o \
libmpi_a_DEPENDENCIES = $(common_asm_objects) @MPI_EXTRA_ASM_OBJS@
libmpi_a_LIBADD = $(common_asm_objects) @MPI_EXTRA_ASM_OBJS@
+SUFFIXES = .S
+
+.S.o:
+ $(CPP) $(INCLUDES) $(DEFS) $< | grep -v '^#' >tmp-$*.s
+ $(CC) $(CFLAGS) $(SFLAGS) -c tmp-$*.s
+ mv tmp-$*.o $@
+ rm -f tmp-$*.s
+