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