xref: /openbmc/u-boot/arch/sandbox/lib/Makefile (revision 3765b3e7)
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#
7# SPDX-License-Identifier:	GPL-2.0+
8#
9
10include $(TOPDIR)/config.mk
11
12LIB	= $(obj)lib$(ARCH).o
13
14COBJS-y	+= interrupts.o
15
16SRCS	:= $(COBJS-y:.o=.c)
17OBJS	:= $(addprefix $(obj),$(COBJS-y))
18
19# Always build libsandbox.o
20TARGETS	:= $(LIB)
21
22all:	$(TARGETS)
23
24$(LIB):	$(obj).depend $(OBJS)
25	$(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################
35