⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 一个功能强大的神经网络分析程序
💻
📖 第 1 页 / 共 2 页
字号:
################################################################
# 
# Makefile to rebuild fann win32 dll's with command line Microsoft C++ 2003 7.1
# 
# Use vcvars32 command file to set environment for the compiler tools.
# 
# To rebuild all dll's run: nmake
# To rebuild all debug dll's run: nmake "Debug"
# To rebuild all release dll's run: nmake "Release"
# To rebuild just one dll (for example "Release Fixed") run: nmake "Release Fixed"
# 
# To delete all intermediary directories named "Debug Double" and so forth
# and ***ALL*** their content run: nmake "Clean"
# 
################################################################

"All" : "Debug" "Release"

"Debug" : "Debug Double" "Debug Double Multithread" "Debug Fixed" "Debug Fixed Multithread" "Debug Float" "Debug Float Multithread"

"Release" : "Release Double" "Release Double Multithread" "Release Fixed" "Release Fixed Multithread" "Release Float" "Release Float Multithread"

################################################################

"Clean" :
    @echo Removing all intermediary directories...
    @if exist "Debug Double" erase /Q "Debug Double"
    @if exist "Debug Double" rmdir "Debug Double"
    @if exist "Debug Double Multithread" erase /Q "Debug Double Multithread"
    @if exist "Debug Double Multithread" rmdir "Debug Double Multithread"
    @if exist "Debug Fixed" erase /Q "Debug Fixed"
    @if exist "Debug Fixed" rmdir "Debug Fixed"
    @if exist "Debug Fixed Multithread" erase /Q "Debug Fixed Multithread"
    @if exist "Debug Fixed Multithread" rmdir "Debug Fixed Multithread"
    @if exist "Debug Float" erase /Q "Debug Float"
    @if exist "Debug Float" rmdir "Debug Float"
    @if exist "Debug Float Multithread" erase /Q "Debug Float Multithread"
    @if exist "Debug Float Multithread" rmdir "Debug Float Multithread"
    @if exist "Release Double" erase /Q "Release Double"
    @if exist "Release Double" rmdir "Release Double"
    @if exist "Release Double Multithread" erase /Q "Release Double Multithread"
    @if exist "Release Double Multithread" rmdir "Release Double Multithread"
    @if exist "Release Fixed" erase /Q "Release Fixed"
    @if exist "Release Fixed" rmdir "Release Fixed"
    @if exist "Release Fixed Multithread" erase /Q "Release Fixed Multithread"
    @if exist "Release Fixed Multithread" rmdir "Release Fixed Multithread"
    @if exist "Release Float" erase /Q "Release Float"
    @if exist "Release Float" rmdir "Release Float"
    @if exist "Release Float Multithread" erase /Q "Release Float Multithread"
    @if exist "Release Float Multithread" rmdir "Release Float Multithread"

################################################################

SOURCE = "../src/fann.c" "../src/fann_error.c" "../src/fann_io.c" "../src/fann_options.c" "../src/fann_train.c" "../src/fann_train_data.c"

################################################################
# "Debug Double" - fanndoubled.dll

DDBLOBJ = "Debug Double/fann.obj" "Debug Double/fann_error.obj" "Debug Double/fann_io.obj" "Debug Double/fann_options.obj" "Debug Double/fann_train.obj" "Debug Double/fann_train_data.obj"

"Debug Double Compile" :
    @echo Compiling Debug Double...
    @if not exist "Debug Double" mkdir "Debug Double"
    @cl @<<
    /Od /I "../src/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "FANN_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /RTC1 /ML /Fo"Debug Double/" /Fd"Debug Double/vc70.pdb" /W3 /nologo /c /ZI /TC /FI "doublefann.h" $(SOURCE)
<<NOKEEP

"Debug Double Link" : "Debug Double Compile"
    @echo Linking Debug Double...
    @link @<<
    /OUT:"Debug Double/fanndoubled.dll" /INCREMENTAL /NOLOGO /DLL /DEBUG /PDB:"Debug Double/fanndoubled.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug Double/fanndoubled.lib" /MACHINE:X86   kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(DDBLOBJ)
<<NOKEEP

"Debug Double" : "Debug Double Link"
    @echo Copying Debug Double to bin...
    @if not exist bin mkdir bin
    @copy "Debug Double\fanndoubled.dll" "bin\fanndoubled.dll"
    @copy "Debug Double\fanndoubled.pdb" "bin\fanndoubled.pdb"
    @copy "Debug Double\fanndoubled.lib" "bin\fanndoubled.lib"

################################################################
# "Debug Double Multithread" - fanndoubleMTd.dll

DDBLMTOBJ = "Debug Double Multithread/fann.obj" "Debug Double Multithread/fann_error.obj" "Debug Double Multithread/fann_io.obj" "Debug Double Multithread/fann_options.obj" "Debug Double Multithread/fann_train.obj" "Debug Double Multithread/fann_train_data.obj"

"Debug Double Multithread Compile" :
    @echo Compiling Debug Double Multithread...
    @if not exist "Debug Double Multithread" mkdir "Debug Double Multithread"
    @cl @<<
    /Od /I "../src/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "FANN_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /RTC1 /MTd /Fo"Debug Double Multithread/" /Fd"Debug Double Multithread/vc70.pdb" /W3 /nologo /c /ZI /TC /FI "doublefann.h" $(SOURCE)
<<NOKEEP

"Debug Double Multithread Link" : "Debug Double Multithread Compile"
    @echo Linking Debug Double Multithread...
    @link @<<
    /OUT:"Debug Double Multithread/fanndoubleMTd.dll" /INCREMENTAL /NOLOGO /DLL /DEBUG /PDB:"Debug Double Multithread/fanndoubleMTd.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug Double Multithread/fanndoubleMTd.lib" /MACHINE:X86   kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(DDBLMTOBJ)
