0

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

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by dkalita
0

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. :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.