Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make from src directory in build directory?

Tags:

My question is short and simple. I have my source directory mySrcDir, where my Makefile is also located and I want to compile it into my build directory myBuildDir.

How do I make the content of my /some/path/mySrcDir into /another/path/myBuildDir?

P.S: OS Ubuntu 14.04

like image 386
OnurA Avatar asked Apr 12 '16 14:04

OnurA


People also ask

What is the build directory?

A build directory contains most of the information needed to diagnose build issues. There are different ways to collect it.

What is src directory Linux?

In general, the src directory contains the source files needed for application development. The src directory can be expanded to show the following directories.

Where is kernel build directory?

To see a full description of how to use other advanced build options, refer to the in-kernel documentation on the build system, which can be found in the Documentation/kbuild/ directory of the sources.


1 Answers

1) In your build directory call this :

make -f /some/path/mySrcDir/your-makefile

The -f option is to specify the file you're trying to 'make'.

2) If the Makefile was generated by GNU autotools you can try this :

./configure --prefix=/another/path/myBuildDir

and then make

like image 105
Badr El Hiouel Avatar answered Oct 05 '22 16:10

Badr El Hiouel