100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Makefiles Computing 2 CSCI240

Rating
-
Sold
-
Pages
2
Uploaded on
16-12-2022
Written in
2022/2023

These are the notes going over the topic of Makefiles for the course Computing 2, taken Fall of 2022.









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
December 16, 2022
Number of pages
2
Written in
2022/2023
Type
Class notes
Professor(s)
Andrew harris
Contains
All classes

Subjects

Content preview

Introduction:

• 2 parts:

◦ compiling .cpp files into object files

◦ linking object files into an executable that runs the program

• typically made of multiple entries, broken into 3 sections:

◦ Targets: the file you aim to create

‣ Object: made from compiling .cpp files

‣ Executable: linking object files

◦ Dependencies: the other files that the target is dependent on to run

◦ Commands



Make Basics:

• General structure is:

◦ {Target} : {Dependencies}

‣ {Tab} {Command}

• {Target} - name of the target you are trying to build.

◦ Can name whatever but is generally named after the file the target

will build

◦ Must be followed by a colon ( : ) character

• {Dependencies} - a list of files/targets that must be in place before

this target can be built

◦ Usually files/target defined somewhere else in the ake file

◦ Line underneath target MUST begin with a tab

• Can write any legit command, but typically is the command needed to
$3.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Mehumble

Get to know the seller

Seller avatar
Mehumble Indiana University/Purdue University At Indianapolis
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
15
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions