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