• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
"make" system
 

"make" system

on

  • 2,795 views

 

Statistics

Views

Total Views
2,795
Views on SlideShare
2,276
Embed Views
519

Actions

Likes
0
Downloads
0
Comments
0

6 Embeds 519

http://profession.sarika-pugs.com 292
http://sysplay.in 212
http://www.sysplay.in 8
http://localhost 3
http://shrishti 2
http://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    "make" system "make" system Presentation Transcript

    • “make” System© 2010 Anil Kumar Pugalia <email@sarika-pugs.com> All Rights Reserved.
    • What to Expect?What is make & its System?Learning make by Examples © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 2 All Rights Reserved.
    • What is make?Tool to automatically execute commands Any number, Any lengthBased on complete dependency chains Typically based on time (of change)Majorly replacing the manual process Effectively saving time & manual errorsTypical usages Project build system (compilation, etc) Packaging files (binaries, documentation, source code) Installations (of Systems, Packages, ...) Anything that can be automated based on dependencies © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 3 All Rights Reserved.
    • Usage of makeInitiated by the command makeControlled by its configuration files Containing rules to execute various commands Based on various target dependenciesDefault configuration files GNUmakefile, makefile, Makefile (in that order)Other configuration file using -fAssisted by many in-built rules & variables © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 4 All Rights Reserved.
    • Typical Ruletarget: dependencies<tab>action<tab>action<tab>...Exampleabc: pqr cp pqr abc © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 5 All Rights Reserved.
    • Sample Makefilexyz: abc cp abc xyzabc: pqr cp pqr abcpqr: touch pqr © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 6 All Rights Reserved.
    • Lets create a Makefile forAutomatically compiling a C program © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 7 All Rights Reserved.
    • Extending the MakefileBuild an executable from many C filesBuild a project with 10,000 C filesAdd the users header file dependenciesAutomatic header dependency generation © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 8 All Rights Reserved.
    • What all have we learnt?make & its benefitsUsage of makeExamples of using make © 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 9 All Rights Reserved.
    • Any Queries?© 2010 Anil Kumar Pugalia <email@sarika-pugs.com> 10 All Rights Reserved.