Make error when using $(WorkspacePath) in Project Settings
Posted: Thu Mar 10, 2016 3:49 pm
Ehi!
I made a super-simple workspace with two projects:
1. A static C library
2. A console C application
My idea was to verify how the CodeLite handle project dependencies.
I have a few questions:
1. So far, the only dependency handle is regarding the build order... it will be nice to import for example
the output file of a dependent library project (to avoid to mess the Linker options)
2. I'm trying to use the same Output folder for the projects, in particular my structure should be (for Debug):
include folder: $(WorkspacePath)/include
intermediate folder: $(WorkspacePath)/build/Debug
output file: $(WorkspacePath)/build/lib$(ProjectName)D.a
the include folder can be fixed easily with the global settings (see the attachment).
The remaining two settings are instead stopping the building process due to some make error.
C:\WINDOWS\system32\cmd.exe /C mingw32-make -e -f Makefile
"----------Building project:[ staticexample - Debug ]----------"
staticexample.mk:75: *** multiple target patterns. Stop.
mingw32-make: *** [All] Error 2
I do not understand what is wrong in the Makefile to cause this, but I suspect that
1. differentiating the intermediate folder with the output folder will be beneficial for a good IDE
2. it is mandatory that macro (such as $(WorkspacePath)) should work also in project settings
without compromising a simple project like this.
Hope you can help me with this
V.
I made a super-simple workspace with two projects:
1. A static C library
2. A console C application
My idea was to verify how the CodeLite handle project dependencies.
I have a few questions:
1. So far, the only dependency handle is regarding the build order... it will be nice to import for example
the output file of a dependent library project (to avoid to mess the Linker options)
2. I'm trying to use the same Output folder for the projects, in particular my structure should be (for Debug):
include folder: $(WorkspacePath)/include
intermediate folder: $(WorkspacePath)/build/Debug
output file: $(WorkspacePath)/build/lib$(ProjectName)D.a
the include folder can be fixed easily with the global settings (see the attachment).
The remaining two settings are instead stopping the building process due to some make error.
C:\WINDOWS\system32\cmd.exe /C mingw32-make -e -f Makefile
"----------Building project:[ staticexample - Debug ]----------"
staticexample.mk:75: *** multiple target patterns. Stop.
mingw32-make: *** [All] Error 2
I do not understand what is wrong in the Makefile to cause this, but I suspect that
1. differentiating the intermediate folder with the output folder will be beneficial for a good IDE
2. it is mandatory that macro (such as $(WorkspacePath)) should work also in project settings
without compromising a simple project like this.
Hope you can help me with this
V.