xref: /openbmc/u-boot/board/samsung/smdkc100/Makefile (revision 8bc4ee9e)
1*8bc4ee9eSMinkyu Kang#
2*8bc4ee9eSMinkyu Kang# (C) Copyright 2000, 2001, 2002
3*8bc4ee9eSMinkyu Kang# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*8bc4ee9eSMinkyu Kang#
5*8bc4ee9eSMinkyu Kang# (C) Copyright 2008
6*8bc4ee9eSMinkyu Kang# Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
7*8bc4ee9eSMinkyu Kang#
8*8bc4ee9eSMinkyu Kang# See file CREDITS for list of people who contributed to this
9*8bc4ee9eSMinkyu Kang# project.
10*8bc4ee9eSMinkyu Kang#
11*8bc4ee9eSMinkyu Kang# This program is free software; you can redistribute it and/or
12*8bc4ee9eSMinkyu Kang# modify it under the terms of the GNU General Public License as
13*8bc4ee9eSMinkyu Kang# published by the Free Software Foundation; either version 2 of
14*8bc4ee9eSMinkyu Kang# the License, or (at your option) any later version.
15*8bc4ee9eSMinkyu Kang#
16*8bc4ee9eSMinkyu Kang# This program is distributed in the hope that it will be useful,
17*8bc4ee9eSMinkyu Kang# but WITHOUT ANY WARRANTY; without even the implied warranty of
18*8bc4ee9eSMinkyu Kang# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19*8bc4ee9eSMinkyu Kang# GNU General Public License for more details.
20*8bc4ee9eSMinkyu Kang#
21*8bc4ee9eSMinkyu Kang# You should have received a copy of the GNU General Public License
22*8bc4ee9eSMinkyu Kang# along with this program; if not, write to the Free Software
23*8bc4ee9eSMinkyu Kang# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24*8bc4ee9eSMinkyu Kang# MA 02111-1307 USA
25*8bc4ee9eSMinkyu Kang#
26*8bc4ee9eSMinkyu Kang
27*8bc4ee9eSMinkyu Kanginclude $(TOPDIR)/config.mk
28*8bc4ee9eSMinkyu Kang
29*8bc4ee9eSMinkyu KangLIB	= $(obj)lib$(BOARD).a
30*8bc4ee9eSMinkyu Kang
31*8bc4ee9eSMinkyu KangCOBJS-y	:= smdkc100.o
32*8bc4ee9eSMinkyu KangCOBJS-$(CONFIG_SAMSUNG_ONENAND)	+= onenand.o
33*8bc4ee9eSMinkyu KangSOBJS	:= lowlevel_init.o
34*8bc4ee9eSMinkyu Kang
35*8bc4ee9eSMinkyu KangSRCS    := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
36*8bc4ee9eSMinkyu KangOBJS	:= $(addprefix $(obj),$(COBJS-y))
37*8bc4ee9eSMinkyu KangSOBJS	:= $(addprefix $(obj),$(SOBJS))
38*8bc4ee9eSMinkyu Kang
39*8bc4ee9eSMinkyu Kang$(LIB):	$(obj).depend $(SOBJS) $(OBJS)
40*8bc4ee9eSMinkyu Kang	$(AR) $(ARFLAGS) $@ $(SOBJS) $(OBJS)
41*8bc4ee9eSMinkyu Kang
42*8bc4ee9eSMinkyu Kangclean:
43*8bc4ee9eSMinkyu Kang	rm -f $(SOBJS) $(OBJS)
44*8bc4ee9eSMinkyu Kang
45*8bc4ee9eSMinkyu Kangdistclean:	clean
46*8bc4ee9eSMinkyu Kang	rm -f $(LIB) core *.bak $(obj).depend
47*8bc4ee9eSMinkyu Kang
48*8bc4ee9eSMinkyu Kang#########################################################################
49*8bc4ee9eSMinkyu Kang
50*8bc4ee9eSMinkyu Kang# defines $(obj).depend target
51*8bc4ee9eSMinkyu Kanginclude $(SRCTREE)/rules.mk
52*8bc4ee9eSMinkyu Kang
53*8bc4ee9eSMinkyu Kangsinclude $(obj).depend
54*8bc4ee9eSMinkyu Kang
55*8bc4ee9eSMinkyu Kang#########################################################################
56