Build systems not managed by Eclipse.
- Recommended (needed) for existing projects.
- Any build system that supports command line build can be covered using this mechanism. (e.g. Using MSVC)
It involves these steps:
- Add the source within Eclipse
- Tell Eclipse how to build it.
- (Optionally) Fix Indexing
Since we are covering Zlib source in this book, let’s have a walk through how that code is imported / built into Eclipse.
For our example, Zlib is present in
And the build commands is
make -f win32/Makefile.gcc LOC="-DDEBUG -g" all
Follow the steps as shown below to import any Makefile based project into Eclipse.
The parameters in steps marked
[X] might have to be adapted other projects.
Create a new C Project.
C Project (Select
C++ Project if your
project is based on C++`)
[X] Set project name as
[X] Set as
Setas (On Linux, select )
Select the option,
Change the build command to
make -f win32/Makefile.gcc LOC="-DDEBUG -g"
The Console view should show the build output.
The Project Explorer view should show the generated binaries.