2004-10-26 22:28:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-11-22 01:38:40 +00: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 20:09:25 +00:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
2004-11-22 00:37:56 +00:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
# This is a simple makefile for windows which makes all the components
|
|
|
|
# which are required for super computing. Too lazy to open up visual
|
|
|
|
# studio each and every time to compile a component, so just adding
|
|
|
|
# this to the svn repository
|
2004-10-26 22:28:35 +00:00
|
|
|
#
|
|
|
|
|
2004-10-29 14:42:37 +00:00
|
|
|
topdir = `echo $(CURDIR) | sed 's/^\//C:\/cygwin\//g' | sed 's/\/src\/tools//g'`
|
2004-11-01 14:44:14 +00:00
|
|
|
install_dir = ${prefix}
|
|
|
|
libdir = ${prefix}/lib
|
|
|
|
bindir = ${prefix}/bin
|
|
|
|
incdir = ${prefix}/include
|
2004-10-26 22:28:35 +00:00
|
|
|
|
|
|
|
# list of components to build with the c compiler
|
|
|
|
C_SUBDIRS = \
|
|
|
|
mpirun \
|
|
|
|
ompid
|
|
|
|
|
|
|
|
# list of components to build with the cpp compiler
|
|
|
|
# (because of the problem with OBJ_CLASS_INSTANCE)
|
|
|
|
CPP_SUBDIRS = \
|
|
|
|
ompi_info
|
|
|
|
|
|
|
|
CC = cl
|
|
|
|
|
|
|
|
INCL = \
|
|
|
|
/I"${topdir}/src/win32/generated_include" \
|
|
|
|
/I"${topdir}/src/win32/" \
|
|
|
|
/I"${topdir}/src" \
|
|
|
|
/I"${topdir}/include"
|
|
|
|
|
|
|
|
CFLAGS = \
|
|
|
|
/DWIN32 \
|
2004-11-01 14:44:14 +00:00
|
|
|
/DOMPI_SYSCONFDIR="\"${prefix}/share\"" \
|
2004-11-02 13:14:34 +00:00
|
|
|
/nologo
|
2004-10-26 22:28:35 +00:00
|
|
|
|
|
|
|
CPPFLAGS = \
|
|
|
|
/DWIN32 \
|
2004-11-01 14:44:14 +00:00
|
|
|
/DOMPI_SYSCONFDIR="\"${prefix}/share\"" \
|
2004-10-26 22:28:35 +00:00
|
|
|
/c \
|
|
|
|
/TP \
|
2004-11-02 13:14:34 +00:00
|
|
|
/Zi \
|
2004-10-29 14:42:37 +00:00
|
|
|
/nologo \
|
2004-10-26 22:28:35 +00:00
|
|
|
/EHsc
|
|
|
|
|
|
|
|
ADD_INCL = \
|
2004-11-01 14:44:14 +00:00
|
|
|
/DOMPI_WANT_F90_BINDINGS="\"not implemented\"" \
|
|
|
|
/DOMPI_WANT_F90_BINDINGS="\"not implemented\"" \
|
|
|
|
/DOMPI_CONFIGURE_USER="\"not implemented\"" \
|
|
|
|
/DOMPI_CONFIGURE_DATE="\"not implemented\"" \
|
|
|
|
/DOMPI_CONFIGURE_HOST="\"not implemented\"" \
|
|
|
|
/DOMPI_F90="\"not implemented\"" \
|
|
|
|
/DOMPI_WANT_F90_BINDINGS="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_CFLAGS="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_CXXFLAGS="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_FFLAGS="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_FCFLAGS="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_LDFLAGS="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_LIBS="\"not implemented\"" \
|
|
|
|
/DOMPI_MAJOR_VERSION="\"not implemented\"" \
|
|
|
|
/DOMPI_MINOR_VERSION="\"not implemented\"" \
|
|
|
|
/DOMPI_RELEASE_VERSION="\"not implemented\"" \
|
|
|
|
/DOMPI_ALPHA_VERSION="\"not implemented\"" \
|
|
|
|
/DOMPI_BETA_VERSION="\"not implemented\"" \
|
|
|
|
/DOMPI_SVN_VERSION="\"not implemented\"" \
|
|
|
|
/DOMPI_PREFIX="\"${prefix}\"" \
|
|
|
|
/DOMPI_BINDIR="\"${bindir}\"" \
|
|
|
|
/DOMPI_LIBDIR="\"${libdir}\"" \
|
|
|
|
/DOMPI_INCDIR="\"${incdir}\"" \
|
|
|
|
/DOMPI_PKGLIBDIR="\"${libdir}\""
|
2004-10-26 22:28:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
# link with ompi.lib to resolve external symbols
|
|
|
|
OMPILIB = \
|
2004-11-02 13:14:34 +00:00
|
|
|
"${topdir}/src/libmpi.lib"
|
2004-10-26 22:28:35 +00:00
|
|
|
|
|
|
|
LINK = link
|
|
|
|
|
|
|
|
LINKFLAGS = \
|
|
|
|
/DLL \
|
|
|
|
/DEFAULTLIB:${OMPILIB}
|
|
|
|
|
|
|
|
all: \
|
2004-11-02 13:14:34 +00:00
|
|
|
cexes
|
2004-10-26 22:28:35 +00:00
|
|
|
|
2004-11-02 13:14:34 +00:00
|
|
|
cexes: ${C_SUBDIRS}
|
2004-10-26 22:28:35 +00:00
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
2004-11-02 13:14:34 +00:00
|
|
|
(echo "Entering $$dirs"; cd $$dirs; ${CC} ${CFLAGS} ${INCL} *.c ${OMPILIB};); \
|
2004-10-26 22:28:35 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
cpplibs: ${CPP_SUBDIRS}
|
|
|
|
@for dirs in ${CPP_SUBDIRS}; do \
|
2004-11-02 13:14:34 +00:00
|
|
|
(echo "Entering $$dirs"; cd $$dirs; ${CC} ${CPPFLAGS} ${INCL} ${ADD_INCL} *.cc ${OMPILIB};); \
|
2004-10-26 22:28:35 +00:00
|
|
|
done
|
|
|
|
|
2004-11-01 14:44:14 +00:00
|
|
|
install:
|
|
|
|
|
2004-10-26 22:28:35 +00:00
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
|
|
|
(echo "Entering $$dirs"; cd $$dirs; rm -rf *.lib *.obj *.exp;); \
|
|
|
|
done
|
|
|
|
@for dirs in ${C_PPSUBDIRS}; do \
|
|
|
|
(echo "Entering $$dirs"; cd $$dirs; rm -rf *.lib *.obj *.exp;); \
|
|
|
|
done
|