1# 2# (C) Copyright 2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# Copyright 2004 Freescale Semiconductor, Inc. 6# 7# SPDX-License-Identifier: GPL-2.0+ 8# 9 10include $(TOPDIR)/config.mk 11 12LIB = $(obj)lib$(BOARD).o 13 14COBJS-y += $(BOARD).o 15COBJS-$(CONFIG_PCI) += pci.o 16 17COBJS := $(COBJS-y) 18SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 19OBJS := $(addprefix $(obj),$(COBJS)) 20SOBJS := $(addprefix $(obj),$(SOBJS)) 21 22$(LIB): $(obj).depend $(OBJS) 23 $(call cmd_link_o_target, $(OBJS)) 24 25######################################################################### 26 27# defines $(obj).depend target 28include $(SRCTREE)/rules.mk 29 30sinclude $(obj).depend 31 32######################################################################### 33