1# 2# Copyright 2010 Freescale Semiconductor, Inc. 3# 4# This program is free software; you can redistribute it and/or modify it 5# under the terms of the GNU General Public License as published by the Free 6# Software Foundation; either version 2 of the License, or (at your option) 7# any later version. 8# 9 10include $(TOPDIR)/config.mk 11 12LIB = $(obj)lib$(BOARD).o 13 14COBJS-y += $(BOARD).o 15COBJS-y += ddr.o 16COBJS-y += law.o 17COBJS-y += tlb.o 18 19COBJS-$(CONFIG_FSL_DIU_FB) += diu.o 20 21SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 22OBJS := $(addprefix $(obj),$(COBJS-y)) 23SOBJS := $(addprefix $(obj),$(SOBJS)) 24 25$(LIB): $(obj).depend $(OBJS) $(SOBJS) 26 $(call cmd_link_o_target, $(OBJS)) 27 28######################################################################### 29 30# defines $(obj).depend target 31include $(SRCTREE)/rules.mk 32 33sinclude $(obj).depend 34 35######################################################################### 36