NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Makefile
August 31, 2016 by dfitzgerald |
Anyone know what -upload in makefile is for? Is this a command? Ex. all: initialload-upload From makefile initialload. Thanks |
---|---|
September 01, 2016 by Rick_S |
In the Makefile,
the line that says initialload-upload: initialload.hex, the words before the colon initialload-upload are the section title. So after the contants are set at the top, section all: calls section initialload-upload as a pre-requisate. In other words all needs initialload-upload to be done before doing anything in it's section. Then initialload-upload has a pre-rquisate of initialload.hex. Which jumps to that section. initialload.hex needs to see initialload.c (your file it is going to compile) If that file is available, then initialload.hex executes the three tabbed lines below it then upon success returns to initialload-upload and processes the line below it, which upon success returns to all and finishes because all has no lines below it. Hope that cleared it up without making it too muddy. Rick |
September 02, 2016 by dfitzgerald |
Very good Rick. Thanks a lot for clearing up the questions I had about the make file. Not muddy at all. |
September 07, 2016 by Ralphxyz |
You could spend a lot of time learning about Make files: It gets deeper and deeper the further you go. I am going to re learn the fundamentals again as I have some projects I have to do. Wonder where I put the Nerdkit instruction manual, that is still the best fundamental document I have seen. Ralph |
Please log in to post a reply.
Did you know that one NerdKits customer discovered that his hamster ran several miles in a night using his kit and a Hall-effect sensor? Learn more...
|