1500856ebSRafal Jaworowski# 2500856ebSRafal Jaworowski# (C) Copyright 2007 Semihalf 3500856ebSRafal Jaworowski# 4*1a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 5500856ebSRafal Jaworowski# 6500856ebSRafal Jaworowski 7500856ebSRafal Jaworowskiinclude $(TOPDIR)/config.mk 8500856ebSRafal Jaworowski 96d8962e8SSebastien CarlierLIB = $(obj)libapi.o 10500856ebSRafal Jaworowski 11a2a5729fSChe-Liang ChiouCOBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ 12a2a5729fSChe-Liang Chiou api_platform-$(ARCH).o 13500856ebSRafal Jaworowski 140dc1fc22SRafal JaworowskiCOBJS := $(COBJS-y) 15500856ebSRafal JaworowskiSRCS := $(COBJS:.o=.c) 16500856ebSRafal JaworowskiOBJS := $(addprefix $(obj),$(COBJS)) 17500856ebSRafal Jaworowski 18500856ebSRafal Jaworowski$(LIB): $(obj).depend $(OBJS) 196d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 20500856ebSRafal Jaworowski 21500856ebSRafal Jaworowski# defines $(obj).depend target 22500856ebSRafal Jaworowskiinclude $(SRCTREE)/rules.mk 23500856ebSRafal Jaworowski 24500856ebSRafal Jaworowskisinclude $(obj).depend 25