2 # Copyright (c) 2011 The Chromium OS Authors.
4 # (C) Copyright 2000-2003
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 # SPDX-License-Identifier: GPL-2.0+
10 include $(TOPDIR
)/config.mk
12 LIB
= $(obj
)lib
$(CPU
).o
14 COBJS
:= cpu.o os.o start.o state.o
16 SRCS
:= $(COBJS
:.o
=.c
)
17 OBJS
:= $(addprefix $(obj
),$(COBJS
))
19 all: $(obj
).depend
$(LIB
)
22 $(call cmd_link_o_target
, $(OBJS
))
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
))
28 #########################################################################
30 # defines $(obj).depend target
31 include $(SRCTREE
)/rules.mk
33 sinclude
$(obj
).depend
35 #########################################################################