xref: /openbmc/u-boot/arch/nds32/lib/Makefile (revision aaf5e825)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2011 Andes Technology Corporation
6# Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
7# Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
8#
9# SPDX-License-Identifier:	GPL-2.0+
10#
11
12include $(TOPDIR)/config.mk
13
14LIB	= $(obj)lib$(ARCH).o
15
16COBJS-y += board.o
17COBJS-y += cache.o
18COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
19COBJS-y += interrupts.o
20
21SRCS  := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
22OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
23
24$(LIB): $(obj).depend $(OBJS)
25	$(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################
35