13
nitwhiz
7y

Makefiles are weird af dude.

Fuck this, gonna make a bash script.:p

Comments
  • 0
    Scons is pretty cool too, gotta get that python involved when writing c.
  • 2
    @IllSlapU *pulls shotgun* welp... Time to write a bash script
  • 1
    There is a really good Makefile manual online...
  • 0
    @IllSlapU @milkybarkid yeah but i just need some fucking c Files with local headers and more c files compiled, linked and uploaded AND maybe even establish serial connection directly after it.

    No time for learning that shit beforehand.x)
  • 1
    Just grab a Makefile off someone's C project on Github and use it as a template
  • 1
    Like it's fairly simple, you have a target, prerequisites and a recipe to make the target from the prerequisites. So for compilation the target is the .o file and the prerequisite is the C file, the recipe is just a GCC command
  • 1
    Then if you do "make thing.o" it will do that recipe
  • 0
    @milkybarkid ...ooor i have 4 commands and some ls | sed..^^
  • 2
    I learned it btw.
    That shit's easy af, dunno why I never got it.:D
Add Comment