xref: /rk3399_rockchip-uboot/api/Makefile (revision 0dc1fc22af86d16993388d9ed9630dbaa2d51826)
1500856ebSRafal Jaworowski#
2500856ebSRafal Jaworowski# (C) Copyright 2007 Semihalf
3500856ebSRafal Jaworowski#
4500856ebSRafal Jaworowski# See file CREDITS for list of people who contributed to this
5500856ebSRafal Jaworowski# project.
6500856ebSRafal Jaworowski#
7500856ebSRafal Jaworowski# This program is free software; you can redistribute it and/or
8500856ebSRafal Jaworowski# modify it under the terms of the GNU General Public License as
9500856ebSRafal Jaworowski# published by the Free Software Foundatio; either version 2 of
10500856ebSRafal Jaworowski# the License, or (at your option) any later version.
11500856ebSRafal Jaworowski#
12500856ebSRafal Jaworowski# This program is distributed in the hope that it will be useful,
13500856ebSRafal Jaworowski# but WITHOUT ANY WARRANTY; without even the implied warranty of
14500856ebSRafal Jaworowski# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15500856ebSRafal Jaworowski# GNU General Public License for more details.
16500856ebSRafal Jaworowski#
17500856ebSRafal Jaworowski# You should have received a copy of the GNU General Public License
18500856ebSRafal Jaworowski# along with this program; if not, write to the Free Software
19500856ebSRafal Jaworowski# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20500856ebSRafal Jaworowski# MA 02111-1307 USA
21500856ebSRafal Jaworowski#
22500856ebSRafal Jaworowski
23500856ebSRafal Jaworowskiinclude $(TOPDIR)/config.mk
24500856ebSRafal Jaworowski
25500856ebSRafal JaworowskiLIB	= $(obj)libapi.a
26500856ebSRafal Jaworowski
27*0dc1fc22SRafal JaworowskiCOBJS-$(CONFIG_API) += api.o api_net.o api_storage.o api_platform-$(ARCH).o
28500856ebSRafal Jaworowski
29*0dc1fc22SRafal JaworowskiCOBJS	:= $(COBJS-y)
30500856ebSRafal JaworowskiSRCS	:= $(COBJS:.o=.c)
31500856ebSRafal JaworowskiOBJS	:= $(addprefix $(obj),$(COBJS))
32500856ebSRafal Jaworowski
33500856ebSRafal Jaworowski$(LIB):	$(obj).depend $(OBJS)
34500856ebSRafal Jaworowski	$(AR) $(ARFLAGS) $@ $(OBJS)
35500856ebSRafal Jaworowski
36500856ebSRafal Jaworowski# defines $(obj).depend target
37500856ebSRafal Jaworowskiinclude $(SRCTREE)/rules.mk
38500856ebSRafal Jaworowski
39500856ebSRafal Jaworowskisinclude $(obj).depend
40