blob: 87b8eb2bb8fa9de329b712ebdd8cc20c388d8768 [file] [log] [blame]
Rafal Jaworowski500856e2008-01-09 19:39:36 +01001#
2# (C) Copyright 2007 Semihalf
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowski500856e2008-01-09 19:39:36 +01005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01009LIB = $(obj)libapi.o
Rafal Jaworowski500856e2008-01-09 19:39:36 +010010
Che-Liang Chioua2a57292011-10-20 23:04:22 +000011COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \
12 api_platform-$(ARCH).o
Rafal Jaworowski500856e2008-01-09 19:39:36 +010013
Rafal Jaworowski0dc1fc22008-01-29 16:57:38 +010014COBJS := $(COBJS-y)
Rafal Jaworowski500856e2008-01-09 19:39:36 +010015SRCS := $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17
Rafal Jaworowski500856e2008-01-09 19:39:36 +010018$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Rafal Jaworowski500856e2008-01-09 19:39:36 +010020
21# defines $(obj).depend target
22include $(SRCTREE)/rules.mk
23
24sinclude $(obj).depend