Simon Glass | 92ccc96 | 2012-12-26 09:53:35 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2012, Google Inc. |
| 3 | # |
| 4 | # (C) Copyright 2006 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
| 7 | # (C) Copyright 2003 |
| 8 | # Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de |
| 9 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 92ccc96 | 2012-12-26 09:53:35 +0000 | [diff] [blame] | 11 | # |
| 12 | |
| 13 | include $(TOPDIR)/config.mk |
| 14 | |
| 15 | LIB = $(obj)libsandboxfs.o |
| 16 | |
| 17 | COBJS-$(CONFIG_SANDBOX) := sandboxfs.o |
| 18 | |
| 19 | SRCS := $(COBJS-y:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) |
| 21 | |
| 22 | all: $(LIB) $(AOBJS) |
| 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 | ######################################################################### |