1 include Makefile.common
4 export SRCROOT := $(shell /bin/pwd)
7 export OBJROOT = $(SRCROOT)/BUILD/obj
10 export DSTROOT = $(SRCROOT)/BUILD/dst
13 export SYMROOT = $(SRCROOT)/BUILD/sym
17 DSTSUBPATH = $(DSTROOT)/AppleInternal/CoreOS/tests/xnu
18 BATS_CONFIG_PATH = $(DSTROOT)/AppleInternal/CoreOS
20 DSTSUBPATH = $(DSTROOT)
21 BATS_CONFIG_PATH = $(DSTROOT)
24 COMMON_TARGETS = unit_tests \
39 BATS_TARGET = $(BATS_CONFIG_PATH)/BATS
41 ifeq "$(Embedded)" "YES"
42 TARGETS = $(addprefix $(DSTSUBPATH)/, $(COMMON_TARGETS) $(IPHONE_TARGETS))
44 TARGETS = $(addprefix $(DSTSUBPATH)/, $(COMMON_TARGETS) $(MAC_TARGETS))
47 all: $(BATS_TARGET) $(TARGETS)
49 $(BATS_TARGET) $(DSTSUBPATH)/%:
51 mkdir -p $(OBJROOT)/$(notdir $@)
53 $(MAKE) -C $(SRCROOT)/$(notdir $@) SRCROOT=$(SRCROOT)/$(notdir $@) DSTROOT=$@ OBJROOT=$(OBJROOT)/$(notdir $@) SDKROOT=$(SDKROOT)