Macpaul Lin | 0d1f474 | 2011-10-11 22:33:19 +0000 | [diff] [blame] | 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 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Macpaul Lin | 0d1f474 | 2011-10-11 22:33:19 +0000 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
| 14 | LIB = $(obj)lib$(ARCH).o |
| 15 | |
ken kuo | c081426 | 2013-07-25 02:24:54 +0800 | [diff] [blame] | 16 | COBJS-y += board.o |
| 17 | COBJS-y += cache.o |
Dirk Eibach | d2df811 | 2013-06-26 15:55:16 +0200 | [diff] [blame] | 18 | COBJS-$(CONFIG_CMD_BOOTM) += bootm.o |
ken kuo | c081426 | 2013-07-25 02:24:54 +0800 | [diff] [blame] | 19 | COBJS-y += interrupts.o |
Macpaul Lin | 0d1f474 | 2011-10-11 22:33:19 +0000 | [diff] [blame] | 20 | |
ken kuo | c081426 | 2013-07-25 02:24:54 +0800 | [diff] [blame] | 21 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
Macpaul Lin | 0d1f474 | 2011-10-11 22:33:19 +0000 | [diff] [blame] | 23 | |
ken kuo | c081426 | 2013-07-25 02:24:54 +0800 | [diff] [blame] | 24 | $(LIB): $(obj).depend $(OBJS) |
Macpaul Lin | 0d1f474 | 2011-10-11 22:33:19 +0000 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |