# # (C) Copyright 2009 # Marvell Semiconductor # Written-by: Prafulla Wadaskar # # Copyright (C) 2011 Andes Technology Corporation # Shawn Lin, Andes Technology Corporation # Macpaul Lin, Andes Technology Corporation # # SPDX-License-Identifier: GPL-2.0+ # include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o COBJS-y := cpu.o timer.o ifndef CONFIG_SKIP_LOWLEVEL_INIT SOBJS := lowlevel_init.o endif ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG SOBJS += watchdog.o endif SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) all: $(obj).depend $(LIB) $(LIB): $(OBJS) $(call cmd_link_o_target, $(OBJS)) ######################################################################### # defines $(obj).depend target include $(SRCTREE)/rules.mk sinclude $(obj).depend #########################################################################