[SOLVED] Data Structure-lab 2 Makefiles

20.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

In this lab please develop a makefile for the code provided in your lab02 directory. Please ensure the following:

  1. Rules to compile each .cpp file into a .o file. Those .o files should be create in an objs directory.
  • You will need a rule to create a obj directory and then put the .o file in there when compiling.
  1. Add an “all” rule that:
    • Compiles all cpp files to .o files into the objs directory
    • After creating the .o files, link them into an executable file in the lab02 directory.
  2. Create a rule “run” that runs your program with valgrind.
  3. Finally create a rule “clean” that removes the object files, and the executable.
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.