diff options
author | Rafal Jaworowski <raj@semihalf.com> | 2008-01-29 16:57:38 +0100 |
---|---|---|
committer | Rafal Jaworowski <raj@semihalf.com> | 2008-01-29 16:57:38 +0100 |
commit | 0dc1fc22af86d16993388d9ed9630dbaa2d51826 (patch) | |
tree | da03f3b050381d07ed1a5286d1b7b5ad01924845 /api | |
parent | 98b742489c09780be6a832eeaa4e5eff824792bb (diff) |
API: Convert conditional building to the new scheme.
This fixes a build breakage with CONFIG_API enabled, which appeared after
the recent changes in the U-Boot build system.
Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/api/Makefile b/api/Makefile index 94de3dc395a..42168920725 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) |