xref: /rk3399_rockchip-uboot/api/Makefile (revision a2a5729fc1247bb45d794e9d731c0b03bf58096f)
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
256d8962e8SSebastien CarlierLIB	= $(obj)libapi.o
26500856ebSRafal Jaworowski
27*a2a5729fSChe-Liang ChiouCOBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \
28*a2a5729fSChe-Liang Chiou		       api_platform-$(ARCH).o
29500856ebSRafal Jaworowski
300dc1fc22SRafal JaworowskiCOBJS	:= $(COBJS-y)
31500856ebSRafal JaworowskiSRCS	:= $(COBJS:.o=.c)
32500856ebSRafal JaworowskiOBJS	:= $(addprefix $(obj),$(COBJS))
33500856ebSRafal Jaworowski
34500856ebSRafal Jaworowski$(LIB):	$(obj).depend $(OBJS)
356d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
36500856ebSRafal Jaworowski
37500856ebSRafal Jaworowski# defines $(obj).depend target
38500856ebSRafal Jaworowskiinclude $(SRCTREE)/rules.mk
39500856ebSRafal Jaworowski
40500856ebSRafal Jaworowskisinclude $(obj).depend
41