Makefiles Intro

501 views

Published on

If you got this far in life without knowing what makefiles are, perhaps you shouldn't watch this keynote...

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
501
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Makefiles Intro

  1. 1. Introduction To Make Ynon Perek2005-12-31
  2. 2. Lecture Outline Software Development Cycle Introducing Make Makes Disadvantages A Simple “Hello Make” 2
  3. 3. Software Development Cycle 3
  4. 4. Unfortunately, Routine is Boring Transforming code into object files is a routine process Developers need to perform it “Following the manual” Error Prone and time consuming 4
  5. 5. Luckily, There Is A Better Way 5
  6. 6. Introducing Make The make utility was written by Stuart Feldman from Bell Labs in 1977 make automatically builds executable programs and libraries from source code make is widely used especially in UNIX based platforms 6
  7. 7. Introducing Make The make utility automatically determines which pieces of a larger program need to be recompiled This saves developers time and effort. A lot less error prone 7
  8. 8. Introducing Make 8
  9. 9. Introducing Make 9
  10. 10. Introducing Make Original make utility has evolved into three main branches: BSD make GNU make Microsoft nmake Each branch added their own set of unique features 10
  11. 11. Make The Bad Parts Decides whether to build dependencies based on a files timestamp Non intuitive syntax regarding spaces and tabs Platform dependent 11
  12. 12. A Sample make hellohello: hello.c gcc hello.c -o hello 12

×