Adding support for saving build objects in a separated directory.
[pandora-x-loader.git] / cpu / omap4 / Makefile
1 #
2 # (C) Copyright 2009
3 # Texas Instruments, <www.ti.com>
4 # (C) Copyright 2000-2003
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
12 # version 2 as published by the Free Software Foundation.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 # MA 02111-1307 USA
23 #
24
25 include $(TOPDIR)/config.mk
26
27 LIB     = $(obj)lib$(CPU).a
28
29 START   = start.o
30 COBJS   = cpu.o mmc.o sys_info.o
31
32 SRCS    := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
33 OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS))
34 START   := $(addprefix $(obj),$(START))
35
36 all:    $(obj).depend $(START) $(LIB)
37
38 $(LIB): $(OBJS)
39         $(AR) crv $@ $(OBJS)
40
41 #########################################################################
42
43 # defines $(obj).depend target
44 include $(SRCTREE)/rules.mk
45
46 sinclude $(obj).depend
47
48 #########################################################################