Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a top level Makefile in Bigproject directory ?pls Project 2. Assume that you are working on a big project contained in the directory Bigproiect.

create a top level Makefile in Bigproject directory ?pls image text in transcribed
Project 2. Assume that you are working on a big project contained in the directory Bigproiect. under this directory there are several subdirectories with names "lib", "include", "test" and "src". The objective is to create a top level Makefile in the Bigproject directory and each of the source code directories: lib, test and src. The include directory contains the header files for the project and does not need a Makefile as these don't have to be compiled separately the Bigproject directory it should automatically invoke the Makefile in each of the src directories automatically and build a library in the "lib" directory and two executables in each of "test" and "src" directory. Create any source files with all their header files in the include directory. Then create a Makefile in each of the source subdirectories and the top level directory to achieve this. When make is invoked in 2. While working on "big project" it is hard to keep track of the target dependencies in the Makefile. To help in management of these dependencies automatically gec has a -M/-MM option which automatically generates dependencies in the Makefile format for a given set of source files. Using these options and implicit rules/pattern rules of Make write a Makefile for any of your projects which auto- matically creates the dependency lists for cach of the .c/.cpp files and appends them to the end of the Makefile. (Hint: Have a "depend:" target in the Makefile which on invocation of"make depend" updates the dependency lists in the Makefile from which it was invoked

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions