Makefile 457 B

123456789101112131415161718192021222324
  1. #
  2. # (C) Copyright 2007 Semihalf
  3. #
  4. # SPDX-License-Identifier: GPL-2.0+
  5. #
  6. include $(TOPDIR)/config.mk
  7. LIB = $(obj)libapi.o
  8. COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \
  9. api_platform-$(ARCH).o
  10. COBJS := $(COBJS-y)
  11. SRCS := $(COBJS:.o=.c)
  12. OBJS := $(addprefix $(obj),$(COBJS))
  13. $(LIB): $(obj).depend $(OBJS)
  14. $(call cmd_link_o_target, $(OBJS))
  15. # defines $(obj).depend target
  16. include $(SRCTREE)/rules.mk
  17. sinclude $(obj).depend