forked from xinyu391/zircon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
35 lines (30 loc) · 1.17 KB
/
makefile
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
31
32
33
34
35
# Copyright 2016 The Fuchsia Authors
# Copyright (c) 2008-2015 Travis Geiselbrecht
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
LKMAKEROOT := .
BUILDROOT ?= .
DEFAULT_PROJECT ?= x64
TOOLCHAIN_PREFIX ?=
ENABLE_BUILD_SYSROOT ?= true
# if true, $BUILDDIR/sysroot/{lib,include,...} will be populated with
# public libraries, headers, and other "build artifacts" necessary
# for a toolchain to compile binaries for Zircon.
ENABLE_BUILD_LISTFILES ?= false
# If true, various verbose listings (*.lst, *.sym, *,dump, etc) will
# be generated for the kernel and userspace binaries. These can be
# useful for debugging, but are large and can slow the build some.
export LKMAKEROOT
export BUILDROOT
export BUILDSYSROOT
export DEFAULT_PROJECT
export TOOLCHAIN_PREFIX
export ENABLE_BUILD_SYSROOT
export ENABLE_BUILD_LISTFILES
# veneer makefile that calls into the engine with lk as the build root
# if we're the top level invocation, call ourselves with additional args
.PHONY: _top $(MAKECMDGOALS)
$(MAKECMDGOALS) _top:
@$(MAKE) -C $(LKMAKEROOT) --no-print-directory -rR -f make/engine.mk $(MAKECMDGOALS)