]>
Commit | Line | Data |
---|---|---|
500856eb RJ |
1 | # |
2 | # (C) Copyright 2007 Semihalf | |
3 | # | |
1a459660 | 4 | # SPDX-License-Identifier: GPL-2.0+ |
500856eb RJ |
5 | # |
6 | ||
7 | include $(TOPDIR)/config.mk | |
8 | ||
6d8962e8 | 9 | LIB = $(obj)libapi.o |
500856eb | 10 | |
a2a5729f CLC |
11 | COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ |
12 | api_platform-$(ARCH).o | |
500856eb | 13 | |
0dc1fc22 | 14 | COBJS := $(COBJS-y) |
500856eb RJ |
15 | SRCS := $(COBJS:.o=.c) |
16 | OBJS := $(addprefix $(obj),$(COBJS)) | |
17 | ||
500856eb | 18 | $(LIB): $(obj).depend $(OBJS) |
6d8962e8 | 19 | $(call cmd_link_o_target, $(OBJS)) |
500856eb RJ |
20 | |
21 | # defines $(obj).depend target | |
22 | include $(SRCTREE)/rules.mk | |
23 | ||
24 | sinclude $(obj).depend |