Migrate to CodeBlocks for Windows builds
This commit is contained in:
parent
54012d23dc
commit
483186efea
4 changed files with 62 additions and 115 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1,4 +1,4 @@
|
|||
* text eol=lf
|
||||
nmrpflash.dev text eol=crlf
|
||||
nmrpflash.cbp text eol=crlf
|
||||
nmrpflash.manifest text eol=crlf
|
||||
nmrpflash.rc text eol=crlf
|
||||
|
|
|
@ -243,8 +243,8 @@ $ pkg install nmrpflash
|
|||
###### Windows
|
||||
|
||||
The repository includes a
|
||||
[DevCpp](http://sourceforge.net/projects/orwelldevcpp/)
|
||||
project file (`nmrpflash.dev`). Download the latest
|
||||
[CodeBlocks](https://www.codeblocks.org/)
|
||||
project file (`nmrpflash.cbp`). Download the latest
|
||||
[Npcap SDK](https://nmap.org/npcap/)
|
||||
and extract it into the root folder of the `nmrpflash` sources.
|
||||
|
||||
|
|
59
nmrpflash.cbp
Normal file
59
nmrpflash.cbp
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||
<CodeBlocks_project_file>
|
||||
<FileVersion major="1" minor="6" />
|
||||
<Project>
|
||||
<Option title="nmrpflash" />
|
||||
<Option pch_mode="2" />
|
||||
<Option compiler="gcc" />
|
||||
<Build>
|
||||
<Target title="default">
|
||||
<Option output="nmrpflash" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="Obj" />
|
||||
<Option type="1" />
|
||||
<Option compiler="gcc" />
|
||||
</Target>
|
||||
</Build>
|
||||
<Compiler>
|
||||
<Add option="-Wall" />
|
||||
<Add option="-std=c99" />
|
||||
<Add option="-m32" />
|
||||
<Add option='-DNMRPFLASH_VERSION=\"0.9.16\"' />
|
||||
<Add option="-DWINVER=0x0600" />
|
||||
<Add option="-D_WIN32_WINNT=0x0600" />
|
||||
<Add option="-DWIN32_LEAN_AND_MEAN" />
|
||||
<Add option="-D__USE_MINGW_ANSI_STDIO" />
|
||||
<Add directory="Npcap/Include" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-s" />
|
||||
<Add option="-m32" />
|
||||
<Add library="iphlpapi" />
|
||||
<Add library="ws2_32" />
|
||||
<Add library="advapi32" />
|
||||
<Add library="wpcap" />
|
||||
<Add library="packet" />
|
||||
<Add directory="Npcap/Lib" />
|
||||
</Linker>
|
||||
<Unit filename="ethsock.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="main.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="nmrp.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="nmrpd.h">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="tftp.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="util.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Extensions>
|
||||
<lib_finder disable_auto="1" />
|
||||
</Extensions>
|
||||
</Project>
|
||||
</CodeBlocks_project_file>
|
112
nmrpflash.dev
112
nmrpflash.dev
|
@ -1,112 +0,0 @@
|
|||
[Project]
|
||||
FileName=nmrpflash.dev
|
||||
Name=nmrpflash
|
||||
Type=1
|
||||
Ver=2
|
||||
ObjFiles=
|
||||
Includes=Npcap\Include
|
||||
Libs=Npcap\Lib
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=-DNMRPFLASH_VERSION=\"0.9.15\"_@@_ -D_WIN32_WINNT=0x0600_@@_
|
||||
CppCompiler=
|
||||
Linker=-liphlpapi_@@_-lws2_32_@@_-ladvapi32_@@_-lwpcap_@@_-lpacket_@@__@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=
|
||||
ObjectOutput=Obj
|
||||
LogOutput=
|
||||
LogOutputEnabled=0
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=nmrpflash.exe
|
||||
HostApplication=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
CommandLine=-L
|
||||
Folders=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=3
|
||||
CompilerSettings=00000001a0000000000001000
|
||||
UnitCount=6
|
||||
|
||||
[VersionInfo]
|
||||
Major=1
|
||||
Minor=0
|
||||
Release=0
|
||||
Build=0
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=1.0.0.0
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=1.0.0.0
|
||||
AutoIncBuildNr=0
|
||||
SyncProduct=1
|
||||
|
||||
[Unit1]
|
||||
FileName=ethsock.c
|
||||
CompileCpp=0
|
||||
Folder=
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit2]
|
||||
FileName=main.c
|
||||
CompileCpp=0
|
||||
Folder=
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit3]
|
||||
FileName=nmrp.c
|
||||
CompileCpp=0
|
||||
Folder=
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit4]
|
||||
FileName=tftp.c
|
||||
CompileCpp=0
|
||||
Folder=
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit5]
|
||||
FileName=nmrpd.h
|
||||
CompileCpp=0
|
||||
Folder=
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit6]
|
||||
FileName=util.c
|
||||
CompileCpp=0
|
||||
Folder=
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
Loading…
Add table
Reference in a new issue