1 Star 0 Fork 1

NTUGISLab/galib遗传算法库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
makevars.vcpp 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
Yuri Volkov 提交于 2014-10-16 00:57 . version 2.4.7 import
# -*- Mode: makefile -*-
# Copyright (c) 1999-2005 Matthew Wall, all rights reserved
# makefile variables for compiling on windows
# -----------------------------------------------------------------------------
LIB_NAME= ga
### Set these directories to whatever is appropriate for your system. These
### used only if you do a 'make install'. They specify where the library and
### header files should be installed.
DESTDIR=c:\temp
HDR_DEST_DIR=$(DESTDIR)\include
LIB_DEST_DIR=$(DESTDIR)\lib
MKDEPEND = echo
MKDIR = mkdir
CP = xcopy
RM = del /f
CXX = cl.exe
LD = link.exe
AR = lib.exe
INSTALL = copy
# Here is a quick summary of the switches that cause much grief. These are
# for the microsoft visual c++ compilers.
#
# switch thread dll/exe library
# /MD multi DLL MSCVRT.LIB
# /ML single EXE LIBC.LIB
# /MT multi EXE LIBCMT.LIB
#
# /GR enable RTTI
# /GX enable synchronous exception handling
# /YX automate precompiled header
# /FD generate file dependencies
CFLAGS = /nologo /D_WINDOWS /DWIN32 /D_MBCS /W3 /GR /GX /TP
LFLAGS = /nologo /subsystem:console /incremental:no
!ifdef RELEASE_BUILD
CXXDLLFLAGS = $(CFLAGS) /DNDEBUG /MD /O2
CXXLIBFLAGS = $(CFLAGS) /DNDEBUG /MT /O2
CXXEXEFLAGS = $(CFLAGS) /DNDEBUG /MT /O2
LINKFLAGS = $(LFLAGS)
!else
CXXDLLFLAGS = $(CFLAGS) /D_DEBUG /MDd /Od /Zi
CXXLIBFLAGS = $(CFLAGS) /D_DEBUG /MTd /Od /Zi
CXXEXEFLAGS = $(CFLAGS) /D_DEBUG /MTd /Od /Zi
LINKFLAGS = $(LFLAGS) /debug
!endif
!ifdef SHARED_BUILD
!ifdef LIBRARY_BUILD
CXXFLAGS = $(CXXDLLFLAGS) /DCOMPILE_GALIB_AS_DLL /D_USRDLL
LINKFLAGS = $(LINKFLAGS) /dll
!else
CXXFLAGS = $(CXXEXEFLAGS) /DUSE_GALIB_AS_DLL
LINKFLAGS = $(LINKFLAGS)
!endif
!else
!ifdef LIBRARY_BUILD
CXXFLAGS = $(CXXLIBFLAGS) /DCOMPILE_GALIB_AS_LIB /D_LIB
LINKFLAGS = $(LINKFLAGS)
!else
CXXFLAGS = $(CXXEXEFLAGS) /DUSE_GALIB_AS_LIB
LINKFLAGS = $(LINKFLAGS)
!endif
!endif
LDFLAGS = $(LINKFLAGS)
ARFLAGS = /nologo
.SUFFIXES:
.SUFFIXES: .C
.C.o:
$(CXX) $(CXXFLAGS) /c $< /Fo$*.o
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ntugislab/galibyichuansuanfaku.git
git@gitee.com:ntugislab/galibyichuansuanfaku.git
ntugislab
galibyichuansuanfaku
galib遗传算法库
master

搜索帮助