Skip to content
Snippets Groups Projects
Commit 47ffd6c2 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
parent 48d0192f
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment