Simon Glass | a72007d | 2012-03-30 21:30:58 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2012 The Chromium Authors |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | a72007d | 2012-03-30 21:30:58 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB = $(obj)libtest.o |
| 10 | |
| 11 | COBJS-$(CONFIG_SANDBOX) += command_ut.o |
Kees Cook | 3153e91 | 2013-08-16 07:59:11 -0700 | [diff] [blame^] | 12 | COBJS-$(CONFIG_SANDBOX) += compression.o |
Simon Glass | a72007d | 2012-03-30 21:30:58 +0000 | [diff] [blame] | 13 | |
| 14 | COBJS := $(sort $(COBJS-y)) |
| 15 | SRCS := $(COBJS:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 17 | |
| 18 | all: $(LIB) $(XOBJS) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) |
| 21 | $(call cmd_link_o_target, $(OBJS)) |
| 22 | |
| 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |