build: Make a common library build
Derive the library name from the directory name, and let each library Makefile only declare the objects that are needed. This reduces duplicate code for the ar call. While at it, also pretty-print that call. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
ac1447ae9d
commit
f4b3d14e97
16 changed files with 8 additions and 60 deletions
|
@ -1,5 +1,3 @@
|
|||
ALL=$(OUT)libeap_server.a
|
||||
|
||||
include ../lib.rules
|
||||
|
||||
install:
|
||||
|
@ -15,5 +13,3 @@ LIB_OBJS= \
|
|||
|
||||
_OBJS_VAR := LIB_OBJS
|
||||
include ../objs.mk
|
||||
$(OUT)libeap_server.a: $(LIB_OBJS)
|
||||
$(AR) crT $@ $?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue