forked from TritonDataCenter/mdb_v8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.arch.defs
39 lines (34 loc) · 1.54 KB
/
Makefile.arch.defs
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
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#
# Copyright (c) 2015, Joyent, Inc.
#
#
# Makefile.arch.defs: this Makefile contains definitions that will be sourced
# twice: once for each architecture (ia32 and amd64). This avoids duplicating a
# bunch of definitions that are otherwise identical.
#
# These definitions must be immediate rather than lazy (":=" rather than "=")
# because values on the right hand side (notably MDBV8_ARCH) may change after
# this file is included, and we want to bind to their current values.
#
# Architecture-specific build directory
MDBV8_BUILD_$(MDBV8_ARCH) := $(MDBV8_BUILD)/$(MDBV8_ARCH)
# Path to architecture-specific shared object file
MDBV8_DYLIB_$(MDBV8_ARCH) := $(MDBV8_BUILD_$(MDBV8_ARCH))/$(MDBV8_SONAME)
# List of full paths to architecture-specific object files
MDBV8_OBJECTS_$(MDBV8_ARCH) := \
$(MDBV8_SOURCES:%.c=$(MDBV8_BUILD_$(MDBV8_ARCH))/%.o) \
$(MDBV8_GENSOURCES:%.c=$(MDBV8_BUILD_$(MDBV8_ARCH))/%.o)
# List of architecture-specific targets (for defining target-specific variables)
MDBV8_TARGETS_$(MDBV8_ARCH) := \
$(MDBV8_DYLIB_$(MDBV8_ARCH)) MDBV8_OBJECTS_$(MDBV8_ARCH)
# Append this shared object to the list of "all" targets
MDBV8_ALLTARGETS := \
$(MDBV8_ALLTARGETS) $(MDBV8_DYLIB_$(MDBV8_ARCH))
# Private copy of libavl
LIBAVL_$(MDBV8_ARCH) := $(MDBV8_BUILD_$(MDBV8_ARCH))/libavl.a
EXTRA_STATIC_LIBS_$(MDBV8_ARCH) += $(LIBAVL_$(MDBV8_ARCH))