Question

In: Computer Science

You are a renowned software developer and you have been hired by an old British boyband...

You are a renowned software developer and you have been hired by an old British boyband that wants to make a comeback in the industry. They ask you to make an app to showcase their new music and events. In your implementation, you have a class for each of the 5 group members, but you find that compiling each
band member’s class takes more time than you currently have. Luckily, you
remember that you learned about Makefiles in your favorite online class! You decide to create a Makefile to compile your classes to make testing more efficient. Since Makefiles can have multiple rules, write out the general structure of a single rule and explain how it should be interpreted.

Solutions

Expert Solution

Ans ) make command is used when we want to build(or compile) or run multiple files or programs at a time .The make utility identifies the part of a large program that needs to be recompiled and gives the command to compile or recompile it. make command can be used for  a program using the makefile. The makefile tells the compiler about what is to be compiled and the relation between the files in the program. The "make" command which is also called a make utility works by reading the makefile. The make command can be followed by many extensions when giving as a command to the terminal. We can also run "make" command by just typing "make" on the terminal and then the makefile will be looked . If makefile is found then appropriate action can be taken. If it is not found then error messages are shown .

General syntax of make :

make [-f makefile ] [options ...]

Syntax using -f :

make -f 'filename'

Syntax for specific target in the makefile out of many targets :

make target

When a make command is executed you will find that many other files like filename.o and other files are created in the same directory where you have the program on which you are using the makefile. These files are created as a part of compilation and execution of the program and makefiles associated with them. Some of these files are not recreated when it is recompiled when we use 'make' command again. And some of them are recreated when we recompile. In order to start fresh and to remove all those intermediate files created after 'make' command is executed we can make use of clean command.

Syntax of clean:

make clean

To build the programs we can just use make command and we can also use various options for different purposes. e.g. -d options builds the program in debug mode when given as "make -d " command.



Related Solutions

You have been hired to manage a new software development project. The project will use OO...
You have been hired to manage a new software development project. The project will use OO design. As part of your job, you must establish an evaluation procedure for the UML Class Diagrams that your developers produce. Discuss how you approach this task.
RUN THIS PROGRAM ON NETBEANS As a Software Developer, you have received a requirement from a...
RUN THIS PROGRAM ON NETBEANS As a Software Developer, you have received a requirement from a Company to implement a prototype for its payroll system. You receive the following specifications: If an employee works more than its regular hours, it is considered overtime and it will be paid based on the employee’s experience. All employees are paid biweekly (80 hours) Employee taxes: 1% This company manages three categories of workers based on employee’s experience. Group 1 (Silver) o Pay rate:...
You have been contacted by the World Health Organization. Because you are a renowned microbiologist, they...
You have been contacted by the World Health Organization. Because you are a renowned microbiologist, they have asked you to join a panel of experts to come up with recommendations to curb the global problem of antibiotic resistance.   Before the meeting, you need to draft a document outlining at least one recommendation in each of the following categories: 1) discovery of new antibiotics, 2) strategies to make ineffective antibiotics effective again, 3) ways to minimize the emergence and spread of...
As a small software developer firm, you have approached the AXZ Bank to obtain a term...
As a small software developer firm, you have approached the AXZ Bank to obtain a term loan so that the firm can purchase a new server. The AXZ bank provides two (2) offers to your company, as listed below: a) a loan of $100,000 over a five (5) year period at an interest rate of 7.65% per annum (per year) payable at the end of each month. b) a loan of $100, 000 over a three (3) year period at...
As a small software developer firm, you have approached the AXZ Bank to obtain a term...
As a small software developer firm, you have approached the AXZ Bank to obtain a term loan so that the firm can purchase a new server. The AXZ bank provides two (2) offers to your company, as listed below: a) a loan of $100,000 over a five (5) year period at an interest rate of 7.65% per annum (per year) payable at the end of each month. b) a loan of $100, 000 over a three (3) year period at...
Choice 1. You are the new software developer at work. You are brought into a meeting...
Choice 1. You are the new software developer at work. You are brought into a meeting with clients that do not understand the idea of sorting data. Now you know, that you cannot use complex math to explain, but you can illustrate in diagrams. Basically, this group has been working with unsorted data and you must explain why their searches and reports will be so much faster with sorted data. You do not know anything specific about their data, but...
You are working as the software developer and need to identify the best sorting algorithm. You...
You are working as the software developer and need to identify the best sorting algorithm. You can pick any two-sorting algorithm. You need to determine which sorting algorithm is the best to sort the array of 10k elements. Use the following steps to help with your solution: Create C++ functions for any two-sorting algorithm. Write down the random array generation function to generate at least 10k elements. Pass the same array into both the sorting algorithm. Calculate the end transactiontime-start...
What professional responsibilities does a software developer have with respect to the testing and documentation of...
What professional responsibilities does a software developer have with respect to the testing and documentation of code that he/she develops?
What professional responsibilities does a software developer have with respect to the testing and documentation of...
What professional responsibilities does a software developer have with respect to the testing and documentation of code that he/she develops? And Which aspects of testing and documentation would a developer normally not be involved in? Explain your answer.
You are working as a software developer for a large insurancecompany. Your company is planning...
You are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual Basic to Java and this will require new calculations. You will be creating a program that calculates the insurance payment category based on the BMI score.Your Java program should perform the following things:Take the input from the user about the patient name, weight, birthdate, and height.Calculate Body Mass Index.Display person name and BMI Category.If the BMI Score...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT