File: Makerules

package info (click to toggle)
dtrace 2.0.5-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 24,408 kB
  • sloc: ansic: 61,247; sh: 17,997; asm: 1,717; lex: 947; awk: 754; yacc: 695; perl: 37; sed: 17; makefile: 15
file content (43 lines) | stat: -rw-r--r-- 1,638 bytes parent folder | download
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
# Rules generated from the contents of the Build files.
#
# Oracle Linux DTrace.
# Copyright (c) 2011, 2013, 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.

# Trigger the library-building rules.

PHONIES += build-libs libs shlibs bpflibs
TARGETS += build-libs libs shlibs bpflibs

$(foreach lib,$(BUILDLIBS),$(eval $(call build-lib-template,$(lib))))
build-libs: $(foreach lib,$(BUILDLIBS),$(objdir)/build-$($(lib)_TARGET).a)

$(foreach lib,$(LIBS),$(eval $(call lib-template,$(lib))))
libs: build-libs $(foreach lib,$(LIBS),$(objdir)/$($(lib)_TARGET).a)

$(foreach lib,$(SHLIBS),$(eval $(call shlib-template,$(lib))))
shlibs: build-libs $(foreach lib,$(SHLIBS),$(objdir)/$($(lib)_TARGET).so)

$(foreach lib,$(BPFLIBS),$(eval $(call bpflib-template,$(lib))))
bpflibs: bpf-check $(foreach lib,$(BPFLIBS),$(objdir)/$($(lib)_TARGET).o)

# Trigger the command-building rule.

PHONIES += cmds
TARGETS += cmds

$(foreach cmd,$(CMDS),$(eval $(call cmd-template,$(cmd))))

cmds: $(foreach cmd,$(CMDS),$(objdir)/$($(cmd)_TARGET))

# The trigger-building rules.  These rules are only used by check and
# testsuite-installation targets that do not force a complete build first, so
# they do not appear in TARGETS.  They are otherwise identical to the
# command-building rule, and rely on the rules the command-building rule
# generates.

PHONIES += triggers external-triggers

triggers: $(foreach trigger,$(TRIGGERS),$(objdir)/$($(trigger)_TARGET))
external-triggers: $(foreach trigger,$(EXTERNAL_TRIGGERS),$(objdir)/$($(trigger)_TARGET))