xref: /openbmc/u-boot/api/Makefile (revision 425faf74)
1#
2# (C) Copyright 2007 Semihalf
3#
4# SPDX-License-Identifier:	GPL-2.0+
5#
6
7include $(TOPDIR)/config.mk
8
9LIB	= $(obj)libapi.o
10
11COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \
12		       api_platform-$(ARCH).o
13
14COBJS	:= $(COBJS-y)
15SRCS	:= $(COBJS:.o=.c)
16OBJS	:= $(addprefix $(obj),$(COBJS))
17
18$(LIB):	$(obj).depend $(OBJS)
19	$(call cmd_link_o_target, $(OBJS))
20
21# defines $(obj).depend target
22include $(SRCTREE)/rules.mk
23
24sinclude $(obj).depend
25