commit | 9a83aeae1a630c81be81174e141e2391a4f709d8 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Tue Sep 09 15:45:18 2008 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Tue Sep 09 15:45:18 2008 +0200 |
tree | 22ed2d7fcf9bc9b13647cb2135dd98ddb96ad2d7 | |
parent | 0813b12886ae595695e620d110dab77ff9259de7 [diff] |
Makefile: compile and link each module just once Several source files need to be compiled and linked when one or more config options are selected. To allow for easy selection in the Makefiles yet to avoild multiple compilation (which costs build time) and especially multiple linking (which causes errors), we use "COBJS = $(sort COBJS-y)" which eliminates duplicates. By courtesy of Detlev Zundel who suggested this approach. Signed-off-by: Wolfgang Denk <wd@denx.de>