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