| # |
| # Copyright (c) 2015 Nest Labs, Inc. |
| # All rights reserved. |
| # |
| # This document is the property of Nest Labs. It is considered |
| # confidential and proprietary information. |
| # |
| # This document may not be reproduced or transmitted in any form, |
| # in whole or in part, without the express written permission of |
| # Nest Labs. |
| # |
| # Description: |
| # This is a make file for Nest Labs specific code used to |
| # interface with gtest |
| |
| VPATH = src \ |
| |
| ARCHIVES = gtest |
| |
| IncludeFiles := gtest.h |
| |
| gtest_SOURCES = \ |
| gtest-all.cpp |
| |
| gtest_INCLUDES = include \ |
| include/internal \ |
| $(BuildRoot)/$(NlShellCommandsDir)/include \ |
| $(BuildRoot)/$(NlERIncludeDirs) \ |
| $(BuildRoot)/$(NlUtilitiesIncludeDir) |
| |
| gtest_DEFINES = |
| |
| IncludeDirName := include |
| |
| gtest_CXXFLAGS += -g -Wall -Wextra -std=c99 -pthread |
| |
| |
| # Because Pumice uses NlxxResultsDir and Kasumiga uses NlxxDir, we require |
| # this nonsense. |
| ifndef GTestDir |
| GTestDir = $(GTestResultsDir) |
| endif |
| |
| ResultIncDir := $(call GenerateResultPaths,$(GTestDir),$(IncludeDirName)) |
| ResultIncPaths := $(call GenerateResultPaths,$(GTestDir)/$(IncludeDirName),$(IncludeFiles)) |
| |
| $(ResultIncPaths): $(ResultIncDir)/%: $(IncludeDirName)/% |
| $(install-result) |
| |
| CleanPaths += $(ResultIncPaths) |
| |
| TARGETS += $(ResultIncPaths) |
| |
| .DEFAULT_GOAL := all |
| |