blob: 87b8eb2bb8fa9de329b712ebdd8cc20c388d8768 [file] [log] [blame]
Rafal Jaworowskia19be782008-01-09 19:39:36 +01001#
2# (C) Copyright 2007 Semihalf
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowskia19be782008-01-09 19:39:36 +01005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = $(obj)libapi.o
Rafal Jaworowskia19be782008-01-09 19:39:36 +010010
Che-Liang Chiou0d460412011-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 Jaworowskia19be782008-01-09 19:39:36 +010013
Rafal Jaworowskif42e3412008-01-29 16:57:38 +010014COBJS := $(COBJS-y)
Rafal Jaworowskia19be782008-01-09 19:39:36 +010015SRCS := $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17
Rafal Jaworowskia19be782008-01-09 19:39:36 +010018$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Rafal Jaworowskia19be782008-01-09 19:39:36 +010020
21# defines $(obj).depend target
22include $(SRCTREE)/rules.mk
23
24sinclude $(obj).depend