ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-05T02:31:47+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1060 2015-09-05T02:31:47+08:00 2015-09-05T02:31:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1060&p=3560#p3560 <![CDATA[Re: Writing Makefile for project]]>
I don't see AT ALL why you should stick to that monstrosity.

I just made up a Makefile myself, as I always do, and copied the relevant parts, which are only a few lines in the end.

Statistics: Posted by eriksl — Sat Sep 05, 2015 2:31 am


]]>
2015-09-04T22:36:54+08:00 2015-09-04T22:36:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1060&p=3555#p3555 <![CDATA[Re: Writing Makefile for project]]>
azarubkin wrote:
Espressif IOT SDK User Manual says that we need to put all source files to 'app' subfolder of SDK tree
Personally, I find the directory structure and build procedure provided unnecessarily complicated and difficult to understand. I adopted a much more straightforward procedure using just a makefile and a single-level directory structure for the source and the generated object files in a subdirectory. It could be expanded to utilize additional subdirectories along the lines of the "driver" subdirectory but, so far, I've avoided that complication.

Statistics: Posted by dkinzer — Fri Sep 04, 2015 10:36 pm


]]>
2015-09-04T19:49:55+08:00 2015-09-04T19:49:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1060&p=3552#p3552 <![CDATA[Writing Makefile for project]]>
But how do I write Makefile which makes use of these compilation options?

I have looked for Makefiles in examples - they all seem to ignore the options that are passed by gen_misc.sh script (i.e. BOOT, APP, SPI_SPEED, SPI_MODE and SPI_SIZE_MAP).

I have tried to use Makefile in the root folder of SDK - it compiles my sources, but it doesn't define any GEN_BINS, GEN_LIBS, GEN_IMAGES which are required to generate the firmware files. Where should I define these variables and what value should they contain?

Statistics: Posted by azarubkin — Fri Sep 04, 2015 7:49 pm


]]>