On 2012-09-17 19:25Z, Hernán F.B. wrote:
> I'm trying to include in an ANSI C project, some (OpenCV) libraries made in
> c++.
> Basically people told me to change the compiler to the g++, but the
> makefile of this project is quite unusual for my experience in makefiles,
> and I don't find out what macro to change. It uses some standard make
> variables like MAKECMDGOALS and MAKE (which calls recursively makefile).
> Here is the main part of the make file (without the macro's declaration):
> 
> .PHONY: $(TARGET) build_libs
> 
> all: build_libs $(TARGET)
> 
> $(TARGET):
>     @$(MAKE) -C $(SDK_PATH)/VP_SDK/Build $(TMP_SDK_FLAGS) $(SDK_FLAGS) 
> $(MAKECMDGOALS) USE_LINUX=yes

As you said, this invokes 'make' recursively. The '-C' option
invokes 'make' in directory $(SDK_PATH)/VP_SDK/Build . Probably
that directory contains a submakefile that invokes the compiler.
Examine that submakefile to determine what changes may be needed
to support C++.


_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to