X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsc520_cdp%2FMakefile;h=7944a01a64338880d2cd26fedc762fbc3972bb3c;hb=6db6c18b5074f959882bb199c850359ded54778f;hp=e19be51c30f0b56e56d39808edf1d5f4e04c041b;hpb=7e2a24dca9a3213f0b4941562e4387e20bec3e2d;p=u-boot diff --git a/board/sc520_cdp/Makefile b/board/sc520_cdp/Makefile index e19be51c30..7944a01a64 100644 --- a/board/sc520_cdp/Makefile +++ b/board/sc520_cdp/Makefile @@ -28,12 +28,14 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := sc520_cdp.o flash.o -SOBJS := sc520_cdp_asm.o sc520_cdp_asm16.o +COBJS-y += sc520_cdp.o +COBJS-y += flash.o +COBJS-$(CONFIG_PCI) += sc520_cdp_pci.o +SOBJS-y += sc520_cdp_asm.o +SOBJS-y += sc520_cdp_asm16.o -SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS)) -SOBJS := $(addprefix $(obj),$(SOBJS)) +SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) @@ -42,7 +44,7 @@ clean: rm -f $(SOBJS) $(OBJS) distclean: clean - rm -f $(LIB) core *.bak .depend + rm -f $(LIB) core *.bak $(obj).depend #########################################################################