Makefiles Make Your Life Easier

preview_player
Показать описание
In this video, we learn why Makefiles are great and how to use them properly.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

Neuralnine casually creating a c files in a python director

insert
Автор

It's also worth mentioning that the power of make comes from that it tracks file changes, where if you run make all and then modify only one source file, when you run make all the second time, only that single file gets recompiled and not all files, and if nothing changed it wouldn't recompile again

omaralraisi
Автор

Thank you for creating this tutorial! Because you explained what the manual way looks like and its pitfalls, it helped me appreciate Makefiles. You are a great teacher!

potatocoder
Автор

this whole time I was writing my own batch file for this, never knew this existed 💀

FroyoAnto
Автор

thank you so much man, excellent explanation!

eumm
Автор

got the clear understanding, GOTCHA

thanks by the way

Well done, CHAP

rishichowdary
Автор

thank you! I have 3 books on C but no one has told me how to make a Makefile

emilie
Автор

I learn something and have hit the like button, thank you very much.😎

idrisalhajiadamu
Автор

We can also write a build shell script to compile small projects.

raunakwete
Автор

Doesn't it disturb you having a prompt that takes up more that 2/3 of the screen width? I have shortened my prompt and added line breaks into it so that the information (like host and directory) is on one line and the actual prompt is alone on another line.

mdperpe
Автор

Thanks man, very helpful! Subscribed!

vonderklaas
Автор

Thank you. I used to do huge commands in the terminal but it's high time I use make.

Universe
Автор

Awesome work! It made clear it all in one video!

LazizbekYusupov
Автор

Very well explained. Thanks for sharing.

jeffreyhunter
Автор

I finally managed to link libraries because of this tutorial. I can now commit to learning c.

ruslanart
Автор

i dont realy understand how you manage to displaye the content of the function(hello world) minewhile this function is not part of the defferen functioncreated using flags and from what i see they are not diretly connected

claudestephaneadriendjanti
Автор

10:38 Why did you have to do “make clean”? A key point with make is that it only rebuilds the parts that have changed, yet you are forcing it to rebuild everything.

lawrencedoliveiro
Автор

What is the point to do -c first and then compile from object files? It will compile if you just put *.c files right? What is the point of this *.o file, it just seems like extra step for no reason.

shadowrealm
Автор

does it work on windows too or any equivalent?

vishnubalaji
Автор

Hey, we couldve just included the hello.c file in the main.c code and run gcc main.c. Why are we using makefiles then ?

johnnwick