1*bfe18815SJohn Schmoller# 2*bfe18815SJohn Schmoller# Copyright 2007-2008 Freescale Semiconductor, Inc. 3*bfe18815SJohn Schmoller# 4*bfe18815SJohn Schmoller# This program is free software; you can redistribute it and/or 5*bfe18815SJohn Schmoller# modify it under the terms of the GNU General Public License as 6*bfe18815SJohn Schmoller# published by the Free Software Foundation; either version 2 of 7*bfe18815SJohn Schmoller# the License, or (at your option) any later version. 8*bfe18815SJohn Schmoller# 9*bfe18815SJohn Schmoller 10*bfe18815SJohn Schmollerinclude $(TOPDIR)/config.mk 11*bfe18815SJohn Schmoller 12*bfe18815SJohn SchmollerLIB = $(obj)lib$(BOARD).a 13*bfe18815SJohn Schmoller 14*bfe18815SJohn SchmollerCOBJS-y += $(BOARD).o 15*bfe18815SJohn SchmollerCOBJS-y += ddr.o 16*bfe18815SJohn SchmollerCOBJS-y += law.o 17*bfe18815SJohn SchmollerCOBJS-y += tlb.o 18*bfe18815SJohn Schmoller 19*bfe18815SJohn SchmollerSRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) 20*bfe18815SJohn SchmollerOBJS := $(addprefix $(obj),$(COBJS-y)) 21*bfe18815SJohn SchmollerSOBJS := $(addprefix $(obj),$(SOBJS-y)) 22*bfe18815SJohn Schmoller 23*bfe18815SJohn Schmoller$(LIB): $(obj).depend $(OBJS) $(SOBJS) 24*bfe18815SJohn Schmoller $(AR) $(ARFLAGS) $@ $(OBJS) 25*bfe18815SJohn Schmoller 26*bfe18815SJohn Schmollerclean: 27*bfe18815SJohn Schmoller rm -f $(OBJS) $(SOBJS) 28*bfe18815SJohn Schmoller 29*bfe18815SJohn Schmollerdistclean: clean 30*bfe18815SJohn Schmoller rm -f $(LIB) core *.bak .depend 31*bfe18815SJohn Schmoller 32*bfe18815SJohn Schmoller######################################################################### 33*bfe18815SJohn Schmoller 34*bfe18815SJohn Schmoller# defines $(obj).depend target 35*bfe18815SJohn Schmollerinclude $(SRCTREE)/rules.mk 36*bfe18815SJohn Schmoller 37*bfe18815SJohn Schmollersinclude $(obj).depend 38*bfe18815SJohn Schmoller 39*bfe18815SJohn Schmoller######################################################################### 40