4 ms·
Thanks... I suspected I was just redefining a built-in pattern rule, but I put it there anyway just so I can remember whether it's LDFLAGS (linker) vs LFLAGS (l
by syncsynchalt 9y ago
Thanks... I suspected I was just redefining a built-in pattern rule, but I put it there anyway just so I can remember whether it's LDFLAGS (linker) vs LFLAGS (lexer).
Plus I was thinking maybe less magic for someone trying to make sense of it.
Is there no command needed for name_of_bin to be linked? Does it automatically figure it out based on *.o dependencies?
- spc476 9y agoYes it does. In fact, with GNU make, if you have a single file, hello.c, you can type "make hello" without a makefile and it will just work.