]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/sandbox/cpu/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / sandbox / cpu / Makefile
1 #
2 # Copyright (c) 2011 The Chromium OS Authors.
3 #
4 # (C) Copyright 2000-2003
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 #
7 # SPDX-License-Identifier:      GPL-2.0+
8 #
9
10 include $(TOPDIR)/config.mk
11
12 LIB     = $(obj)lib$(CPU).o
13
14 COBJS   := cpu.o os.o start.o state.o
15
16 SRCS    := $(COBJS:.o=.c)
17 OBJS    := $(addprefix $(obj),$(COBJS))
18
19 all:    $(obj).depend $(LIB)
20
21 $(LIB): $(OBJS)
22         $(call cmd_link_o_target, $(OBJS))
23
24 # os.c is build in the system environment, so needs standard includes
25 $(obj)os.o: ALL_CFLAGS := $(filter-out -nostdinc,$(ALL_CFLAGS))
26 $(obj).depend.os: CPPFLAGS := $(filter-out -nostdinc,$(CPPFLAGS))
27
28 #########################################################################
29
30 # defines $(obj).depend target
31 include $(SRCTREE)/rules.mk
32
33 sinclude $(obj).depend
34
35 #########################################################################