X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=api%2FMakefile;h=0e99f741b7890f1e84776b6fca903807cd4251ba;hb=5bdf46b71b26263d090ccdb1c6679afd085f0323;hp=94de3dc395aa3c015a1d77f8880e27c6be033261;hpb=fc16904ce17bb9f12db469afbaf73bbd178cc686;p=u-boot diff --git a/api/Makefile b/api/Makefile index 94de3dc395..0e99f741b7 100644 --- a/api/Makefile +++ b/api/Makefile @@ -22,17 +22,17 @@ include $(TOPDIR)/config.mk -LIB = $(obj)libapi.a +LIB = $(obj)libapi.o -COBJS = api.o api_net.o api_storage.o api_platform-$(ARCH).o +COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ + api_platform-$(ARCH).o +COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) -all: $(LIB) - $(LIB): $(obj).depend $(OBJS) - $(AR) $(ARFLAGS) $@ $(OBJS) + $(call cmd_link_o_target, $(OBJS)) # defines $(obj).depend target include $(SRCTREE)/rules.mk