Introduction to Make and GNU Autotools | Barry Smith, Argonne National Laboratory

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 26

  • @markharrington5826
    @markharrington5826 Рік тому +1

    What a superb lecturer thanking you ever so much and thoroughly enjoyed every minute of your presentation

  • @g3yang
    @g3yang 3 роки тому +6

    Thanks for this immensely helpful tutorial to clarify this my most confusing topic!

  • @unknownpng650
    @unknownpng650 2 роки тому +1

    woah i will try to practice these examples so i can have a good understanding about these automating tools , sounds really helpful!

  • @faktorial2
    @faktorial2 3 роки тому +1

    Great presentation! This is the sort of video I've been looking for

  • @yiqianwang5161
    @yiqianwang5161 8 років тому +4

    It's really helpful to understand what autotool do. Thanks!

  • @krantimadineni585
    @krantimadineni585 7 років тому

    The Best presentation ever made on Autotools and make tool...

  • @gunneshinkula8538
    @gunneshinkula8538 3 роки тому +1

    Nice presentation. I can't able to access slides for presentation can you check it once

  • @edilmedeiros
    @edilmedeiros 5 років тому +3

    Excellent tutorial. Thanks for sharing it.

  • @randomsoul00
    @randomsoul00 11 місяців тому

    Now this is called learning
    from theory to practical

  • @hubercats
    @hubercats 3 роки тому +1

    This is a really helpful video. Thanks so much for sharing it.

  • @marcelijankowski9593
    @marcelijankowski9593 9 місяців тому

    Great one!

  • @sammysoil77
    @sammysoil77 6 років тому +1

    Really great demonstration, thank you!

  • @imrank340
    @imrank340 6 років тому

    This video refers to all deprecated stuff of GNU toolchains although things been moved much furthers. using autoscan utii can get started.

    • @cepi24
      @cepi24 5 років тому +2

      can you please point me to some actual autotools tutorial? Thanks

  • @SuperAnalyst007
    @SuperAnalyst007 4 роки тому +1

    Awesome Lecture. Very helpful.

  • @ppb2374
    @ppb2374 5 років тому +2

    very informative ,thank you so much!

  • @tbttin
    @tbttin 3 роки тому

    17:04 Generate dependency files.
    25:51 Library.

  • @bonbonpony
    @bonbonpony 2 роки тому

    16:08 What is the difference between $(…) and ${…} here?

  • @cryptodavidw
    @cryptodavidw 6 років тому +9

    @ is not called ampersand :P

    • @Ryuudo123
      @Ryuudo123 5 років тому +1

      somebody tell him it's at sign... >

    • @bonbonpony
      @bonbonpony 2 роки тому

      Here where I live, we call it a "monkey" :) Because it looks like a monkey with a very long tail around it ;)

  • @hubercats
    @hubercats 3 роки тому

    Hi Barry - I've created a makefile based on yours. I think I have it right but what I'm finding is that if I make the executable, run it successfully, then touch the source file to update its time stamp, when I run make again it recreates the object file but does not update the executable. Here is a screen dump showing the results:
    [jcl@localhost inputDouble]$ ls -lt
    total 8
    -rw-r--r-- 1 jcl jcl 217 Jan 19 14:51 inputDouble.c
    -rw-r--r-- 1 jcl jcl 530 Jan 19 14:51 makefile
    [jcl@localhost inputDouble]$ make
    gcc -g -c -MMD -MP -o inputDouble.o inputDouble.c
    gcc -o inputDouble inputDouble.o
    [jcl@localhost inputDouble]$ ls -lt
    total 44
    -rwxr-xr-x 1 jcl jcl 20872 Jan 19 14:56 inputDouble*
    -rw-r--r-- 1 jcl jcl 29 Jan 19 14:56 inputDouble.d
    -rw-r--r-- 1 jcl jcl 4104 Jan 19 14:56 inputDouble.o
    -rw-r--r-- 1 jcl jcl 217 Jan 19 14:51 inputDouble.c
    -rw-r--r-- 1 jcl jcl 530 Jan 19 14:51 makefile
    [jcl@localhost inputDouble]$ touch inputDouble.c
    [jcl@localhost inputDouble]$ ls -lt
    total 44
    -rw-r--r-- 1 jcl jcl 217 Jan 19 14:56 inputDouble.c
    -rwxr-xr-x 1 jcl jcl 20872 Jan 19 14:56 inputDouble*
    -rw-r--r-- 1 jcl jcl 29 Jan 19 14:56 inputDouble.d
    -rw-r--r-- 1 jcl jcl 4104 Jan 19 14:56 inputDouble.o
    -rw-r--r-- 1 jcl jcl 530 Jan 19 14:51 makefile
    [jcl@localhost inputDouble]$ make
    gcc -g -c -MMD -MP -o inputDouble.o inputDouble.c
    [jcl@localhost inputDouble]$ ls -lt
    total 44
    -rw-r--r-- 1 jcl jcl 29 Jan 19 14:56 inputDouble.d
    -rw-r--r-- 1 jcl jcl 4104 Jan 19 14:56 inputDouble.o
    -rw-r--r-- 1 jcl jcl 217 Jan 19 14:56 inputDouble.c
    -rwxr-xr-x 1 jcl jcl 20872 Jan 19 14:56 inputDouble*
    -rw-r--r-- 1 jcl jcl 530 Jan 19 14:51 makefile
    [jcl@localhost inputDouble]$
    Here is the makefile:
    APPNAME = inputDouble
    CC=gcc
    CFLAGS= -g
    OUTPUT_OPTION= -MMD -MP -o $@
    SRCS=$(wildcard *.c)
    OBJS=$(SRCS:.c=.o)
    DEPS=$(SRCS:.c=.d)
    -include ${DEPS}
    $(APPNAME): $(OBJS)
    $(CC) -o $(APPNAME) $(OBJS)
    clean:
    rm -f *.o *.d $(APPNAME)
    Any suggestions will be much appreciated. - Thanks - Jim

  • @janezperme9770
    @janezperme9770 2 роки тому +2

    Don't like the explanation approach...Completely unsystematic.

    • @unknownpng650
      @unknownpng650 2 роки тому

      what do you mean ?

    • @bonbonpony
      @bonbonpony 2 роки тому

      Perhaps the fact that these changes con't naturally follow from the evolution of the code as it grows, which would show better why do we need all these extra tools at all. The simple code that he presented doesn't need them at all, and uses them in a wrong way (e.g. not having the header file included in both source files - the module that implements it, and the module that uses it; while not included in others who don't use it to show that they won't have to be recompiled).

  • @danielbriones6171
    @danielbriones6171 3 місяці тому

    Auto tools is the worst piece of software invented. Unintelligible, extremely hard to debug, and litters your directory was junk. Just use CMake, Meson, hand-written makefiles, or even zig