[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile C vs C++
From: |
Greg Chicares |
Subject: |
Re: Makefile C vs C++ |
Date: |
Mon, 17 Sep 2012 22:45:53 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
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++.
- Makefile C vs C++, Hernán F . B ., 2012/09/17
- Re: Makefile C vs C++,
Greg Chicares <=