<<NOKEEP

"Debug Double Multithread" : "Debug Double Multithread Link"
    @echo Copying Debug Double Multithread to bin...
    @if not exist bin mkdir bin
    @copy "Debug Double Multithread\fanndoubleMTd.dll" "bin\fanndoubleMTd.dll"
    @copy "Debug Double Multithread\fanndoubleMTd.pdb" "bin\fanndoubleMTd.pdb"
    @copy "Debug Double Multithread\fanndoubleMTd.lib" "bin\fanndoubleMTd.lib"

################################################################
# "Debug Fixed" - fannfixedd.dll

DFXDOBJ = "Debug Fixed/fann.obj" "Debug Fixed/fann_error.obj" "Debug Fixed/fann_io.obj" "Debug Fixed/fann_options.obj" "Debug Fixed/fann_train.obj" "Debug Fixed/fann_train_data.obj"

"Debug Fixed Compile" :
    @echo Compiling Debug Fixed...
    @if not exist "Debug Fixed" mkdir "Debug Fixed"
    @cl @<<
    /Od /I "../src/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "FANN_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /RTC1 /ML /Fo"Debug Fixed/" /Fd"Debug Fixed/vc70.pdb" /W3 /nologo /c /ZI /TC /FI "fixedfann.h" $(SOURCE)
<<NOKEEP

"Debug Fixed Link" : "Debug Fixed Compile"
    @echo Linking Debug Fixed...
    @link @<<
    /OUT:"Debug Fixed/fannfixedd.dll" /INCREMENTAL /NOLOGO /DLL /DEBUG /PDB:"Debug Fixed/fannfixedd.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug Fixed/fannfixedd.lib" /MACHINE:X86   kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(DFXDOBJ)
<<NOKEEP

"Debug Fixed" : "Debug Fixed Link"
    @echo Copying Debug Fixed to bin...
    @if not exist bin mkdir bin
    @copy "Debug Fixed\fannfixedd.dll" "bin\fannfixedd.dll"
    @copy "Debug Fixed\fannfixedd.pdb" "bin\fannfixedd.pdb"
    @copy "Debug Fixed\fannfixedd.lib" "bin\fannfixedd.lib"

################################################################
# "Debug Fixed Multithread" - fannfixedMTd.dll

DFXDMTOBJ = "Debug Fixed Multithread/fann.obj" "Debug Fixed Multithread/fann_error.obj" "Debug Fixed Multithread/fann_io.obj" "Debug Fixed Multithread/fann_options.obj" "Debug Fixed Multithread/fann_train.obj" "Debug Fixed Multithread/fann_train_data.obj"

"Debug Fixed Multithread Compile" :
    @echo Compiling Debug Fixed Multithread...
    @if not exist "Debug Fixed Multithread" mkdir "Debug Fixed Multithread"
    @cl @<<
    /Od /I "../src/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "FANN_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /RTC1 /MTd /Fo"Debug Fixed Multithread/" /Fd"Debug Fixed Multithread/vc70.pdb" /W3 /nologo /c /ZI /TC /FI "fixedfann.h" $(SOURCE)
<<NOKEEP

"Debug Fixed Multithread Link" : "Debug Fixed Multithread Compile"
    @echo Linking Debug Fixed Multithread...
    @link @<<
    /OUT:"Debug Fixed Multithread/fannfixedMTd.dll" /INCREMENTAL /NOLOGO /DLL /DEBUG /PDB:"Debug Fixed Multithread/fannfixedMTd.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug Fixed Multithread/fannfixedMTd.lib" /MACHINE:X86   kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(DFXDMTOBJ)
<<NOKEEP

"Debug Fixed Multithread" : "Debug Fixed Multithread Link"
    @echo Copying Debug Fixed Multithread to bin...
    @if not exist bin mkdir bin
    @copy "Debug Fixed Multithread\fannfixedMTd.dll" "bin\fannfixedMTd.dll"
    @copy "Debug Fixed Multithread\fannfixedMTd.pdb" "bin\fannfixedMTd.pdb"
    @copy "Debug Fixed Multithread\fannfixedMTd.lib" "bin\fannfixedMTd.lib"

################################################################
# "Debug Float" - fannfloatd.dll

DFLTOBJ = "Debug Float/fann.obj" "Debug Float/fann_error.obj" "Debug Float/fann_io.obj" "Debug Float/fann_options.obj" "Debug Float/fann_train.obj" "Debug Float/fann_train_data.obj"

"Debug Float Compile" :
    @echo Compiling Debug Float...
    @if not exist "Debug Float" mkdir "Debug Float"
    @cl @<<
    /Od /I "../src/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "FANN_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /RTC1 /ML /Fo"Debug Float/" /Fd"Debug Float/vc70.pdb" /W3 /nologo /c /ZI /TC /FI "floatfann.h" $(SOURCE)
<<NOKEEP

"Debug Float Link" : "Debug Float Compile"
    @echo Linking Debug Float...
    @link @<<
    /OUT:"Debug Float/fannfloatd.dll" /INCREMENTAL /NOLOGO /DLL /DEBUG /PDB:"Debug Float/fannfloatd.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug Float/fannfloatd.lib" /MACHINE:X86   kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(DFLTOBJ)
<<NOKEEP

"Debug Float" : "Debug Float Link"
    @echo Copying Debug Float to bin...
    @if not exist bin mkdir bin
    @copy "Debug Float\fannfloatd.dll" "bin\fannfloatd.dll"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -