2004-10-27 02:28:35 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
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.
|
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-11-22 03:37:56 +03: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-27 02:28:35 +04:00
|
|
|
#
|
|
|
|
|
2005-02-10 00:21:00 +03:00
|
|
|
topdir := $(shell cygpath -m $(CURDIR))/../..
|
|
|
|
installdir = ${topdir}/src/Debug
|
|
|
|
libdir = ${installdir}/lib
|
|
|
|
bindir = ${installdir}/bin
|
|
|
|
incdir = ${installdir}/include
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
# list of components to build with the c compiler
|
|
|
|
C_SUBDIRS = \
|
2005-04-13 06:35:52 +04:00
|
|
|
orted
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
# 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" \
|
2005-02-10 00:21:00 +03:00
|
|
|
/I"${topdir}/src/win32" \
|
|
|
|
/I"${topdir}/include" \
|
2004-10-27 02:28:35 +04:00
|
|
|
/I"${topdir}/src" \
|
2005-02-10 00:21:00 +03:00
|
|
|
/I"${topdir}/src/event/compat/" \
|
|
|
|
/I"${topdir}/src/event" \
|
|
|
|
/I"${topdir}/src/event/WIN32-Code/"
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
CFLAGS = \
|
|
|
|
/DWIN32 \
|
2005-02-10 00:21:00 +03:00
|
|
|
/DHAVE_CONFIG_H \
|
|
|
|
/DOMPI_SYSCONFDIR="\"${installdir}/share\"" \
|
2005-06-22 02:48:57 +04:00
|
|
|
/DOMPI_BUILDING_WIN_DSO=1 \
|
2005-02-10 00:21:00 +03:00
|
|
|
/EHsc \
|
|
|
|
/ML \
|
|
|
|
/W0 \
|
|
|
|
/Wp64 \
|
|
|
|
/TC \
|
|
|
|
/D_MBCS \
|
|
|
|
/LD\
|
|
|
|
/nologo \
|
|
|
|
/c
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
CPPFLAGS = \
|
|
|
|
/DWIN32 \
|
|
|
|
/TP \
|
2005-02-10 00:21:00 +03:00
|
|
|
/DHAVE_CONFIG_H \
|
|
|
|
/DOMPI_SYSCONFDIR="\"${installdir}/share\"" \
|
2005-06-22 02:48:57 +04:00
|
|
|
/DOMPI_BUILDING_WIN_DSO=1 \
|
2005-02-10 00:21:00 +03:00
|
|
|
/EHsc \
|
|
|
|
/ML \
|
|
|
|
/W0 \
|
|
|
|
/Wp64 \
|
|
|
|
/D_MBCS \
|
|
|
|
/LD \
|
2004-10-29 18:42:37 +04:00
|
|
|
/nologo \
|
2005-02-10 00:21:00 +03:00
|
|
|
/c
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
ADD_INCL = \
|
2005-06-22 02:48:57 +04:00
|
|
|
/DOMPI_BUILD_USER="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_DATE="\"not implemented\"" \
|
|
|
|
/DOMPI_BUILD_HOST="\"not implemented\"" \
|
|
|
|
/DOMPI_WANT_SVN="\"not implemented\"" \
|
|
|
|
/DOMPI_SVN_R="\"not implemented\"" \
|
2004-11-01 17:44:14 +03:00
|
|
|
/DOMPI_CONFIGURE_USER="\"not implemented\"" \
|
|
|
|
/DOMPI_CONFIGURE_DATE="\"not implemented\"" \
|
|
|
|
/DOMPI_CONFIGURE_HOST="\"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\"" \
|
2005-02-10 00:21:00 +03:00
|
|
|
/DOMPI_MAJOR_VERSION=1 \
|
|
|
|
/DOMPI_MINOR_VERSION=0 \
|
|
|
|
/DOMPI_RELEASE_VERSION=0 \
|
|
|
|
/DOMPI_ALPHA_VERSION=0 \
|
|
|
|
/DOMPI_BETA_VERSION=0 \
|
|
|
|
/DOMPI_SVN_VERSION=0 \
|
2004-11-01 17:44:14 +03:00
|
|
|
/DOMPI_PREFIX="\"${prefix}\"" \
|
|
|
|
/DOMPI_BINDIR="\"${bindir}\"" \
|
|
|
|
/DOMPI_LIBDIR="\"${libdir}\"" \
|
|
|
|
/DOMPI_INCDIR="\"${incdir}\"" \
|
|
|
|
/DOMPI_PKGLIBDIR="\"${libdir}\""
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
# link with ompi.lib to resolve external symbols
|
|
|
|
OMPILIB = \
|
2004-11-02 16:14:34 +03:00
|
|
|
"${topdir}/src/libmpi.lib"
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
LINK = link
|
|
|
|
|
|
|
|
LINKFLAGS = \
|
2005-02-10 00:21:00 +03:00
|
|
|
/OPT:NOICF \
|
|
|
|
/OPT:NOREF \
|
|
|
|
/DEFAULTLIB:${OMPILIB} \
|
|
|
|
/nologo
|
|
|
|
|
|
|
|
ADDLIBS = \
|
|
|
|
ws2_32.lib \
|
|
|
|
kernel32.lib \
|
|
|
|
user32.lib \
|
|
|
|
gdi32.lib \
|
|
|
|
winspool.lib \
|
|
|
|
comdlg32.lib \
|
|
|
|
advapi32.lib \
|
|
|
|
shell32.lib \
|
|
|
|
ole32.lib \
|
|
|
|
oleaut32.lib \
|
|
|
|
uuid.lib \
|
|
|
|
odbc32.lib \
|
|
|
|
odbccp32.lib
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
all: \
|
2005-02-10 00:21:00 +03:00
|
|
|
cexes \
|
|
|
|
cppexecs
|
2004-10-27 02:28:35 +04:00
|
|
|
|
2004-11-02 16:14:34 +03:00
|
|
|
cexes: ${C_SUBDIRS}
|
2004-10-27 02:28:35 +04:00
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
2005-06-22 02:48:57 +04:00
|
|
|
(echo "Entering $$dirs"; cd $$dirs; \
|
|
|
|
${CC} ${CFLAGS} ${INCL} *.c; ${LINK} ${LINKFLAGS} ${ADDLIBS} *.obj;); \
|
2004-10-27 02:28:35 +04:00
|
|
|
done
|
|
|
|
|
2005-02-10 00:21:00 +03:00
|
|
|
cppexecs: ${CPP_SUBDIRS}
|
2004-10-27 02:28:35 +04:00
|
|
|
@for dirs in ${CPP_SUBDIRS}; do \
|
2005-06-22 02:48:57 +04:00
|
|
|
(echo "Entering $$dirs"; cd $$dirs; \
|
|
|
|
${CC} ${CPPFLAGS} ${INCL} ${ADD_INCL} *.cc; ${LINK} ${LINKFLAGS} ${ADDLIBS} *.obj;); \
|
2004-10-27 02:28:35 +04:00
|
|
|
done
|
|
|
|
|
2005-02-10 00:21:00 +03:00
|
|
|
install: win_makefile
|
|
|
|
@echo -n "Installing components ......................."
|
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
|
|
|
install -d ${CURDIR}/$${dirs}/ ${bindir}; \
|
|
|
|
install -p ${CURDIR}/$${dirs}/$${dirs}.exe ${installdir}/$${dirs}.exe; \
|
|
|
|
done
|
|
|
|
@for dirs in ${CPP_SUBDIRS}; do \
|
|
|
|
install -d ${CURDIR}/$${dirs}/ ${bindir}; \
|
|
|
|
install -p ${CURDIR}/$${dirs}/$${dirs}.exe ${installdir}/$${dirs}.exe; \
|
|
|
|
done
|
|
|
|
@echo "done"
|
2004-11-01 17:44:14 +03:00
|
|
|
|
2004-10-27 02:28:35 +04:00
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
|
|
|
(echo "Entering $$dirs"; cd $$dirs; rm -rf *.lib *.obj *.exp;); \
|
|
|
|
done
|
2005-02-10 00:21:00 +03:00
|
|
|
@for dirs in ${CPP_SUBDIRS}; do \
|
2004-10-27 02:28:35 +04:00
|
|
|
(echo "Entering $$dirs"; cd $$dirs; rm -rf *.lib *.obj *.exp;); \
|
|
|
|
done
|