Roy Zang | 3e9ecf8 | 2011-06-09 11:30:52 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2010-2011 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 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)lib$(BOARD).o |
| 13 | |
| 14 | COBJS-y += $(BOARD).o |
| 15 | COBJS-y += law.o |
| 16 | COBJS-y += tlb.o |
| 17 | |
| 18 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 20 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Mike Frysinger | 57e0deb | 2011-10-18 05:30:17 +0000 | [diff] [blame] | 23 | $(call cmd_link_o_target, $(OBJS)) |
Roy Zang | 3e9ecf8 | 2011-06-09 11:30:52 +0800 | [diff] [blame] | 24 | |
Roy Zang | 3e9ecf8 | 2011-06-09 11:30:52 +0800 | [diff] [blame] | 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |