2005-01-27 04:39:55 +03:00
|
|
|
#
|
2005-11-05 22:57:48 +03:00
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
2005-01-27 04:39:55 +03:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2005-01-27 04:39:55 +03:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2005-09-07 09:54:53 +04:00
|
|
|
|
2005-01-27 04:39:55 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
#
|
|
|
|
# This is a bit complicated. If there is anything in the library,
|
2008-04-25 01:40:40 +04:00
|
|
|
# it will always be atomic-asm.S. We just symlink atomic-asm.S to
|
2005-01-27 04:39:55 +03:00
|
|
|
# the best atomic operations available (as determined at configure
|
|
|
|
# time)
|
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
generated/@OMPI_ASM_FILE@: base/@OMPI_ASSEMBLY_ARCH@.asm
|
2006-09-26 06:37:35 +04:00
|
|
|
$(PERL) '$(top_srcdir)/opal/asm/generate-asm.pl' '@OMPI_ASSEMBLY_ARCH@' '@OMPI_ASSEMBLY_FORMAT@' '$(top_srcdir)/opal/asm/base' '$(top_builddir)/opal/asm/generated/@OMPI_ASM_FILE@'
|
2005-01-27 04:39:55 +03:00
|
|
|
|
2008-04-25 01:40:40 +04:00
|
|
|
atomic-asm.S: generated/@OMPI_ASM_FILE@
|
|
|
|
rm -f atomic-asm.S
|
2005-08-19 14:20:33 +04:00
|
|
|
@ if test -f "$(top_builddir)/opal/asm/generated/@OMPI_ASM_FILE@" ; then \
|
2008-04-25 01:40:40 +04:00
|
|
|
cmd="ln -s \"$(top_builddir)/opal/asm/generated/@OMPI_ASM_FILE@\" atomic-asm.S" ; \
|
2005-01-27 04:39:55 +03:00
|
|
|
echo "$$cmd" ; \
|
2005-04-08 06:55:35 +04:00
|
|
|
eval $$cmd ; \
|
2005-01-27 04:39:55 +03:00
|
|
|
else \
|
2008-04-25 01:40:40 +04:00
|
|
|
cmd="ln -s \"$(top_srcdir)/opal/asm/generated/@OMPI_ASM_FILE@\" atomic-asm.S" ; \
|
2005-01-27 04:39:55 +03:00
|
|
|
echo "$$cmd" ; \
|
2005-04-08 06:55:35 +04:00
|
|
|
eval $$cmd ; \
|
2005-01-27 04:39:55 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
if OMPI_HAVE_ASM_FILE
|
2008-04-25 01:40:40 +04:00
|
|
|
nodist_libasm_la_SOURCES = atomic-asm.S
|
2005-12-19 08:39:07 +03:00
|
|
|
libasm_la_DEPENDENCIES = generated/@OMPI_ASM_FILE@
|
2005-01-27 04:39:55 +03:00
|
|
|
else
|
2005-02-10 05:19:00 +03:00
|
|
|
nodist_libasm_la_SOURCES =
|
2005-12-19 08:39:07 +03:00
|
|
|
libasm_la_DEPENDENCIES =
|
2005-01-27 04:39:55 +03:00
|
|
|
endif
|
|
|
|
|
2005-01-28 04:06:47 +03:00
|
|
|
noinst_LTLIBRARIES = libasm.la
|
2005-02-14 21:04:23 +03:00
|
|
|
dist_libasm_la_SOURCES = asm.c
|
2005-01-27 04:39:55 +03:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
asm-data.txt \
|
|
|
|
generate-asm.pl \
|
2005-01-31 07:16:54 +03:00
|
|
|
generate-all-asm.pl \
|
|
|
|
base/aix.conf \
|
|
|
|
base/default.conf \
|
2006-09-26 23:29:46 +04:00
|
|
|
base/ALPHA.asm \
|
2005-01-27 04:39:55 +03:00
|
|
|
base/AMD64.asm \
|
|
|
|
base/IA32.asm \
|
2005-04-04 23:08:13 +04:00
|
|
|
base/IA64.asm \
|
2005-02-18 23:10:29 +03:00
|
|
|
base/MIPS.asm \
|
2005-01-27 04:39:55 +03:00
|
|
|
base/POWERPC32.asm \
|
2005-02-18 23:10:29 +03:00
|
|
|
base/POWERPC64.asm \
|
|
|
|
base/SPARC.asm \
|
|
|
|
base/SPARCV9_32.asm \
|
|
|
|
base/SPARCV9_64.asm
|
2005-01-27 04:39:55 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
clean-local:
|
2008-04-25 01:40:40 +04:00
|
|
|
rm -f atomic-asm.S
|
2005-01-27 04:39:55 +03:00
|
|
|
|
|
|
|
maintainer-clean-local:
|
|
|
|
rm -f generated/atomic-local.s
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copy over all the generated files
|
|
|
|
#
|
|
|
|
dist-hook:
|
2005-04-08 01:39:03 +04:00
|
|
|
mkdir "${distdir}/generated"
|
2005-07-02 18:57:46 +04:00
|
|
|
$(PERL) "$(top_srcdir)/opal/asm/generate-all-asm.pl" "$(PERL)" "$(srcdir)" "$(distdir)"
|