2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # Copyright (C) 2005-2006 Atmel Corporation.
7 # SPDX-License-Identifier: GPL-2.0+
10 include $(TOPDIR)/config.mk
12 LIB := $(obj)lib$(CPU).o
17 COBJS-$(CONFIG_SYS_HSDRAMC) += hsdramc.o
18 COBJS-y += exception.o
20 COBJS-y += interrupts.o
21 COBJS-$(CONFIG_PORTMUX_PIO) += portmux-pio.o
22 COBJS-$(CONFIG_PORTMUX_GPIO) += portmux-gpio.o
24 SRCS := $(START-y:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
25 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
26 START := $(addprefix $(obj),$(START-y))
28 all: $(obj).depend $(START) $(LIB)
31 $(call cmd_link_o_target, $^)
33 #########################################################################
35 # defines $(obj).depend target
36 include $(SRCTREE)/rules.mk
38 sinclude $(obj).depend
40 #########################################################################