Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2008 Extreme Engineering Solutions, Inc. |
| 3 | # Copyright 2007 Freescale Semiconductor, Inc. |
| 4 | # (C) Copyright 2001-2006 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
| 7 | # See file CREDITS for list of people who contributed to this |
| 8 | # project. |
| 9 | # |
| 10 | # This program is free software; you can redistribute it and/or |
| 11 | # modify it under the terms of the GNU General Public License as |
| 12 | # published by the Free Software Foundation; either version 2 of |
| 13 | # the License, or (at your option) any later version. |
| 14 | # |
| 15 | |
| 16 | include $(TOPDIR)/config.mk |
| 17 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 18 | LIB = $(obj)lib$(BOARD).o |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 19 | |
| 20 | COBJS-y += $(BOARD).o |
| 21 | COBJS-y += ddr.o |
| 22 | COBJS-y += law.o |
| 23 | COBJS-y += tlb.o |
| 24 | |
| 25 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 26 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 27 | SOBJS := $(addprefix $(obj),$(SOBJS-y)) |
| 28 | |
| 29 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | $(call cmd_link_o_target, $(OBJS)) |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 31 | |
| 32 | clean: |
| 33 | rm -f $(OBJS) $(SOBJS) |
| 34 | |
| 35 | distclean: clean |
| 36 | rm -f $(LIB) core *.bak .depend |
| 37 | |
| 38 | ######################################################################### |
| 39 | |
| 40 | # defines $(obj).depend target |
| 41 | include $(SRCTREE)/rules.mk |
| 42 | |
| 43 | sinclude $(obj).depend |
| 44 | |
| 45 | ######################################################################### |