blob: e386867fe6fb14dc68568e8f15db42e28915d835 [file] [log] [blame]
Simon Glass4b0730d2011-09-26 14:10:39 +00001#
2# Copyright (c) 2011 The Chromium OS Authors.
3#
4# (C) Copyright 2000-2003
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Simon Glass4b0730d2011-09-26 14:10:39 +00008#
9
10include $(TOPDIR)/config.mk
11
12LIB = $(obj)lib$(CPU).o
13
Simon Glass6fb62072012-02-15 15:51:15 -080014COBJS := cpu.o os.o start.o state.o
Simon Glass4b0730d2011-09-26 14:10:39 +000015
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
Andreas Bießmannf8d2c652011-12-02 11:53:13 +010024# 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
Simon Glass4b0730d2011-09-26 14:10:39 +000028#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################