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

more for vc++

parent 434b6e1b
No related branches found
No related tags found
No related merge requests found
...@@ -1955,7 +1955,7 @@ if test "x$enable_vc" = "xyes"; then ...@@ -1955,7 +1955,7 @@ if test "x$enable_vc" = "xyes"; then
FLAGS="/DWIN32 /DYY_NO_UNISTD_H /DHAVE_NO_DLL" FLAGS="/DWIN32 /DYY_NO_UNISTD_H /DHAVE_NO_DLL"
OPTIM=/O2 OPTIM=/O2
SYSINCLUDE="/I\"C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\" /I\"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\"" SYSINCLUDE="/I\"C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\" /I\"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\""
LINKER=cl /F16777216 LINKER="cl /F16777216"
EXEEXT=".exe" EXEEXT=".exe"
else else
ac_ext=c ac_ext=c
......
dnl $Id: configure.in,v 1.145 2008-01-18 22:53:31 geuzaine Exp $ dnl $Id: configure.in,v 1.146 2008-01-19 00:49:08 geuzaine Exp $
dnl dnl
dnl Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle dnl Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
dnl dnl
...@@ -167,7 +167,7 @@ if test "x$enable_vc" = "xyes"; then ...@@ -167,7 +167,7 @@ if test "x$enable_vc" = "xyes"; then
SYSINCLUDE="/I\"C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\" /I\"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\"" SYSINCLUDE="/I\"C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\" /I\"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\""
dnl increase stack size to 16Mb to avoid stack overflows in recursive dnl increase stack size to 16Mb to avoid stack overflows in recursive
dnl tet classification for large 3D Delaunay grids dnl tet classification for large 3D Delaunay grids
LINKER=cl /F16777216 LINKER="cl /F16777216"
EXEEXT=".exe" EXEEXT=".exe"
else else
AC_PROG_CC AC_PROG_CC
......
# $Id: Makefile,v 1.17 2008-01-18 20:13:13 geuzaine Exp $ # $Id: Makefile,v 1.18 2008-01-19 00:49:08 geuzaine Exp $
# #
# Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle # Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
# #
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
include ../../variables include ../../variables
LIB = ../../lib/libGmshANN.a LIB = ../../lib/libGmshANN${LIBEXT}
INCLUDE = -I../../Common -I./include INCLUDE = ${DASH}I../../Common ${DASH}I./include
CFLAGS = ${OPTIM} ${FLAGS} ${INCLUDE} CFLAGS = ${OPTIM} ${FLAGS} ${INCLUDE} ${SYSINCLUDE}
SRC = src/ANN.cpp\ SRC = src/ANN.cpp\
src/bd_fix_rad_search.cpp\ src/bd_fix_rad_search.cpp\
...@@ -40,19 +40,22 @@ SRC = src/ANN.cpp\ ...@@ -40,19 +40,22 @@ SRC = src/ANN.cpp\
src/kd_util.cpp\ src/kd_util.cpp\
src/perf.cpp src/perf.cpp
OBJ = ${SRC:.cpp=.o} OBJ = ${SRC:.cpp=${OBJEXT}}
.SUFFIXES: .o .cpp .SUFFIXES: ${OBJEXT} .cpp
${LIB}: ${OBJ} ${LIB}: ${OBJ}
${AR} ${LIB} ${OBJ} ${AR} ${ARFLAGS}${LIB} ${OBJ}
${RANLIB} ${LIB} ${RANLIB} ${LIB}
.cpp.o: .cpp${OBJEXT}:
${CXX} ${CFLAGS} -c $< -o ${<:.cpp=.o} ${CXX} ${CFLAGS} ${DASH}c $< ${DASH}o ${<:.cpp=${OBJEXT}}
if [ -r ${notdir ${<:.cpp=${OBJEXT}}} ]; then\
mv -f ${notdir ${<:.cpp=${OBJEXT}}} ${<:.cpp=${OBJEXT}};\
fi
clean: clean:
rm -f src/*.o rm -f src/*${OBJEXT}
depend: depend:
(sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \ (sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
......
# $Id: Makefile,v 1.22 2008-01-19 00:24:34 geuzaine Exp $ # $Id: Makefile,v 1.23 2008-01-19 00:49:08 geuzaine Exp $
# #
# Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle # Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
# #
...@@ -136,6 +136,9 @@ ${LIB}: ${OBJ} ...@@ -136,6 +136,9 @@ ${LIB}: ${OBJ}
.cpp${OBJEXT}: .cpp${OBJEXT}:
${CXX} ${CFLAGS} ${DASH}c $< ${DASH}o ${<:.cpp=.obj} ${CXX} ${CFLAGS} ${DASH}c $< ${DASH}o ${<:.cpp=.obj}
if [ -r ${notdir ${<:.cpp=${OBJEXT}}} ]; then\
mv -f ${notdir ${<:.cpp=${OBJEXT}}} ${<:.cpp=${OBJEXT}};\
fi
clean: clean:
rm -f *${OBJEXT} libsrc/*/*${OBJEXT} rm -f *${OBJEXT} libsrc/*/*${OBJEXT}
......
...@@ -7,7 +7,6 @@ To compile Gmsh with Microsoft VisualC++ ...@@ -7,7 +7,6 @@ To compile Gmsh with Microsoft VisualC++
3) set PATH=%PATH%;C:\cygwin\bin (or wherever the cygin binaries are installed) 3) set PATH=%PATH%;C:\cygwin\bin (or wherever the cygin binaries are installed)
4) cd gmsh && ./configure --enable-vc --disable-gsl --disable-netgen 4) cd gmsh && ./configure --enable-vc --disable-gsl --disable-netgen
--disable-matheval --disable-triangle --disable-ann
--disable-occ --disable-med --disable-occ --disable-med
5) edit SYSINCLUDE in gmsh/variables to match your install of Visual C++ 5) edit SYSINCLUDE in gmsh/variables to match your install of Visual C++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment