Skip to content
Snippets Groups Projects
Commit 4c9c6aa2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

move the release/debug test in variables.msvc (+ rewrote in a different way)
parent c082dc85
No related branches found
No related tags found
No related merge requests found
# $Id: Makefile,v 1.466 2008-02-15 15:33:31 miegroet Exp $ # $Id: Makefile,v 1.467 2008-02-15 20:01:53 geuzaine Exp $
# #
# Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle # Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
# #
...@@ -84,12 +84,7 @@ install-lib: lib ...@@ -84,12 +84,7 @@ install-lib: lib
rm -f ${includedir}/gmsh/* rm -f ${includedir}/gmsh/*
cp -f ${GMSH_API} ${includedir}/gmsh cp -f ${GMSH_API} ${includedir}/gmsh
mkdir -p ${libdir} mkdir -p ${libdir}
ifeq ($(OPTION),/EHsc /nologo /GR /MTd) cp -f bin/libGmsh${LIBEXT} ${libdir}/libGmsh${LIBSUFFIX}${LIBEXT}
cp -f bin/libGmsh${LIBEXT} ${libdir}/libGmsh${LIBEXTDEBUG}
endif
ifeq (${OPTION},/EHsc /nologo /GR /MT)
cp -f bin/libGmsh${LIBEXT} ${libdir}/libGmsh${LIBEXTRELEASE}
endif
embed: embed:
@if [ -r ../getdp2/contrib/gmsh/Makefile ]; then \ @if [ -r ../getdp2/contrib/gmsh/Makefile ]; then \
......
# This is a pre-filled variables file for building a blackbox version # This is a pre-filled variables file for building a blackbox version
# of Gmsh with Microsoft Visual C++ (MSVC). # of Gmsh with Microsoft Visual C++ (MSVC).
# #
# This has been tested with MSVC 2003.NET and MSVC 2008. # This has been tested with MSVC 2003 and MSVC 2008. See
# See doc/README.msvc for building instructions. # doc/README.msvc for building instructions.
# OS and host # OS and host
UNAME=WIN32MSVC UNAME=WIN32MSVC
...@@ -10,11 +10,18 @@ HOSTNAME=localhost ...@@ -10,11 +10,18 @@ HOSTNAME=localhost
# The names of the C and C++ compilers # The names of the C and C++ compilers
CC=cl CC=cl
OPTION=/EHsc /nologo /GR /MT CXX=/EHsc /nologo /GR /MT
# Add /MLd for single-thread debug mode
# Use /MLd for single-thread debug mode
# /MTd for multi-thread debug mode # /MTd for multi-thread debug mode
# /MT for multi-thread release mode
CXX=${CC} ${OPTION} # append different suffix for release or debug version of library
ifneq (,${findstring MTd,${CXX}})
LIBSUFFIX=_d
else
LIBSUFFIX=_r
endif
# increase stack size to 16Mb to avoid stack overflows in recursive # increase stack size to 16Mb to avoid stack overflows in recursive
# tet classification for large 3D Delaunay grids # tet classification for large 3D Delaunay grids
...@@ -47,8 +54,6 @@ DASH=/ ...@@ -47,8 +54,6 @@ DASH=/
# The extension to use for object files, libraries and executables # The extension to use for object files, libraries and executables
OBJEXT=.obj OBJEXT=.obj
LIBEXT=.lib LIBEXT=.lib
LIBEXTRELEASE=_r.lib
LIBEXTDEBUG=_d.lib
EXEEXT=.exe EXEEXT=.exe
# Installation directories # Installation directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment