xref: /openbmc/u-boot/arch/sandbox/cpu/Makefile (revision c0dcece7)
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
10include $(TOPDIR)/config.mk
11
12LIB	= $(obj)lib$(CPU).o
13
14COBJS	:= cpu.o os.o start.o state.o
15
16SRCS	:= $(COBJS:.o=.c)
17OBJS	:= $(addprefix $(obj),$(COBJS))
18
19all:	$(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
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################
36