Makefiles, but in English

preview_player
Показать описание
Taught by @dvdfreitag
Рекомендации по теме
Комментарии
Автор

8:51 SRCS:.c=.o
used at 14:31
16:38 ohkay, so, make works by comparing the output file to the prerequisite file, and if the output file is out of date, it runs that. ohkay. i had the wrong-ish idea that it tracks only the prerequisites for the changes

yash
Автор

Thank you so much for such clear explanation on makefile. You make it clear to me

lindazhu
Автор

4:08 simple expansion
hmm, nice. the thing is that the "verbatim assignment" is not that verbatim, the variables are evaluated there too...
but simple expansion somehow expands them differently
like i was doing += i.e. append to, and a space was being added, so, i did `VAR = $(VAR)-append` and it didn't work due to cyclicity, while := worked here

*edit:* ref: gnu > make > manual > Flavors or `info make` > 6.2 *"The Two Flavors of Variables"*
* verbatim means that the whole expression is assigned, i.e. the _LHS_ is *"set"* to the _RHS_ expression as verbatim, and acts as a container or say as a shortcut. so, when the _LHS_ is used somewhere else, it is expanded recursively, i.e. first first to the verbatim expression, then that expression is further expanded and so on.
* the simple expansion is what is the normal assignment in other languages does, i.e. the _RHS_ expression is evaluated right away, and then assigned to _LHS_

yash
Автор

23:55 nice to know about "gcc cross compiler"

yash
Автор

Thx a lot! After this video I finally was able to get my makefile to do what I wanted!

drum-computer
Автор

Thanks very much for this lecture on Makefile - I have surely gained further insight on Make but with respect to the template file given - I am not too clear on what if I have .h files in the folder - would the include $(wildcard $(DEPFILES)) take care of all . h files ?

rajcodes
Автор

Is it possible for you to upload the slides. That would be awesome.

uowemegrand
Автор

Very low voice. Can't hear at all.

newsndtvindia