Makefiles, but in English

Поделиться
HTML-код
  • Опубликовано: 1 авг 2024
  • Taught by @dvdfreitag

Комментарии • 19

  • @hamzamohd.zubair1709
    @hamzamohd.zubair1709 3 года назад +1

    Best tutorial on makefiles!

  • @lindazhu9771
    @lindazhu9771 Год назад +2

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

  • @drum-computer
    @drum-computer 3 года назад

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

  • @timiakogun
    @timiakogun 2 года назад +19

    Watch at x1.25 speed. Thank me later

  • @yash1152
    @yash1152 2 года назад +1

    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

  • @yash1152
    @yash1152 2 года назад +2

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

  • @rajcodes100
    @rajcodes100 3 года назад +3

    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 ?

    • @arti5musicc
      @arti5musicc 2 года назад

      you would just pass -I include_dir (or whatever you named it) to your compiler

  • @yash1152
    @yash1152 2 года назад +1

    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_

  • @ii7mdj_353
    @ii7mdj_353 8 месяцев назад

    Thanks!

  • @uoweme5grand
    @uoweme5grand 2 года назад

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

  • @news24ndtvindia6
    @news24ndtvindia6 3 года назад +7

    Very low voice. Can't hear at all.

    • @walterclements3164
      @walterclements3164 3 года назад +17

      turn up your volume, if you're using a phone then the volume buttons should be the two side by side buttons on the side of your phone. If you're using a computer, you need to listen closely and figure out where the sound is coming from. Once you find the source, you'll see that it's on its own separate device, which is called a speaker. Those speakers should have a nipple shaped object which can turn left and right. Turn it clockwise and it will magically sound like the guy talks louder.
      edit; sorry I'm training for my IT job

    • @maciej_sliv
      @maciej_sliv 2 года назад +5

      still better than tutorial with indian accent

    • @elmehdisaniss2731
      @elmehdisaniss2731 2 года назад +2

      @@maciej_sliv Not just indian accent, but indian alouf vibe in general except for few indians.

    • @mishasawangwan6652
      @mishasawangwan6652 2 года назад

      @@walterclements3164 hahahahaahahahaha best response to one of the most common, and perhaps naive, type of youtube comment 👍