2004-01-12 10:19:48 +03:00
|
|
|
//
|
2004-11-22 04:38:40 +03:00
|
|
|
// Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
// All rights reserved.
|
|
|
|
// Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
// All rights reserved.
|
2004-11-28 23:09:25 +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.
|
2004-11-22 04:38:40 +03:00
|
|
|
// $COPYRIGHT$
|
|
|
|
//
|
|
|
|
// Additional copyrights may follow
|
|
|
|
//
|
2004-01-12 10:19:48 +03:00
|
|
|
// $HEADER$
|
|
|
|
//
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
|
|
|
#include "tools/wrappers/ompi_wrap.h"
|
2004-01-12 10:19:48 +03:00
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2004-09-25 23:31:17 +04:00
|
|
|
// The four wrapper compilers are extremely similar. So similar,
|
|
|
|
// in fact, that they can be parameterized on what is different.
|
|
|
|
// Hence, we call the "wrapper compiler engine" to do all the
|
|
|
|
// work, and pass in just a few arguments to customize for the
|
|
|
|
// language of this wrapper compiler.
|
2004-01-12 10:19:48 +03:00
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
ompi_sv_t compiler;
|
|
|
|
ompi_sv_t cppflags;
|
|
|
|
ompi_sv_t cflags;
|
|
|
|
ompi_sv_t ldflags;
|
|
|
|
ompi_sv_t libs;
|
2004-01-12 10:19:48 +03:00
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
compiler.clear();
|
|
|
|
compiler.push_back("OMPI_MPICC");
|
2004-01-12 10:19:48 +03:00
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
cppflags.clear();
|
|
|
|
cppflags.push_back("OMPI_MPICC_CPPFLAGS");
|
|
|
|
cppflags.push_back("OMPI_CPPFLAGS");
|
|
|
|
|
|
|
|
cflags.clear();
|
|
|
|
cflags.push_back("OMPI_MPICC_CFLAGS");
|
|
|
|
cflags.push_back("OMPI_CFLAGS");
|
|
|
|
|
|
|
|
ldflags.clear();
|
|
|
|
ldflags.push_back("OMPI_MPICC_LDFLAGS");
|
|
|
|
ldflags.push_back("OMPI_LDFLAGS");
|
|
|
|
|
|
|
|
libs.clear();
|
|
|
|
libs.push_back("OMPI_MPICC_LIBS");
|
|
|
|
libs.push_back("OMPI_LIBS");
|
|
|
|
|
|
|
|
return ompi_wrap_engine(argc, argv, compiler, cppflags, cflags,
|
|
|
|
ldflags, libs, OMPI_CC, WRAPPER_EXTRA_CFLAGS,
|
2005-04-13 15:54:36 +04:00
|
|
|
false, false, false);
|
2004-01-12 10:19:48 +03:00
|
|
|
}
|