Тёмный

C Programming: Makefiles 

Barry Brown
Подписаться 26 тыс.
Просмотров 263 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 516   
@stevebest3200
@stevebest3200 7 лет назад
Absolutely the best video on Makefiles. Barry illustrates the dependency tree, and ties it to the Makefile. Additionally, he covers the pre-processor, compiler, and assembler and ties it to the Makefile build process. Well done Sir! 5 stars.
@profbbrown
@profbbrown 7 лет назад
I gave you a thumbs-up, but I'll say "thanks" too!
@t.j.barros.2817
@t.j.barros.2817 4 года назад
@@profbbrown Congratulations + a Like me here! ..... Please elucidate me in 2 questions? 1) - I would like to know if I can get the value / content in my APP_1 of a variable / pointer of a switch / case from this ".so" file that my other APP_2 has invoked and is using / updating it at runtime? (summary: I want to get the value / content updated by another app in my app). 2) - And the most important thing I need to understand is: .... If this variable / pointer in a Function within ".so", which has its content / value dynamically updated by app_2 (because it gets updates by reference because it is a pointer, the value of this variable in App_2 is changed from time to time, and the file / library ".so" that my other App_1 wants to consume from it is a dependency on this application "App_2"), can this ".so" variable / pointer have its value / content (dynamically updated by App_2) consumed in my App_1 at runtime? ............. NOTE: My App_1 will only run when my other App_2 is running I think to avoid using higher level language features like BroadCastReceiver, Intents and System Calls. , etc etc .. ok. Thank you very much from my heart and Congratulations for the content once again, very didactic and easy to understand, offering a very quiet learning curve to all !! .... Strong hug, Barry !!
@minovercovermcr
@minovercovermcr 4 года назад
@@profbbrown upload more C contents please :( you helped me a lot more than any resources did in just 45mins.
@jde8881
@jde8881 8 лет назад
I have read and watch many Makefiles. This is the best. Is very clear and well organize to explain what is Makefiles.Thank you.
@profbbrown
@profbbrown 8 лет назад
You're welcome!
@miltonlaxer
@miltonlaxer 7 лет назад
I second this. Great job!
@Adks007
@Adks007 7 лет назад
I Third this. Great job!
@GfastGao
@GfastGao 7 лет назад
Fourth is here.
@michaelstewart95
@michaelstewart95 7 лет назад
v ftk sixth!
@BooBar2521
@BooBar2521 2 года назад
This is by far the best makefile tutorial on RU-vid. Only thing missing are the dependencie files (*.d) and why there are needed but explained everything about *.o files
@stickydamper
@stickydamper 3 года назад
These videos are the best one can get. I've watched many tutorials, nothing beats this
@ZobairNajdaoui
@ZobairNajdaoui 3 месяца назад
the way that he build from 0 the idea of Makefile is just amazing thanks.
@oussamaayyoub5681
@oussamaayyoub5681 2 месяца назад
Agree
@rubempacelli6815
@rubempacelli6815 Год назад
That is the proof of your video's quality: I came back to this video after watching it for the first time two year ago. Again, congratulation for this wonderful video!
@hiphop4x4
@hiphop4x4 8 лет назад
I watch a lot of videos for programming and this has by far been the most educational and biggest time saver for a complex process rather than asking my professor and waiting on him to email me back. your video layout is really helpful as well. Thank You!!!
@profbbrown
@profbbrown 8 лет назад
Thanks!
@MishaAisyah
@MishaAisyah 2 года назад
ive been looking for videos and websites for days to understand how makefiles work. this is definitely the best explanation so far despite it being a 5 year old video. thank you so much Barry for making it simpler!!!
@atjhamit
@atjhamit 2 года назад
Impressed by the simplicity and yet the profound impact of this video. Loved it. Thanks Barry.
@profbbrown
@profbbrown 2 года назад
Glad you enjoyed it and got a lot out of it.
@hectorordonez3464
@hectorordonez3464 3 года назад
I am starting my career as Embedded Software Engineer and I can tell you that this is the best explanation so far!! Thank you a lot for this, it is very clear.
@cfvbhf5475
@cfvbhf5475 7 месяцев назад
Even after 7 years this is the best video that perfectly explains makefile!
@rubempacelli6815
@rubempacelli6815 3 года назад
One of the clearest tutorial videos that I have ever found in my life about C programming and Makefile. I gonna check out the rest of your videos from this playlist. Congrats!
@deryckschnee6376
@deryckschnee6376 3 года назад
Most useful 45 minutes I've spent in a long while. Thanks!
@MccZerk
@MccZerk 4 года назад
Very rarely do I watch a 45 minutes video and have interest throughout the entire video, thank you, best makefile video!
@carlodambrosio3242
@carlodambrosio3242 3 года назад
It is so rare to find who can explain things well. Very good lesson. Thank you.
@zbrolman
@zbrolman Год назад
For me this is really the best video for learning Makefiles on RU-vid. You were really able to make a balance between diving deep into the topic and not overwhelming us with anything which is extra and could be described in a future video. Thank you!
@profbbrown
@profbbrown Год назад
Glad you enjoyed it!
@1CProgrammer
@1CProgrammer Год назад
until first half i forgot i was watching makefile tutorial, Thanks for the awesome video.
@zaidakhtar3093
@zaidakhtar3093 3 года назад
Amazing! The way you explained MakeFiles was smooth and crystal clear.
@nullbrain8552
@nullbrain8552 3 года назад
I learned more from this than I did from 2 full lectures from my professor. THANK YOU!
@onuryorutken5540
@onuryorutken5540 3 года назад
Really the best educational video not only on Makefile, but also about C headers, compiler and linker etc..
@Geochro
@Geochro 7 лет назад
I am in first year university and in intermediate programming. Intro to programming was fine, started intermediate... I couldn't even follow along in lectures. I just want to say, thank you for this. This video has helped me more that you may ever know. Need to secure a tutor now to keep on top of new content in my course!
@charleswilliams8368
@charleswilliams8368 3 года назад
This was the clearest explanation of Makefiles I've seen. Thank you.
@AbdullahOmar94
@AbdullahOmar94 8 лет назад
Just Amazing, I would advise going straight to this video and leave the rest Makefiles introductory videos you find in RU-vid search results. You might also want to consider reading the Wikipedia page, and afterwards some advanced documentations that may include functionalities that are required for your own purposes of using makefiles. Straight to the point, detailed just enough, and very very clear. Much appreciated Barry Brown
@gerdsfargen6687
@gerdsfargen6687 Год назад
A classic quintessential lesson on Makefile in C...just what I needed today! Thank you Barry!
@profbbrown
@profbbrown Год назад
Glad it was helpful!
@hannahm9259
@hannahm9259 3 года назад
This video is so good, it seems unreal! Thanks Sir, nice and to the point, no additional frills, and no guy rambling about himself!
@CaffeineForCode
@CaffeineForCode 5 лет назад
Great explanation! It's nice to see someone use a compiler via the command line to show how it all works rather than relying on an IDE to do all of the work for you! Really appreciated.
@Evanovesky
@Evanovesky 2 года назад
Thank you! It's really frustrating looking for a good tutorial through the internet, until RU-vid recommended your video.
@profbbrown
@profbbrown 2 года назад
You are welcome!
@nickrock61
@nickrock61 Год назад
Definitely the best Makefile tutorial for fundamental I've ever seen. Concise, elegant, and clear. Thank you Prof. Brown.
@orxanshirinov1167
@orxanshirinov1167 5 лет назад
What makes this video is unique and brilliant is the way of explaining the concepts. Even with the simple headers, instead of saying "hey guys, header is this and I'll show you how to use it.." , in this video it is explained in the way that it made us feel the reason behind why there is a need use use them instead of just a straightforward definition. Excellent explanation Sir !
@vikidprinciples
@vikidprinciples 4 года назад
Wonderful tutorial. Years of confusion removed by one video!
@jsnellink1990
@jsnellink1990 5 лет назад
You're the man Barry, your video finally made this topic come together for me! Your video feels like a more experienced co-worker taking an hour off his work to explain a topic he's intimately familiar with.
@danielespinosa6926
@danielespinosa6926 7 лет назад
I'm not a C programmer. I came here to learn how to use Makefiles for other purposes: building a minimal static website generator. This screencast is brilliant! THX
@profbbrown
@profbbrown 7 лет назад
You're welcome! Makefiles can be used to automate the build process of just about anything. If you can write out the commands needed to build a project, you can turn them into a Makefile.
@ziggy6698
@ziggy6698 3 года назад
Dude this just changed my life right now. So well explained. Thank you my friend.
@rustamfadeev9198
@rustamfadeev9198 4 года назад
Thanks a lot for this video! Was watching and thinking that if every teacher in university would explain things like you do, the world would be a little bit better.
@AaronccGuo
@AaronccGuo 4 года назад
its been years and I still come back to pick things up, such an amazing tutorial.
@sede189
@sede189 3 года назад
Excellent, excellent, exclusive explanation of makefile. Well worth the time spent watching. Thank you!!!
@Noobmaster_x69
@Noobmaster_x69 3 года назад
Fantastic, clear and best video to understand the world of Makefiles!
@HaykMherianUA
@HaykMherianUA 7 лет назад
wonderful explanation, 44 minutes passed like 10
@jeanatalle5071
@jeanatalle5071 6 лет назад
True that! I thought it was just a quick 10 minute tutorial. I had to look back at the time stamp to confirm! Great job sir Barry!
@Chiramisudo
@Chiramisudo 6 лет назад
44 minutes passed like 22. Thanks 2x speed! ;)
@IrizarryBrandon
@IrizarryBrandon 5 лет назад
Worth the 40+ minutes, and that's rare for a RU-vid video. Second-to-none content, keep it up!
@paulchamberlain7942
@paulchamberlain7942 16 дней назад
Having only ever used an IDE for development I never really got exposed to makefiles so I came researching to plug the hole. Well explained, and now I understand that the IDE essentially provides visual abstractions of the makefile elements, and so explains how I hadn't previously bumped into their inner workings. I somehow feel less dependent on those IDEs now...
@unmandarinoalgiorno...9321
@unmandarinoalgiorno...9321 Год назад
Thank you so much for this video! Everything is illustrated perfectly with your explanation and the diagrams. I was so lucky to find your video at the beginning of makefile's learning so that I didn't wasted too much time on other less comprehensible tutorials.
@eis3nheim
@eis3nheim 3 года назад
One of the most amazing explanation of Makefiles. Thank you.
@RishabhJain-pk8ty
@RishabhJain-pk8ty Год назад
Outstanding explanation. As a beginner dev, all i can say is this video made me happy and every min i spent on this was worth it.
@profbbrown
@profbbrown Год назад
Glad you enjoyed it!
@soemiechag6537
@soemiechag6537 7 лет назад
Thanks! Very nice and well-structured lecture! The best one for Makefile I've seen so far.
@unchayndspersonalaccount7690
@unchayndspersonalaccount7690 3 года назад
Hey I don't know if you're still reading comments on this video, but I just wanted to say thanks. I've been trying to wrap my head around makefiles, and it's been so confusing... targets, recipes... rules... linking? I wished I could see an explanation of how it works from the ground up, but pretty much all the videos I found were confusing... until this one, which I just watched straight through in one sitting. Now I finally get it. So thank you so much for explaining it all so carefully, clearly, and thoroughly! Also haha... when I saw the rm * .o ...I felt that.
@pradeeplanka6976
@pradeeplanka6976 2 года назад
Dear Sir, Thank you for the clear explanations. I have been hunting videos and article to learn what those make files are and how to use them. They were very complicated and had unexplained syntax in them. Today you enlightened me with this clear video. If you have time, kindly explain a bit more complicated syntax in Make files. Then, I and people like me who learn from the help of gentlemen like you who share knowledge can complete learning this stuff.
@twiggygordon3980
@twiggygordon3980 5 лет назад
Sir, i cannot thank you enough for this video! You made everything so clear and precise.
@e_mcc_
@e_mcc_ 5 лет назад
Best explanation on basic Makefile and how dependencies work! Great job man!
@sandeepkumar-um3cl
@sandeepkumar-um3cl 2 года назад
The explanation is so simple that even a non technical person can understand.... Great job👍👍👍👍👍
@profbbrown
@profbbrown 2 года назад
Glad you liked it
@CalculusSlayer
@CalculusSlayer 2 года назад
This is the best makefile tutorial I've seen on youtube! Thank you so much!
@profbbrown
@profbbrown 2 года назад
You're very welcome!
@kodcode8981
@kodcode8981 2 года назад
Amazing!!! Thanks Barry for this educational video. No distractions, straight to the point!
@profbbrown
@profbbrown 2 года назад
You're welcome!
@theblackelephant
@theblackelephant Год назад
This is one very educative very, I will recommend it to my fellow software engineering students at African Leadership University and ALX. Thank you so much for the content
@samdavepollard
@samdavepollard 3 года назад
super useful to this noob, the way you explicitly separate compilation and linking throws a lot of light onto what's happening many thanks
@leerdoor
@leerdoor 2 года назад
Wow, best introduction video to compiling and make i've seen so far. Excellent, thanks!
@nashs.4206
@nashs.4206 2 года назад
Absolutely phenomenal, cogent presentation. This is perhaps the clearest introduction to file organization as well as the basics of the build process I've seen. With that said, I had a quick question regarding the point you made at 25:35. We have established that header files only contain function prototypes, global variable declarations, pre-processor directives, etc. If we include, say, the math header file in a source file, then the compiler won't be able to compile the program because it isn't able to locate the actual definition of the various math functions. This is why we must use the compiler directive -lm to indicate that the compiler must search the directories for the math library. If this is true, then why isn't a similar thing done for the header file stdio.h? This too is a header file, and so it doesn't contain the actual function definition for things like printf, and scanf. Why, then, do we not use compiler directives to indicate that the compiler must search the directories for the stdio library? What is the difference between the math library and the stdio library that causes this difference in behavior?
@profbbrown
@profbbrown 2 года назад
Good question! The C standard library is linked in by default. In addition to the I/O and memory management functions, it also contains some setup code that your program needs to run. You can disable the automatic linking of the C library with the -nostdlib command line flag.
@nashs.4206
@nashs.4206 2 года назад
@@profbbrown gotcha thank you for the clarification!
@mrmitch9002
@mrmitch9002 7 лет назад
thank you so much for this video. this is the clearest I've had make files explained to me and I've been reading up on them for at least a day now
@powerstar817
@powerstar817 2 года назад
I am learning c at the age of 26 and I felt this is very useful. Thank you sir
@Adam-gp3ij
@Adam-gp3ij 5 лет назад
Sir, you are just an amazing teacher! You made it so clear to me!
@ajit555db
@ajit555db 5 лет назад
Excellent Sir. Even though I am using make for DevOps activities, the concept of dependency tree inside make was a very good concept to understand make better.
@yingwu5192
@yingwu5192 2 года назад
Thank you for your video. Although I know a typical Makefile for a project is more complex than this, your lecture is quite easy to understand. Thank you for your patient introduction from the very beginning of how gcc works from a .c file to an executable file then furtherly move to the introduction to Makefile.
@profbbrown
@profbbrown 2 года назад
You're welcome!
@olawaleipadeola7916
@olawaleipadeola7916 3 года назад
Thank you. Now I fully understand the structure and importance of a makefile.
@hectorjazz7
@hectorjazz7 7 лет назад
Perfect lesson.. clear, consistent, good english (i am chilean) Thanks!!!
@vahnlewis9749
@vahnlewis9749 Год назад
Just what I needed. A down to basics review for Makefiles. Been trying to build up my C++ proficiency, but it's like an octopus. To write C programs on Linux you need to learn C++ (and a bunch of modifying flags), linux, editors (vi. emacs), editor systems (Visual Code), compilers (gcc, clang, etc). I have managed to compile a few simple programs without make. Breaking down the various stages of compiling was very helpful and a great intro to make. (I would also like a discussion of what the linker step actually does, nobody talks about it. My first compilations, many years ago actually talked about compiling to object files and then using a linker to link them , but now the linker step is in the shadows.) The discussion of library "header" and non header included files was helpful. The process to create a Makefile line by line was very helpful. But Makefile is just the first step of abstraction, after that it seems you need to know c make, git, docker, it just goes on and on. My goal is to download git code and be able to assemble modified working programs and this video clarified some of the basic steps. Thanks.
@laurentbajrami3688
@laurentbajrami3688 3 года назад
Easily the best video I have seen on Makefiles
@pixelwrinkly1528
@pixelwrinkly1528 3 года назад
almost scary, how much info you managed to pack into 44 minutes many thanks for sharing your knowledge - super useful
@Lavamar
@Lavamar 2 года назад
Thank you, really helped me understand these. I appreciate the consistent example throughout the video
@matematicaHobby
@matematicaHobby Год назад
The best video on makefiles that I found on youtube!
@profbbrown
@profbbrown Год назад
Glad you think so!
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 2 года назад
i keep coming back to this video to refresh my memory, thanks :)
@profbbrown
@profbbrown 2 года назад
Glad to hear that!
@aungpaing7305
@aungpaing7305 2 года назад
So great a tutorial, clearly explain the basic from the stage of compilation. Thanks for such a great content.
@Biiiiird
@Biiiiird 3 года назад
Great tutorial ! Loved how you broke things down very clearly ! Thank you so much
@antonibrewka5837
@antonibrewka5837 6 лет назад
Thank you very muchBarry Brown, clear, easy and full explanation. Great idea with screen and you on the corner, looks really professional. Good sound, everything is clear. Other youtubers should learn from you. Just perfect!
@Anirbanengg
@Anirbanengg 2 года назад
Really Awesome Video. I have read many makefiles learning Videos but your explanation is really helps. Thank you!!!
@yusufberber7560
@yusufberber7560 Год назад
This is the best tutorial for Makefile. I've learned a lot, thank you!
@profbbrown
@profbbrown Год назад
You're very welcome!
@vinhtruonghuynh7968
@vinhtruonghuynh7968 4 года назад
Thank you for this outstanding lecture. This is so amazing. Thanks to your video, for the very first time, i can have a good understanding about the structure and the meaning of a makefile in detail.
@abrantesfilho
@abrantesfilho 6 лет назад
Thank you very much! This is, for sure, the BEST explanation about Makefiles that I have found on the whole Internet! Thank you, thank you, thank you!!
@drcl7429
@drcl7429 9 месяцев назад
Might be 7 years old but this should be given to every student studying C. Should also be shown to the majority of CS teachers who fail at teaching these concepts. This is how you teach - show why something is done the way it is done and why it is required and what problems it solves instead of just saying "you have to do it like this".
@DrOncogene
@DrOncogene 2 года назад
Thank you for this excellent simplification. Makes it a breeze 🔥🔥
@AnimeKing-m2t
@AnimeKing-m2t 2 месяца назад
Amazing tutorial. Simply explained the concepts.
@UrsMS
@UrsMS 6 месяцев назад
Appreciating this CHAMP ,Thank you so much.....Such a clear explanation which is needed badly for all who are in that field🙇‍♂🙇‍♂
@YungGudGalaxy
@YungGudGalaxy 6 лет назад
This is the video that finally made it click for me, couldn't have been presented any better
@AaronccGuo
@AaronccGuo 5 лет назад
good video, nice English, clear tutorial, didn't want to miss a sec. thank you.
@tinfever
@tinfever 3 года назад
This is amazing. It felt like you were addressing my questions without me even asking them!
@eumm11
@eumm11 Год назад
top-notch explanation, thank you so much Professor Barry!
@braindeveloperdimensional5579
@braindeveloperdimensional5579 6 лет назад
I use CMake but this explanation makes it easier to understand the concept. THANK YOUS.
@TheMahoney65
@TheMahoney65 3 года назад
Superb presentation...someone thought about what they were going to say and the best way to say it.
@WHYCANTIFINDMYMONEY
@WHYCANTIFINDMYMONEY 3 года назад
Greetings from Brazil! I love your videos, please keep going! Thank you so much, the very best video of makefile ever!!!
@puffvayne
@puffvayne 3 года назад
08:46 my life is finally complete at this moment, lol. THIS GUY IS AWESOME!
@azimuth4850
@azimuth4850 2 года назад
So grateful to you for explaining this so well!!! Thank you!!!!!
@mafone4885
@mafone4885 Год назад
This is a great video and you are a great teacher to make things very simple. Thanks Barry!
@syatos
@syatos 3 года назад
thank you very much, this video cleared out the mess in my head about makefiles
@flokipanda
@flokipanda 10 месяцев назад
Best video on makefiles and c compilation process
@kewtomrao
@kewtomrao 2 года назад
Thanks a ton for this!!! After this I was able to make my own make file for my lex and yacc program. Thanks a lot!!!
@jv3377
@jv3377 Год назад
excellent video, clear concise, clean whiteboard. Thanks This help me a lot for compiling Marlin 3D printer firmware.
@marcelwopperer9776
@marcelwopperer9776 3 года назад
Best C compiler explanation ever!
@yalicarmon4155
@yalicarmon4155 2 года назад
the best video on Makefile by far! thank you
@profbbrown
@profbbrown 2 года назад
Thank you too!
@ElizaberthUndEugen
@ElizaberthUndEugen 8 лет назад
thanks a lot! Finally this specific mystery has been cleared up for me!
@profbbrown
@profbbrown 8 лет назад
+ElizaberthUndEugen Can I ask what mystery it was?
@ElizaberthUndEugen
@ElizaberthUndEugen 8 лет назад
The mystery about the compiling process, the flags, the different temporary files and how header files actually work. I now understand why header files and implementation files that contain the code for the definitions in the headers should be separated, because this way all the code that implements the stuff defined in the header does not get compiled every time the .cpp that includes the header is being compiled. So far I always did the implementation directly in my header files and never understood why people would link some weird object files together if they could simply just compile their whole program. But they of course did that because they *had* to, because their headers only included definitions rather than implementations. Though, one thing I I still don't understand, why does one not have to explicitly link libraries like and and so on? Maybe that is a difference between C and C++? Because I do C++.
@profbbrown
@profbbrown 8 лет назад
+ElizaberthUndEugen By default, C programs are linked to the Standard C Library, called libc (or glibc on Linux systems). C++ programs are linked to libstdc++. This comes automatically when you compile a program. These libc contains functions like printf, scanf, malloc, fopen, and the like. The Standard C++ Library contains the standard classes like iostream and vector. You don't need to explicitly link to these libraries.
@ElizaberthUndEugen
@ElizaberthUndEugen 8 лет назад
Barry Brown Ah, that's why. Thanks!
@knauxu
@knauxu 2 года назад
Best makefile video on all of the internet.
@vovchicplagov
@vovchicplagov 5 лет назад
Thanks, professor! I really love your lectures and this kind of videos!! 👍👨🏻‍💻
@PrriyanshuSharmaa
@PrriyanshuSharmaa 2 года назад
Best tutorial on Makefile. Thankyou very much.
@profbbrown
@profbbrown 2 года назад
Glad it was helpful!
@MuhammadSalman-gv6mx
@MuhammadSalman-gv6mx 4 года назад
Like I am programming during my whole Bachelors, Asking everyone what are Makefiles but unfortunately, the same Answer searched from the google, Finally, Thanks to you Sir to let us know what really Makefiles are
Далее
Makefiles: 95% of what you need to know
1:01:53
Просмотров 126 тыс.
Fake Referee Whistle Moments 😅
00:38
Просмотров 4,9 млн
C: Pointers Overview
1:08:04
Просмотров 11 тыс.
Makefiles, but in English
55:45
Просмотров 30 тыс.
Makefiles Make Your Life Easier
12:05
Просмотров 105 тыс.