Commit graph

23 commits

Author SHA1 Message Date
Jim Paris d5118ba63d Always make directories before building files in OBJDIR
This lets us put things like fatfs/ff.o in COBJS
2010-10-16 13:28:20 -04:00
Jim Paris 03293b60ad Fix a makefile dependency with libraries
Using the implicit rules for libraries leads to problems if one of the
objects fails to build, but the others are still OK.  Just make all
library rules explicit to avoid this.
2010-09-28 16:01:15 -04:00
Jim Paris 6b4d6a9ade Use a variable for all target objects
Instead of specifying them individually.  This lets included makefiles
(like my audio/Makefile.include) append objects.
2010-09-28 02:54:23 -04:00
Jim Paris 036b80e3c1 Support hardcoded dependencies, for generated files 2010-09-28 02:15:43 -04:00
Jim Paris 0e6d5bc9dc Another rule to disassemble board objects 2010-09-27 20:04:24 -04:00
Jim Paris b00708cf78 Put main dir on include path
Now the user can supply their own foo.h that obj_foo/board.h will include
2010-09-25 15:26:44 -04:00
Jim Paris ebac883e25 Handle empty board.a (no COBJS defined) 2010-09-25 15:09:26 -04:00
Jim Paris 0c163122da Pretty-print the output by default.
This makes it a lot easier to see what's going on, and let me find
some problems.  Use "make Q=" or set Q= blank in your user Makefile
to see the full commands.
2010-09-24 18:22:11 -04:00
Jim Paris 0a41939407 Makefile cleanup.
This is an attempt to fix and cleanup all of the rules, and get rid of
some of the recursion.  We still need to invoke make several times
when we're building for more than one board, and some things can get a
bit weird when that happens, but it should generally work.  A single
BOARD=foo build should be fully correct, now.

I attempted to keep things compatible, so existing Makefiles that
include libmc1322x/Makefile.include should still work correctly.
2010-09-24 16:29:43 -04:00
Mariano Alvira 2ae64e0802 added freescale-ncb board. 2010-05-04 17:14:31 -04:00
Mariano Alvira 7d02575d16 add new board for the QuahogCon badge 2010-03-16 22:06:06 -04:00
Mariano Alvira de4080c359 removed bad touch 2010-03-01 14:30:19 -05:00
Mariano Alvira 1cc1ec5d60 need to fix deps and board.h link generation 2010-03-01 13:05:10 -05:00
Mariano Alvira 5f754e185b add econotag and usb boards 2010-03-01 13:03:05 -05:00
Mariano Alvira 87cd9c7a36 update build system for board specific code that's 'local' to the
program you are building.

update tests to consolidate common code.
2010-02-26 14:04:10 -05:00
Mariano Alvira 9a8004c177 working on nvm-read.
fixed lib ordering on link command
2010-02-26 12:37:13 -05:00
Mariano Alvira bfe8814c90 makefile hints 2010-02-26 07:16:06 -05:00
Mariano Alvira e38f9db224 force links 2010-02-24 13:35:46 -05:00
Mariano Alvira f79c71153a now running just 'make' builds all the targets for all the boards. 2010-02-23 18:54:50 -05:00
Mariano Alvira 8ca9a0269e better variable defs.
touch objdir to fix problem where board.h would try to get created
after it's already been created.
2010-02-23 18:14:32 -05:00
Mariano Alvira 59391d7529 board.h works now 2010-02-23 15:53:00 -05:00
Mariano Alvira dcc2d5299c for now you must define BOARD.
I'd like it to be though that if board isn't defined then it makes
everything.
2010-02-22 19:18:48 -05:00
Mariano Alvira 1759ff01a0 getting there... 2010-02-21 18:47:12 -05:00