Graeme Russ | f5a77a0 | 2009-02-24 21:11:24 +1100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2008 |
| 3 | # Graeme Russ, graeme.russ@gmail.com. |
| 4 | # |
| 5 | # (C) Copyright 2006 |
| 6 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 7 | # |
| 8 | # (C) Copyright 2002 |
Albert ARIBAUD | fa82f87 | 2011-08-04 18:45:45 +0200 | [diff] [blame] | 9 | # Daniel Engström, Omicron Ceti AB, daniel@omicron.se. |
Graeme Russ | f5a77a0 | 2009-02-24 21:11:24 +1100 | [diff] [blame] | 10 | # |
| 11 | # See file CREDITS for list of people who contributed to this |
| 12 | # project. |
| 13 | # |
| 14 | # This program is free software; you can redistribute it and/or |
| 15 | # modify it under the terms of the GNU General Public License as |
| 16 | # published by the Free Software Foundation; either version 2 of |
| 17 | # the License, or (at your option) any later version. |
| 18 | # |
| 19 | # This program is distributed in the hope that it will be useful, |
| 20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | # GNU General Public License for more details. |
| 23 | # |
| 24 | # You should have received a copy of the GNU General Public License |
| 25 | # along with this program; if not, write to the Free Software |
| 26 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 27 | # MA 02111-1307 USA |
| 28 | # |
| 29 | |
| 30 | include $(TOPDIR)/config.mk |
| 31 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 32 | LIB := $(obj)lib$(SOC).o |
Graeme Russ | f5a77a0 | 2009-02-24 21:11:24 +1100 | [diff] [blame] | 33 | |
| 34 | COBJS-$(CONFIG_SYS_SC520) += sc520.o |
Graeme Russ | 0640e40 | 2011-02-12 15:11:25 +1100 | [diff] [blame] | 35 | COBJS-$(CONFIG_PCI) += sc520_pci.o |
Graeme Russ | b7af583 | 2011-04-13 19:43:29 +1000 | [diff] [blame] | 36 | COBJS-$(CONFIG_SYS_SC520_RESET) += sc520_reset.o |
Graeme Russ | 96cd664 | 2011-02-12 15:11:54 +1100 | [diff] [blame] | 37 | COBJS-$(CONFIG_SYS_SC520) += sc520_sdram.o |
Graeme Russ | 6d7f610 | 2009-02-24 21:14:32 +1100 | [diff] [blame] | 38 | COBJS-$(CONFIG_SYS_SC520_SSI) += sc520_ssi.o |
| 39 | COBJS-$(CONFIG_SYS_SC520_TIMER) += sc520_timer.o |
Graeme Russ | 6d7f610 | 2009-02-24 21:14:32 +1100 | [diff] [blame] | 40 | |
Graeme Russ | ed4cba7 | 2011-02-12 15:11:52 +1100 | [diff] [blame] | 41 | SOBJS-$(CONFIG_SYS_SC520) += sc520_car.o |
Graeme Russ | f5a77a0 | 2009-02-24 21:11:24 +1100 | [diff] [blame] | 42 | |
| 43 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 44 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
| 45 | |
| 46 | all: $(obj).depend $(LIB) |
| 47 | |
| 48 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 49 | $(call cmd_link_o_target, $(OBJS)) |
Graeme Russ | f5a77a0 | 2009-02-24 21:11:24 +1100 | [diff] [blame] | 50 | |
| 51 | ######################################################################### |
| 52 | |
| 53 | # defines $(obj).depend target |
| 54 | include $(SRCTREE)/rules.mk |
| 55 | |
| 56 | sinclude $(obj).depend |
| 57 | |
| 58 | ######################################################################### |