How to Create a Simple Makefile - Introduction to Makefiles

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2015
  • In this video I show how to create a simple makefile.
    Want to learn C++? I highly recommend this book amzn.to/1PftaSt
    Donate - bit.ly/17vCDFx
    STILL NEED MORE HELP?
    Connect one-on-one with a Programming Tutor. Click the link below:
    trk.justanswer.com/aff_c?offe...
    :)

ความคิดเห็น • 390

  • @ArcieGaming
    @ArcieGaming 5 ปีที่แล้ว +125

    Makefiles have always thrown me off. I always stress them because every "tutorial" online goes super in-depth on stuff I don't really need at this point. Starting with the reference down a few lines was awesome and everything clicked when you explained it. Thank you!

  • @AnuliaSuper
    @AnuliaSuper 8 ปีที่แล้ว +667

    This is one of the best tutorials I have ever seen. Your explanation is concise, straight to the point and there was no unnecessary talking. If only more tutorial makers could be like you. Great job, thanks so much! Subscribed.

  • @alireza98325
    @alireza98325 5 ปีที่แล้ว +78

    9:13 "so I think that was a pretty good introduction to Makefiles"
    I agree 👍👍👍

    • @alex12I3
      @alex12I3 3 ปีที่แล้ว

      Me too

    • @zaidwaqizulkifli6554
      @zaidwaqizulkifli6554 2 ปีที่แล้ว +1

      I disagree .. wasn't pretty good but extremely good.

  • @jonathancollett4174
    @jonathancollett4174 วันที่ผ่านมา

    Wow!! 9 years later and this video still holds up and is very informative. I just created my first makefile!!

  • @jedijackattack3594
    @jedijackattack3594 4 ปีที่แล้ว +106

    This is probably one of the best tutorials on youtube or in general for make files just for the basics. this is great buddy

  • @majinmilad
    @majinmilad 5 ปีที่แล้ว +131

    I logged in to my TH-cam account just to leave a comment ... your tutorial is so good. I literally just learned so much I actually feel comfortable with the concept now. Thank you so much
    You presented it in a simplified format and addressed every angle (like what "-c" is included for), demonstrated the relations between the main file, the function file, the header file, and the Makefile itself, and were very visual with your cursor which helps a lot.
    I was doing this stuff for class but literally didn't understand what I was doing, was just sort of plugging and chugging the commands. I now understand. You're a very good teacher keep it up!

  • @jude-harrisonobidinnu3876
    @jude-harrisonobidinnu3876 2 ปีที่แล้ว +8

    I haven't even completed the video and I'm already wowed by your presentation of the concept! Apt, concise and straight to the point!. Thank you so much Paul.

  • @misteronsepatro7018
    @misteronsepatro7018 5 ปีที่แล้ว +9

    OMG your tutorial helped me so much for my projects it's really clear I understood everything easily
    people like you deserve a special place in heaven

  • @joe0404
    @joe0404 8 ปีที่แล้ว +1

    Oh man! You saved me. I'm more into the programming side of computer science, but I'm taking a Linux commands class, as required for any comp science degree at my school. My professor spent an hour teaching this lesson, but due to a language barrier, I didn't get it, but your tutorial makes it so easy to understand. Thank you very much.

  • @norcal6181
    @norcal6181 6 ปีที่แล้ว +4

    Thank you so much for this video. I'm taking a C++ class at my local community college and I'm using Linux and Vim for my development platform. I've just been winging it with the make files which was fine when we were doing single file programs, but now we're getting into programs with 20 or 30 files. Before watching this I had my makefiles setup to where they are recompiling everything every time I compiled. I was like there has to be a better way. This is it! Thank you for the awesome information!

  • @_IamJr_
    @_IamJr_ 4 ปีที่แล้ว +1

    I have read three tutorials and seen a few videos before I landed here. After all that i endured, I was still not understanding a makefile or its concepts. After watching your video, I was enlightened. It was well explained and the example was understandable with great details even a beginner could understand. Great Job! Subscribed.

  • @derelicts9503
    @derelicts9503 ปีที่แล้ว +3

    I've started my C++ journey yesterday and I'm trying to make sense of the basics. Your tutorial is really clear and concise, thank you!!!

  • @WhileTrueThenDream
    @WhileTrueThenDream 4 ปีที่แล้ว +2

    This is the very best makefile tutorial I have ever seen. I spent to days modifying a nightmare of mixed cpp and c files, many libraries and so on and every posible flag...and your tutorial helped me to better refresh and understand the basics. Thank you

  • @JulietNovember9
    @JulietNovember9 8 ปีที่แล้ว

    spun my wheels for a while trying to make heads or tails using the coursework notes and other sites... this video explained everything amazingly!! you're a legend! thanks!

  • @jordanvert
    @jordanvert 4 ปีที่แล้ว +2

    I never leave comments on videos but I have to say you explained this so perfectly. Very easy to understand! Great Job!

  • @Pawl0solidus
    @Pawl0solidus 4 ปีที่แล้ว

    That was just what I needed! Always thought that makefiles were very complicated, but thanks to you now it's very simple to understand! Thank you vey much!!!

  • @samim.4949
    @samim.4949 3 ปีที่แล้ว

    I can't believe this. This explanation of Makefile is so good I was able to finish my project in time with working Makefile. Thank you.

  • @KaruniaSentosa
    @KaruniaSentosa 4 ปีที่แล้ว +1

    I love this tutorial! Clean explanation and very understandable. Thank you for making this tutorial!

  • @pankajniroula4388
    @pankajniroula4388 5 ปีที่แล้ว

    This is the hands down the best that helps a beginner understand Makefile.

  • @stephenjames5745
    @stephenjames5745 3 ปีที่แล้ว

    This is the best makefile explanation I have read. It just makes so much sense. Thank you!

  • @garimachauhan9916
    @garimachauhan9916 9 หลายเดือนก่อน +1

    after spending hours trying to understand makefiles...i was ready to give up but decided to give it a last shot thru ur video..thank you sooo mucch for explaining each and every line of the code!! You made my day!

  • @FlooferLand
    @FlooferLand 3 ปีที่แล้ว +4

    1:17 Light mode terminalllll, my eyessssss
    Thank you for the video aswell, literally the only decent video explaining Makefiles i could find on the entirety of TH-cam

    • @DariusOutdoors
      @DariusOutdoors 4 หลายเดือนก่อน

      Some people like to wear shades working at the PC.

  • @christianborao4248
    @christianborao4248 5 ปีที่แล้ว

    Thank you so much for this video. I tried reading documentation on Makefiles but didn't understand anything. Now that I've gone through this video, I understand! Excellent introduction. I can pretty easily extend the ideas presented here to more advanced Makefiles.

  • @LOGICOMA
    @LOGICOMA 2 ปีที่แล้ว

    Excellent explanation! Quick, clear and concise! Top job, mate!

  • @alika8236
    @alika8236 4 ปีที่แล้ว

    Thank you so much for this video. I'm a total beginner with makefiles and you cleared a lot of things in my head !

  • @NotDovahClean
    @NotDovahClean ปีที่แล้ว

    This is an awesome tutorial! Few days ago my prof gave a handout about how to make a Makefile but it didn’t explain how it actually works. This tutorial was a great explanation. Thank you sir!!

  • @vojazzy11
    @vojazzy11 3 ปีที่แล้ว

    Oh my god, thank you so much for a perfect explanation. To add on to what everyone else is saying - BEST tutorial I've ever seen!

  • @breelindee4627
    @breelindee4627 5 ปีที่แล้ว +5

    This is a great and very informative video! You explained the concept so well, thank you for your help!

  • @rafaelperes6333
    @rafaelperes6333 6 ปีที่แล้ว

    You really should make a small series on more advanced topics in Makefile.
    This short tutorial and introduction to Makefiles is very clear for those dealing with Makefiles for the first time.

  • @mileswiggins2174
    @mileswiggins2174 2 ปีที่แล้ว

    Finally this is like the one video that makes a lot of sense for makefiles. But since I'm inexperienced gotta start somewhere! As time goes on I will understand other videos on makefiles. Thanks!!!!!

  • @mackiej
    @mackiej 4 ปีที่แล้ว

    Thank you for the clear and straightforward explanation of the makefile!

  • @jonas14812
    @jonas14812 2 ปีที่แล้ว

    Great tutorial! Simple, straightforward and easily understandable! Nice one

  • @kaviyasubramanian4908
    @kaviyasubramanian4908 4 ปีที่แล้ว

    I was searching the explanation for make files for days....and I am so satisfied with this...great job...thank u so much..for making it so easy to understand

  • @TUMATATAN
    @TUMATATAN 5 ปีที่แล้ว

    Best explanation of how something works. EVER!!! I just subscribed to your channel.

  • @mekacheradem4720
    @mekacheradem4720 6 ปีที่แล้ว +2

    Man you're a legend thanks ! you would be a perfect teacher...Subscribed !

  • @metaljesus5334
    @metaljesus5334 ปีที่แล้ว

    This dude singlehandedly explained how to make a fucking Makefile in less than what it would have taken me to finish taking a shit. You've earned a sub.

  • @frederickshafer7405
    @frederickshafer7405 5 ปีที่แล้ว

    I have avoided using linux for coding for 3 years now because an old prof of mine explained makefiles horribly. You've helped me regain my ability to use linux again, thank you.

  • @kal9001
    @kal9001 6 ปีที่แล้ว +1

    I've been spoiled by IDE's and now I'm stuck trying to work with a bare tool chain... more through choice and necessity as I need to get to grips with this stuff as I know it will make things easier when pulling source code and libraries from other places. Very useful information.

  • @davictor24
    @davictor24 4 ปีที่แล้ว

    This is the most concise TH-cam tutorial I have seen on any topic. You have earned a new subscriber :).

  • @MayureshKadu
    @MayureshKadu ปีที่แล้ว

    That was a great and very concise introduction to make files. I keep referring it out to people I help out as a quick intro to the topic. Thanks!

  • @hannesthiersen8170
    @hannesthiersen8170 4 ปีที่แล้ว

    This is SO simple yet SOOO informative. Subscription deserved.

  • @mertcokelek5420
    @mertcokelek5420 5 ปีที่แล้ว

    Brilliant! Thank you so much. Very clean and smooth explanation. Greetings from Turkey

  • @FeedehC
    @FeedehC 3 ปีที่แล้ว

    Really great. Well explained and brief, just what I needed. Thanks a lot!

  • @ericxue3244
    @ericxue3244 ปีที่แล้ว

    Everything makes so much sense now. Well done!

  • @rugmaable
    @rugmaable 10 หลายเดือนก่อน

    very precise. Thanks for taking the time to explain the concept. This is the first time I come across makefile and it makes perfect sense. I now fully understand how this thing works.

  • @royanaskhat8300
    @royanaskhat8300 2 ปีที่แล้ว

    Best tutorial about makefile! Very well explained! Thank you for making this video!

  • @freeruninja
    @freeruninja 7 ปีที่แล้ว

    legit insane tutorial seems pretty simple when you explain.

  • @lachierox28
    @lachierox28 5 ปีที่แล้ว

    insanely well spoken and directed

  • @anthonysmith1026
    @anthonysmith1026 4 ปีที่แล้ว

    Probably the best tutorial I have ever seen.

  • @cheapmoviesnow
    @cheapmoviesnow 5 ปีที่แล้ว

    I wish more videos were like this, simple, only explaining the concept at hand. Other tutorials of more advanced programming often assume you have knowledge that leads to you being more confused

  • @jakeholle6065
    @jakeholle6065 8 ปีที่แล้ว

    Thanks! I had to learn how to write a makefile for an exam and you explained it very well. +1 subscriber

  • @santaana36
    @santaana36 4 ปีที่แล้ว +1

    Oh, THAT'S how Makefiles work. Best tutorial ever.

  • @BusinessBuzz
    @BusinessBuzz 5 ปีที่แล้ว +3

    Awesome video! Perfectly explained

  • @GabrielSoares-mt5il
    @GabrielSoares-mt5il 4 หลายเดือนก่อน

    Thanks for the straight-forward to the point tutorial!

  • @johnpaul2205
    @johnpaul2205 3 ปีที่แล้ว +1

    Y'all are so blessed to know this stuff. I can't even figure out my phone sitting God 🙏

  • @ricardohincapie1537
    @ricardohincapie1537 4 ปีที่แล้ว

    Nice way of explain it. I was so confused before I saw this tuto. Thanks!

  • @JustNook
    @JustNook 6 ปีที่แล้ว

    Awesome video!! Helped my finish my computer science Homework!!

  • @ricardo.mazeto
    @ricardo.mazeto 8 ปีที่แล้ว +1

    Great explanation! Thank you so much!

  • @OpenDiaryNKM
    @OpenDiaryNKM 7 ปีที่แล้ว +5

    I must leave a praise in comment box for this tut. Even though I knew about make file. Great explanation!

  • @i_o_media
    @i_o_media 2 ปีที่แล้ว +1

    thank you such much paul this helped me clear all confusion around makefile

  • @rie9950
    @rie9950 3 ปีที่แล้ว

    Great tutorial. Probably the best on "Makefiles".

  • @Karaboseopa-jx1qy
    @Karaboseopa-jx1qy 29 วันที่ผ่านมา

    The best explanation of makefiles i have ever seen

  • @eliasalabssie1965
    @eliasalabssie1965 5 ปีที่แล้ว +1

    you just input happiness into my life

  • @TheTaekwondo1996
    @TheTaekwondo1996 3 หลายเดือนก่อน

    Thanks a lot for this informative tutorial. It's one of the great tutorials about makefiles.

  • @ashrasmun1
    @ashrasmun1 6 ปีที่แล้ว

    Unbelievably helpful. Thank you a lot!

  • @jawnvawn
    @jawnvawn ปีที่แล้ว

    Really good intro for an intermediate topic. Thanks for making the tutorial!

  • @TheExcellentVideoChannel
    @TheExcellentVideoChannel ปีที่แล้ว

    Great tutorial covering the foundations. On to something intermediate now.

  • @knauxu
    @knauxu 2 ปีที่แล้ว

    This guy explains things like he knows all the secrets of the multiverse. I am enlightened.

    • @mileswiggins2174
      @mileswiggins2174 2 ปีที่แล้ว

      That is so true. Everything he said makes sense which is nice since I'm trying to teach myself c++

  • @kerimgueney
    @kerimgueney 2 ปีที่แล้ว

    Clean and concise introduction. Great stuff.

  • @berend109
    @berend109 3 ปีที่แล้ว

    How was I not able to accomplish this, thank you for this simple tutorial I was able to create a makefile first try after watching this.

  • @TheSkarabeush
    @TheSkarabeush 2 ปีที่แล้ว

    Thx a ton, like others wrote below I understood it all after watching your video, thank you.

  • @Countdown142
    @Countdown142 6 ปีที่แล้ว

    1000th like! Thanks for the video! Helped me understand the syntax for makefiles!

  • @zal9706
    @zal9706 5 ปีที่แล้ว +1

    it wasn't working for me until I realized that "Makefile" literally has to be named that EXACTLY, case-sensitive and all. Works, and simply explained thank you.

    •  5 ปีที่แล้ว +1

      you can use -f and name it difrently. But usally the default Makefile is called like that.

    • @zal9706
      @zal9706 5 ปีที่แล้ว

      Björn Bidar oh I didn’t know that

    • @zal9706
      @zal9706 5 ปีที่แล้ว

      Thanks

    •  5 ปีที่แล้ว

      Zal Look here for example: github.com/Thaodan/shpp/blob/master/Makefile

  • @umeshpant3398
    @umeshpant3398 2 ปีที่แล้ว

    Thanks Paul.
    You have helped alot!!
    Love from India.

  • @recklessroges
    @recklessroges 5 ปีที่แล้ว +3

    Perfect introduction to Makefile. Exactly what a person needs if they have never used Makefile before, (and you resisted the temptation to throw too much at them.)

  • @hogspog
    @hogspog 2 ปีที่แล้ว

    legend my professor failed to explain this at all so this was a lifesaver

  • @MorganC-zz1bg
    @MorganC-zz1bg ปีที่แล้ว

    thank you so much for this. clear and to the point, much appreciated.

  • @wajdichaouch4508
    @wajdichaouch4508 4 ปีที่แล้ว

    Thank you very much, It's an awesome tutorial, Good Job Paul.

  • @maxholthaus5528
    @maxholthaus5528 6 ปีที่แล้ว

    Thanks a lot, clear and concise. Other videos on make are much longer and way more complicated.

  • @Prashanth_650
    @Prashanth_650 ปีที่แล้ว

    Tutorial is so good and very easy to understand. Thanks for the video and looking forward to see many videos like this.

  • @wadehawkins2310
    @wadehawkins2310 3 ปีที่แล้ว

    Best video ever. Simple and informative.

  • @truongthachpham5294
    @truongthachpham5294 4 ปีที่แล้ว

    Thanks you very much, the tutorial so very clear, easy to understand and remember.

  • @NibbleMeTwice
    @NibbleMeTwice 5 หลายเดือนก่อน

    This is a fantastic tutorial. Thank you very much.

  • @RahulKumar-wv4ti
    @RahulKumar-wv4ti 8 ปีที่แล้ว +8

    that was just perfect..made my night :p

  • @narutouchiha1946
    @narutouchiha1946 4 ปีที่แล้ว

    You accomplished what my professor couldn't in 1/10th of the time.

  • @robsonaparecido4365
    @robsonaparecido4365 5 ปีที่แล้ว

    Oh gosh. It´s pretty cool. Now I understud this usefull Makefile. Thank you so much!!

  • @JohnDoe-ki6fm
    @JohnDoe-ki6fm 3 ปีที่แล้ว

    Thanks! I knew all this ~35 years ago. I haven't needed to write my own makefiles since, and sort of forgot some details. ;)

  • @MuhammadHassan-hj6mx
    @MuhammadHassan-hj6mx 2 ปีที่แล้ว

    Excellent intro. Thanks!

  • @amoldake7795
    @amoldake7795 4 ปีที่แล้ว

    very well explained in simpler words, thank you very much

  • @90125iahg
    @90125iahg ปีที่แล้ว

    Extraordinary! Great, great tutorial.

  • @xTerminatorAndy
    @xTerminatorAndy 5 ปีที่แล้ว +1

    EXCELLENT INTRODUCTION!
    ANDY LIKES THIS

  • @noone-fx8dx
    @noone-fx8dx 2 ปีที่แล้ว

    not only is this concise, this is also the only one that worked on windows

  • @KingGrio
    @KingGrio 3 ปีที่แล้ว

    Thank you for a very simple and clear explanation

  • @alik250
    @alik250 2 ปีที่แล้ว

    This is a great start! I learned a lot, thanks

  • @gressab.7830
    @gressab.7830 2 ปีที่แล้ว

    this is exactly what i needed. Thank you so much🙏

  • @kpable
    @kpable 4 ปีที่แล้ว

    Great tutorial. Great explanation that is easy to follow.

  • @ngoako
    @ngoako 2 ปีที่แล้ว +1

    Best tutorial on makefiles

  • @shareapps3248
    @shareapps3248 5 ปีที่แล้ว

    a good tutorial, u deserve a real thanks brother

  • @mikelong3444
    @mikelong3444 3 ปีที่แล้ว +1

    5 out of 5 STARS for this video #PaulProgramming. Your explanation is second to none. This is the second video I have watched of yours. I have LIKED and SUBSCRIBED to your channel this tutorial. Thanks for helping us all that need the help.

  • @dharmikmistry8781
    @dharmikmistry8781 4 ปีที่แล้ว

    Perfect and very clean explanation 👍. Thank you sir