-
Notifications
You must be signed in to change notification settings - Fork 2
Create new compilation configuration
#Create a new configuration
#Modify the compilation settings
Properties > C/C++Build > Settings
Select the configuration, and modify the compilation settings. Click on OK once it's done.
#Compile
Select the compilation (arrow near the Build "hammer"). Click on the Build "hammer" to compile.
#Compile using a terminal
Once these steps done, you can compile the project from the terminal. Don't forget to repeat the compilation procedure before each time you add classes or new files.
In the lpaggreg directory:
###Compile
$cd [name_of_the_new_compilation_configuration]
$make
###Clean
$cd [name_of_the_new_compilation_configuration]
$make clean
#Easy make and installation
You'll have to edit the makefile
contained in the root of lpaggreg, and add the rules to compile lpaggreg with your new configuration project.
Define new rules following these schemas (replace configuration
by the right name):
(cd configuration; make)
install-configuration: configuration
./install.sh configuration "${LIB}" "${INCLUDE}" ldconfig
Add these new rules in the .PHONY
list.
Add a new line in the clean:
rule (replace .ext
by the extension of the library that is generated).
clean:
[...]
(cd configuration; rm *.ext*; make clean)
Now, edit `install.sh`.
You will have to take into account your new configuration.
If the name of this one contains `static`, `shared`, or `bench`, it will follow the existing rules for the installation.
To avoid any conflict, we advise you to use a new subdirectory to move the header .h files within during the installation, and not the default one (/usr/include/lpaggreg).
Be careful with: this location will be requested by the program using your new version of the library. Remember to update this location in your other programs.
Be also careful with the prefix you give to your library (for instance, check the bench-linux configuration and rule that give the prefix `bench` to the lpaggreg library name). If you add a prefix following this way, don't forget to take this into consideration for the compilation settings of you programs using lpaggreg.