blob: 2f7e1555782d5c75b937b0baf924083ac0b1589a [file] [log] [blame]
Macpaul Lin0d1f4742011-10-11 22:33:19 +00001#
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#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Macpaul Lin0d1f4742011-10-11 22:33:19 +000010#
11
12include $(TOPDIR)/config.mk
13
14LIB = $(obj)lib$(ARCH).o
15
ken kuoc0814262013-07-25 02:24:54 +080016COBJS-y += board.o
17COBJS-y += cache.o
Dirk Eibachd2df8112013-06-26 15:55:16 +020018COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
ken kuoc0814262013-07-25 02:24:54 +080019COBJS-y += interrupts.o
Macpaul Lin0d1f4742011-10-11 22:33:19 +000020
ken kuoc0814262013-07-25 02:24:54 +080021SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
22OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Macpaul Lin0d1f4742011-10-11 22:33:19 +000023
ken kuoc0814262013-07-25 02:24:54 +080024$(LIB): $(obj).depend $(OBJS)
Macpaul Lin0d1f4742011-10-11 22:33:19 +000025 $(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################