xref: /openbmc/u-boot/api/Makefile (revision 500856eb1707ed17d9204baa61dd59948d3b2899)
1*500856ebSRafal Jaworowski#
2*500856ebSRafal Jaworowski# (C) Copyright 2007 Semihalf
3*500856ebSRafal Jaworowski#
4*500856ebSRafal Jaworowski# See file CREDITS for list of people who contributed to this
5*500856ebSRafal Jaworowski# project.
6*500856ebSRafal Jaworowski#
7*500856ebSRafal Jaworowski# This program is free software; you can redistribute it and/or
8*500856ebSRafal Jaworowski# modify it under the terms of the GNU General Public License as
9*500856ebSRafal Jaworowski# published by the Free Software Foundatio; either version 2 of
10*500856ebSRafal Jaworowski# the License, or (at your option) any later version.
11*500856ebSRafal Jaworowski#
12*500856ebSRafal Jaworowski# This program is distributed in the hope that it will be useful,
13*500856ebSRafal Jaworowski# but WITHOUT ANY WARRANTY; without even the implied warranty of
14*500856ebSRafal Jaworowski# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*500856ebSRafal Jaworowski# GNU General Public License for more details.
16*500856ebSRafal Jaworowski#
17*500856ebSRafal Jaworowski# You should have received a copy of the GNU General Public License
18*500856ebSRafal Jaworowski# along with this program; if not, write to the Free Software
19*500856ebSRafal Jaworowski# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20*500856ebSRafal Jaworowski# MA 02111-1307 USA
21*500856ebSRafal Jaworowski#
22*500856ebSRafal Jaworowski
23*500856ebSRafal Jaworowskiinclude $(TOPDIR)/config.mk
24*500856ebSRafal Jaworowski
25*500856ebSRafal JaworowskiLIB	= $(obj)libapi.a
26*500856ebSRafal Jaworowski
27*500856ebSRafal JaworowskiCOBJS	= api.o api_net.o api_storage.o api_platform-$(ARCH).o
28*500856ebSRafal Jaworowski
29*500856ebSRafal JaworowskiSRCS	:= $(COBJS:.o=.c)
30*500856ebSRafal JaworowskiOBJS	:= $(addprefix $(obj),$(COBJS))
31*500856ebSRafal Jaworowski
32*500856ebSRafal Jaworowskiall:	$(LIB)
33*500856ebSRafal Jaworowski
34*500856ebSRafal Jaworowski$(LIB):	$(obj).depend $(OBJS)
35*500856ebSRafal Jaworowski	$(AR) $(ARFLAGS) $@ $(OBJS)
36*500856ebSRafal Jaworowski
37*500856ebSRafal Jaworowski# defines $(obj).depend target
38*500856ebSRafal Jaworowskiinclude $(SRCTREE)/rules.mk
39*500856ebSRafal Jaworowski
40*500856ebSRafal Jaworowskisinclude $(obj).depend
41