X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=api%2FMakefile;h=42168920725c6ff938f25963e4dcd0c557f72b7b;hb=dce3d797102b6618e8bdd4a09cfd35969f165d86;hp=94de3dc395aa3c015a1d77f8880e27c6be033261;hpb=80adb2761627ec10eb8997bea6c1e52e34816c6b;p=u-boot diff --git a/api/Makefile b/api/Makefile index 94de3dc395..4216892072 100644 --- a/api/Makefile +++ b/api/Makefile @@ -24,13 +24,12 @@ include $(TOPDIR)/config.mk LIB = $(obj)libapi.a -COBJS = api.o api_net.o api_storage.o api_platform-$(ARCH).o +COBJS-$(CONFIG_API) += api.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)