blob: fb388f05dfbb8d73507fc48ba70c299463feea9b [file] [log] [blame]
Macpaul Lin83dbca72011-10-11 22:33:18 +00001#
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#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010# SPDX-License-Identifier: GPL-2.0+
Macpaul Lin83dbca72011-10-11 22:33:18 +000011#
12
13include $(TOPDIR)/config.mk
14
15LIB = $(obj)lib$(SOC).o
16
17COBJS-y := cpu.o timer.o
18
19ifndef CONFIG_SKIP_LOWLEVEL_INIT
20SOBJS := lowlevel_init.o
21endif
22
23ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
24SOBJS += watchdog.o
25endif
26
27SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
28OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
29
30all: $(obj).depend $(LIB)
31
32$(LIB): $(OBJS)
33 $(call cmd_link_o_target, $(OBJS))
34
35#########################################################################
36
37# defines $(obj).depend target
38include $(SRCTREE)/rules.mk
39
40sinclude $(obj).depend
41
42#########################################################################