diff options
author | Moritz Schulte <mo@g10code.com> | 2003-08-27 15:04:07 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-08-27 15:04:07 +0000 |
commit | 03ee389bd247815f6d2e8f71acb59092fb2eed46 (patch) | |
tree | 464d0398efa878963115903afa70700f655d4fdc /mpi/Makefile.am | |
parent | 5024734ba4f2e9b13a4b5c0ed05c0e8324e1b6de (diff) | |
download | libgcrypt-03ee389bd247815f6d2e8f71acb59092fb2eed46.tar.gz |
2003-08-19 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (SUFFIXES): New variable.
(.S.o, .S.lo, .S.obj): Rewritten.
Diffstat (limited to 'mpi/Makefile.am')
-rw-r--r-- | mpi/Makefile.am | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/mpi/Makefile.am b/mpi/Makefile.am index 7c79256b..83f0452c 100644 --- a/mpi/Makefile.am +++ b/mpi/Makefile.am @@ -169,20 +169,22 @@ libmpi_la_SOURCES = longlong.h \ mpicoder.c \ mpih-div.c \ mpih-mul.c \ - mpiutil.c + mpiutil.c libmpi_la_LIBADD = @MPI_MOD_LIST_LO@ libmpi_la_DEPENDENCIES = @MPI_MOD_LIST_LO@ -# we need our own rules here to preprocess the .S files -# libtool has now working support for assembiles. It does for example not -# work when building only a static library. -.S.o: - $(CPP) $(INCLUDES) $(DEFS) `test -f '$<' || echo '$(srcdir)/'`$< | grep -v '^#' > _$*.s - $(CCASCOMPILE) -c _$*.s - mv -f _$*.o $@ +# Because we are circumventing automake with regards to assembler +# files, we have to define our own rules. + +SUFFIXES = .S .o .obj .lo + +.S.o: + $(CCASCOMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< + +.S.obj: + $(CCASCOMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` + .S.lo: - $(CPP) $(INCLUDES) $(DEFS) -DPIC `test -f '$<' || echo '$(srcdir)/'`$< | grep -v '^#' > __$*.s - $(CCASCOMPILE) -c __$*.s - mv -f __$*.o $@ + $(LTCCASCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< |