Try to compile ctf
This commit is contained in:
parent
2000de6dfb
commit
ef1c50d8a0
10
Makefile.am
10
Makefile.am
@ -2,6 +2,16 @@ include ./etc/make/emacs.mk
|
|||||||
|
|
||||||
SUBDIRS = src bench
|
SUBDIRS = src bench
|
||||||
|
|
||||||
|
if WITH_BUILD_CTF
|
||||||
|
CTF_COMMIT = 968f8f9eb6aab1d6b67d2fcc1a70c9fc3b98adfa
|
||||||
|
CTF_GIT_REPOSITORY = https://github.com/cc4s/ctf
|
||||||
|
CTF_BUILD_PATH = $(builddir)/extern/build/$(CONFIG)/ctf/$(CTF_COMMIT)
|
||||||
|
CTF_SRC_PATH = $(builddir)/extern/src/$(CONFIG)/ctf/$(CTF_COMMIT)
|
||||||
|
include $(srcdir)/etc/make/ctf.mk
|
||||||
|
src: ctf
|
||||||
|
SUBDIRS += extern/ctf/
|
||||||
|
endif
|
||||||
|
|
||||||
_ATRIPSRCS = Sources.mk
|
_ATRIPSRCS = Sources.mk
|
||||||
## include $(_ATRIPSRCS)
|
## include $(_ATRIPSRCS)
|
||||||
|
|
||||||
|
|||||||
11
configure.ac
11
configure.ac
@ -30,6 +30,15 @@ AC_ARG_WITH(libctf-prefix,
|
|||||||
LIBCTF_LD_LIBRARY_PATH="`readlink -f $withval`/lib";
|
LIBCTF_LD_LIBRARY_PATH="`readlink -f $withval`/lib";
|
||||||
BUILD_CTF=NO],
|
BUILD_CTF=NO],
|
||||||
[BUILD_CTF=YES])
|
[BUILD_CTF=YES])
|
||||||
|
AM_CONDITIONAL([WITH_BUILD_CTF], [test x${BUILD_CTF} = xYES])
|
||||||
|
|
||||||
|
AC_ARG_WITH([clang-check],
|
||||||
|
[AS_HELP_STRING([--with-clang-check],
|
||||||
|
[Check with clang-check])],
|
||||||
|
[clang_check=YES;
|
||||||
|
AC_CHECK_PROG([CLANG_CHECK], [clang-check])],
|
||||||
|
[clang_check=NO])
|
||||||
|
AM_CONDITIONAL([WITH_CLANG_CHECK], [test x${clang_check} = xYES])
|
||||||
|
|
||||||
AC_ARG_WITH(dgemm,
|
AC_ARG_WITH(dgemm,
|
||||||
AS_HELP_STRING([--without-dgemm], [Disable dgemm]),
|
AS_HELP_STRING([--without-dgemm], [Disable dgemm]),
|
||||||
@ -77,7 +86,7 @@ CXX=${MPICXX}
|
|||||||
|
|
||||||
dnl ---------- CHECK CTF
|
dnl ---------- CHECK CTF
|
||||||
if test xYES = x${BUILD_CTF}; then
|
if test xYES = x${BUILD_CTF}; then
|
||||||
AC_MSG_ERROR([Sorry, building CTF not supported yet provide a build path
|
AC_MSG_WARN([Sorry, building CTF not supported yet provide a build path
|
||||||
with --with-libctf-prefix=path])
|
with --with-libctf-prefix=path])
|
||||||
else
|
else
|
||||||
CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}"
|
CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}"
|
||||||
|
|||||||
@ -10,7 +10,7 @@ $(CTF_SRC_PATH)/configure:
|
|||||||
|
|
||||||
$(CTF_BUILD_PATH)/Makefile: $(CTF_SRC_PATH)/configure
|
$(CTF_BUILD_PATH)/Makefile: $(CTF_SRC_PATH)/configure
|
||||||
mkdir -p $(CTF_BUILD_PATH)
|
mkdir -p $(CTF_BUILD_PATH)
|
||||||
cd $(CTF_BUILD_PATH) && $(CTF_SRC_PATH)/configure $(CTF_CONFIG_FLAGS)
|
cd $(CTF_BUILD_PATH) && $(abspath $(CTF_SRC_PATH))/configure $(CTF_CONFIG_FLAGS)
|
||||||
|
|
||||||
$(CTF_STATIC_LIB): $(CTF_BUILD_PATH)/Makefile
|
$(CTF_STATIC_LIB): $(CTF_BUILD_PATH)/Makefile
|
||||||
$(info Compiling $@)
|
$(info Compiling $@)
|
||||||
@ -21,8 +21,3 @@ ctf: $(CTF_STATIC_LIB)
|
|||||||
|
|
||||||
ctf-clean:
|
ctf-clean:
|
||||||
rm -rf $(CTF_BUILD_PATH)
|
rm -rf $(CTF_BUILD_PATH)
|
||||||
|
|
||||||
EXTERNAL_DEPENDENCIES += ctf
|
|
||||||
STATIC_LIBS += $(CTF_LDFLAGS)
|
|
||||||
INCLUDE_FLAGS += $(CTF_INCLUDE)
|
|
||||||
REQUIRED_MAKEVARS += CTF_COMMIT CTF_BUILD_PATH CTF_GIT_REPOSITORY CTF_SRC_PATH
|
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
export CC=clang
|
||||||
|
export CXX=clang++
|
||||||
export OMPI_CC=clang
|
export OMPI_CC=clang
|
||||||
export OMPI_CXX=clang++
|
export OMPI_CXX=clang++
|
||||||
'';
|
'';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user