]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/nds32/cpu/n1213/ag102/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-nds32
[karo-tx-uboot.git] / arch / nds32 / cpu / n1213 / ag102 / Makefile
1 #
2 # (C) Copyright 2009
3 # Marvell Semiconductor <www.marvell.com>
4 # Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5 #
6 # Copyright (C) 2011 Andes Technology Corporation
7 # Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
8 # Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
9 #
10 # SPDX-License-Identifier:      GPL-2.0+
11 #
12
13 include $(TOPDIR)/config.mk
14
15 LIB     = $(obj)lib$(SOC).o
16
17 COBJS-y := cpu.o timer.o
18
19 ifndef CONFIG_SKIP_LOWLEVEL_INIT
20 SOBJS-y := lowlevel_init.o
21 endif
22
23 ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
24 SOBJS-y += watchdog.o
25 endif
26
27 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
28 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
29
30 all:    $(obj).depend $(LIB)
31
32 $(LIB): $(OBJS)
33         $(call cmd_link_o_target, $(OBJS))
34
35 #########################################################################
36
37 # defines $(obj).depend target
38 include $(SRCTREE)/rules.mk
39
40 sinclude $(obj).depend
41
42 #########################################################################