blob: 80ea4316d02d091507a20796243d051cf0d9c504 [file] [log] [blame]
#
# Copyright (c) 2013 Nest Labs, Inc.
# All rights reserved.
#
# This document is the property of Nest. 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.
#
# Description:
# This file builds the FreeBSD sources into a single archive
# library and stages the interface headers for it to the results
# directory.
#
include pre.mak
$(call ErrorIfUndefined,PackageSourceDir)
$(call ErrorIfUndefined,PackageName)
VPATH = $(PackageSourceDir)/sys/boot/common
ARCHIVES = $(PackageName)
$(PackageName)_SOURCES = crc32.c
$(PackageName)_HEADERS = sys/boot/common/crc32.h
$(PackageName)_INCLUDES =
$(PackageName)_DEFINES =
IncludeDirName := include/$(PackageName)
ResultIncDir := $(call GenerateResultPaths,,$(IncludeDirName))
ResultIncPaths := $(call GenerateResultPaths,,$(addprefix $(call Slashify,$(IncludeDirName)),$($(PackageName)_HEADERS)))
CleanPaths += $(ResultIncPaths)
TARGETS += $(ResultIncPaths)
$(ResultIncPaths): $(ResultIncDir)/%: $(PackageName)/%
$(install-result)
include post.mak