forked from westerndigitalcorporation/stat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stat_build.mak
30 lines (24 loc) · 817 Bytes
/
stat_build.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Standalone test (STAT) tools makefile
#
# SPDX-FileCopyrightText: (c) 2020 Western Digital Corporation or its affiliates,
# Arseniy Aharonov <[email protected]>
#
# SPDX-License-Identifier: MIT
# Sanity check
ifeq ("$(STAT_NAMESPACE)", "")
$(error Target namesapce is not properly configured!)
endif
# Declare path to auto-generated STAT makefile
STAT_AUTO_MAKEFILE:=$(OUTPUT_DIR)/stat.mak
# Declare output directories
OUTPUT_DIR := $(OUTPUT_DIR)/$(PRODUCT_FLAVOR)/$(STAT_NAMESPACE)
HEADERS_DIR := $(OUTPUT_DIR)/inc
OBJECTS_DIR := $(OUTPUT_DIR)/obj
BINARY_DIR := $(OUTPUT_DIR)/bin
.PHONY: clean
include $(STAT_ROOT)/build/$(OS_NAME).mak
include $(STAT_ROOT)/build/$(OS.DEFAULT_TOOLS)/config.mak
clean:
@echo Cleaning...
$(call OS.REMOVE_DIR, $(OUTPUT_DIR))
@echo Done.