-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeoptions
43 lines (36 loc) · 1.18 KB
/
Makeoptions
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
36
37
38
39
40
41
42
43
# The implementation of the configurable make options.
#
# Oracle Linux DTrace.
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
debugging ?= no
dof_dbg ?= no
coverage ?= no
verbose ?= no
libfuse2 ?= no
help::
@printf "Options:\n\n" >&2
@printf "make debugging=yes [targets] Disable optimization to make debugger use easier\n" >&2
@printf "make coverage=yes [targets] Turn on coverage support in the testsuite\n" >&2
@printf "make verbose=yes [target] Enable verbose building\n" >&2
@printf "make dof_dbg=yes [targets] Turn on especially noisy DOF parser debugging\n\n" >&2
@printf "Dependencies:\n\n" >&2
@printf "make libfuse2=yes [targets] Build against libfuse 2 even if libfuse 3 is found\n" >&2
@printf "\n" >&2
ifneq ($(debugging),no)
override CFLAGS += -O0 -g
endif
ifneq ($(dof_dbg),no)
override CFLAGS += -DDOF_DEBUG
endif
ifneq ($(coverage),no)
override CFLAGS += -O0 --coverage
override LDFLAGS += --coverage
endif
ifeq ($(verbose),no)
override MAKEFLAGS += --silent
endif
ifneq ($(libfuse2),no)
override WANTS_LIBFUSE2 = yes
endif