2004-10-27 02:28:35 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
|
|
|
# this is hardcoded for now. but will change shortly
|
|
|
|
topdir = C:\cygwin\home\pkambadu\ompi
|
|
|
|
|
|
|
|
# list of components to build with the c compiler
|
|
|
|
C_SUBDIRS = \
|
|
|
|
allocator/bucket \
|
|
|
|
coll/basic \
|
|
|
|
llm/hostfile/src \
|
|
|
|
ns/proxy/src \
|
|
|
|
pcmclient/env \
|
|
|
|
pcmclient/seed \
|
|
|
|
pcmclient/singleton \
|
|
|
|
topo/unity/src
|
|
|
|
|
|
|
|
# list of components to build with the cpp compiler
|
|
|
|
# (because of the problem with OBJ_CLASS_INSTANCE)
|
|
|
|
CPP_SUBDIRS = \
|
2004-10-28 22:13:43 +04:00
|
|
|
ptl/tcp/src \
|
|
|
|
oob/tcp/ \
|
|
|
|
pml/teg/src \
|
2004-10-27 02:28:35 +04:00
|
|
|
ns/replica/src
|
|
|
|
|
|
|
|
#list of components that are not working as yet
|
|
|
|
CPP_EXCLUDE = \
|
|
|
|
ptl/tcp/src \
|
|
|
|
pcm/wmi
|
|
|
|
|
|
|
|
CC = cl
|
|
|
|
|
|
|
|
INCL = \
|
|
|
|
/I"${topdir}/src/win32/generated_include" \
|
|
|
|
/I"${topdir}/src/win32/" \
|
|
|
|
/I"${topdir}/src" \
|
|
|
|
/I"${topdir}/include"
|
|
|
|
|
|
|
|
CFLAGS = \
|
|
|
|
/DWIN32 \
|
|
|
|
/DOMPI_SYSCONFDIR \
|
2004-10-28 22:13:43 +04:00
|
|
|
/nologo \
|
|
|
|
/Fo"Debug" \
|
2004-10-27 02:28:35 +04:00
|
|
|
/c
|
|
|
|
|
|
|
|
CPPFLAGS = \
|
|
|
|
/DWIN32 \
|
|
|
|
/DOMPI_SYSCONFDIR \
|
|
|
|
/c \
|
|
|
|
/TP \
|
2004-10-28 22:13:43 +04:00
|
|
|
/nologo \
|
2004-10-27 02:28:35 +04:00
|
|
|
/EHsc
|
|
|
|
|
|
|
|
# link with ompi.lib to resolve external symbols
|
|
|
|
OMPILIB = \
|
2004-10-28 22:13:43 +04:00
|
|
|
"${topdir}/src/libmpi.lib"
|
2004-10-27 02:28:35 +04:00
|
|
|
|
|
|
|
LINK = link
|
|
|
|
|
|
|
|
LINKFLAGS = \
|
|
|
|
/DLL \
|
2004-10-28 22:13:43 +04:00
|
|
|
/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: \
|
|
|
|
clibs \
|
|
|
|
cpplibs
|
|
|
|
|
|
|
|
clibs: ${C_SUBDIRS}
|
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
2004-10-28 22:13:43 +04:00
|
|
|
(echo "Entering $${dirs}"; cd $$dirs; ${CC} ${CFLAGS} ${INCL} *.c; ${LINK} ${LINKFLAGS} ${ADDLIBS} *.obj); \
|
2004-10-27 02:28:35 +04:00
|
|
|
done
|
|
|
|
|
|
|
|
cpplibs: ${CPP_SUBDIRS}
|
|
|
|
@for dirs in ${CPP_SUBDIRS}; do \
|
2004-10-28 22:13:43 +04:00
|
|
|
(echo "Entering $${dirs}"; cd $$dirs; ${CC} ${CPPFLAGS} ${INCL} *.c; ${LINK} ${LINKFLAGS} ${ADDLIBS} *.obj); \
|
2004-10-27 02:28:35 +04:00
|
|
|
done
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for dirs in ${C_SUBDIRS}; do \
|
|
|
|
(echo "Entering $$dirs"; cd $$dirs; rm -rf *.lib *.obj *.exp;); \
|
|
|
|
done
|
2004-10-28 22:13:43 +04: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
|