Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.85 KB

File metadata and controls

36 lines (28 loc) · 1.85 KB

img

Makefiles

About

A makefile is a script that automates the building of a program from source code. In the case of C programs, a makefile typically includes instructions for compiling the source code into object files and linking those object files into an executable program. Makefiles can greatly simplify the build process by automating repetitive tasks and allowing developers to easily manage complex build configurations. In this context, C makefiles provide a way to manage the build process for C programs in a structured and efficient manner. Hang tight as we dive into making makefiles. ^_^

make-files

Resources

Read or Watch

  1. Makefiles
  2. Installing the make utility
  3. make - official documentation

Learning objectives

By the end of this project, you should be able toexplain to anyone without the help of Google

  • What are make, Makefiles
  • When, why and how to use Makefiles
  • What are rules and how to set and use them
  • What are explicit and implicit rules
  • What are the most common / useful rules
  • What are variables and how to set and use them

Requirements

General

  • Allowed editors: vi, vim, emacs
  • OS: Ubuntu 20.04 LTS
  • Version of gcc: 9.3.0
  • Version of make: GNU Make 4.2.1
  • All your files should end with a new line

More info

Files

In the following task, we are going to use these files we want to compile these only