-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakerules
32 lines (23 loc) · 1.05 KB
/
Makerules
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
# Rules generated from the contents of the Build files.
#
# Copyright (c) 2011, 2012, 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.
#
# Licensed under the GNU General Public License (GPL), version 2. See the file
# COPYING in the top level of this tree.
# Trigger the library-building rules.
PHONIES += build-libs libs shlibs
TARGETS += build-libs libs shlibs
$(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)
# Trigger the command-building rule.
PHONIES += cmds
TARGETS += cmds
$(foreach cmd,$(CMDS),$(eval $(call cmd-template,$(cmd))))
cmds: $(foreach cmd,$(CMDS),$(objdir)/$($(cmd)_TARGET))