Simon Glass | b8605a1 | 2011-10-03 19:26:37 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2011 The Chromium OS Authors. |
| 3 | # |
| 4 | # (C) Copyright 2002-2006 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | b8605a1 | 2011-10-03 19:26:37 +0000 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)lib$(ARCH).o |
| 13 | |
Simon Glass | b8605a1 | 2011-10-03 19:26:37 +0000 | [diff] [blame] | 14 | COBJS-y += interrupts.o |
| 15 | |
| 16 | SRCS := $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 18 | |
| 19 | # Always build libsandbox.o |
| 20 | TARGETS := $(LIB) |
| 21 | |
| 22 | all: $(TARGETS) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) |
| 25 | $(call cmd_link_o_target, $(OBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |