Hi,

I am a total newbie when it comes to makefiles and now I'm in a need of one.

I have a directory structure as follows:

Project_root/Makefile
Project_root/src/
Project_root/src/widgets/
Project_root/include/
Project_root/include/widgets/

Each directory contains multiple source/header files.

I need to build a shared library out of this directory and perhaps install the include directory to /usr/include/libname/ and libname.so to /usr/lib/.

Please help me!

Best regards,
zEeLi

Hi,

I am a total newbie when it comes to makefiles and now I'm in a need of one.

I have a directory structure as follows:

Project_root/Makefile
Project_root/src/
Project_root/src/widgets/
Project_root/include/
Project_root/include/widgets/

Each directory contains multiple source/header files.

I need to build a shared library out of this directory and perhaps install the include directory to /usr/include/libname/ and libname.so to /usr/lib/.

Please help me!

Best regards,
zEeLi

Hi,
Makefile is a tool to create process modules and to link them to get the main executable.
I think u will have to write some scripts to achieve what u r saying.
Anyways I am also new to makefile. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.