blob: 1d6a538fd2a06004b8d7355c2864bdc171e8323d [file] [log] [blame]
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +01001#
2# Cirrus Logic EP93xx CPU-specific Makefile
3#
4# Copyright (C) 2009 Matthias Kaehlcke <matthias@kaehlcke.net>
5#
6# Copyright (C) 2004, 2005
7# Cory T. Tusar, Videon Central, Inc., <ctusar@videon-central.com>
8#
9# Copyright (C) 2006
10# Dominic Rath <Dominic.Rath@gmx.de>
11#
12# Based on an original Makefile, which is
13#
14# (C) Copyright 2000, 2001, 2002
15# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
16#
17# See file CREDITS for list of people who contributed to this project.
18#
19# This program is free software; you can redistribute it and/or modify
20# it under the terms of the GNU General Public License as published by
21# the Free Software Foundation; either version 2 of the License, or
22# (at your option) any later version.
23#
24# This program is distributed in the hope that it will be useful, but
25# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
27# for more details.
28#
29# You should have received a copy of the GNU General Public License along
30# with this program; if not, write to the Free Software Foundation, Inc.,
31# 675 Mass Ave, Cambridge, MA 02139, USA.
32#
33include $(TOPDIR)/config.mk
34
Sebastien Carliera8d426f2010-11-05 15:48:07 +010035LIB = $(obj)lib$(SOC).o
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010036
37COBJS = cpu.o led.o speed.o timer.o
38SOBJS = lowlevel_init.o
39
40SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
41OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
42
43all: $(obj).depend $(LIB)
44
45$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010046 $(call cmd_link_o_target, $(OBJS))
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010047
48#########################################################################
49
50# defines $(obj).depend target
51include $(SRCTREE)/rules.mk
52
53sinclude $(obj).depend
54
55#########################################################################