]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/nios2/cpu/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / nios2 / cpu / Makefile
CommitLineData
5c952cf0 1#
f9328639 2# (C) Copyright 2000-2006
5c952cf0
WD
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
1a459660 5# SPDX-License-Identifier: GPL-2.0+
5c952cf0
WD
6#
7
8include $(TOPDIR)/config.mk
9
6d8962e8 10LIB = $(obj)lib$(CPU).o
5c952cf0
WD
11
12START = start.o
f9328639 13SOBJS = exceptions.o
c9d4f46b 14COBJS = cpu.o interrupts.o sysid.o traps.o epcs.o
4279c53e 15COBJS += fdt.o
5c952cf0 16
f9328639
MB
17SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19START := $(addprefix $(obj),$(START))
5c952cf0 20
f9328639
MB
21all: $(obj).depend $(START) $(LIB)
22
23$(LIB): $(OBJS)
6d8962e8 24 $(call cmd_link_o_target, $(OBJS))
5c952cf0
WD
25
26#########################################################################
27
f9328639
MB
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
5c952cf0 30
f9328639 31sinclude $(obj).depend
5c952cf0
WD
32
33#########################################################################