From: Peter Tyser Date: Mon, 22 Jun 2009 23:01:38 +0000 (-0500) Subject: api_examples/Makefile: Split up variable declarations X-Git-Tag: v2009.08-rc1~110^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=644cb38108b8dc22e0ef3cf5f404fe310d1995f8;p=oweals%2Fu-boot.git api_examples/Makefile: Split up variable declarations This cleans up the Makefile a bit and simplifies future changes Signed-off-by: Peter Tyser Acked-by: Rafal Jaworowski --- diff --git a/api_examples/Makefile b/api_examples/Makefile index 4c01437443..be0b462411 100644 --- a/api_examples/Makefile +++ b/api_examples/Makefile @@ -45,13 +45,20 @@ COBJS := $(COBJS-y) SOBJS := $(SOBJS-y) LIB = $(obj)libglue.a -LIBCOBJS-$(CONFIG_API) += glue.o crc32.o ctype.o string.o vsprintf.o \ - libgenwrap.o +LIBCOBJS-$(CONFIG_API) += glue.o +LIBCOBJS-$(CONFIG_API) += crc32.o +LIBCOBJS-$(CONFIG_API) += ctype.o +LIBCOBJS-$(CONFIG_API) += string.o +LIBCOBJS-$(CONFIG_API) += vsprintf.o +LIBCOBJS-$(CONFIG_API) += libgenwrap.o LIBCOBJS := $(LIBCOBJS-y) -LIBOBJS = $(addprefix $(obj),$(SOBJS) $(LIBCOBJS)) +LIBOBJS += $(addprefix $(obj),$(SOBJS)) +LIBOBJS += $(addprefix $(obj),$(LIBCOBJS)) -SRCS := $(COBJS:.o=.c) $(LIBCOBJS:.o=.c) $(SOBJS:.o=.S) +SRCS += $(COBJS:.o=.c) +SRCS += $(LIBCOBJS:.o=.c) +SRCS += $(SOBJS:.o=.S) OBJS := $(addprefix $(obj),$(COBJS)) ELF := $(addprefix $(obj),$(ELF)) BIN := $(addprefix $(obj),$(BIN))