Merge commit '00f1a4f432b3d8aad1aa270e91c44c57f03ef407'
[unleashed.git] / usr / src / cmd / sgs / Makefile.var
blob14cd094fa2b548e133099d2552b462eaf98c6f22
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
26 # The link-editor related source files and Makefile files have at times been
27 # unified across all presently maintained release gates.  However, some of the
28 # compiler pre-processor flags and link-editor flags are different among the
29 # releases.  This file is used to specify such flags. 
30
31 # This file is included by ./Makefile.com, but may also be included directly in
32 # the case where the utility is relying on the contents of ../../Makefile.com.
33
34 # This file should be the only file which is different among the presently
35 # maintained release workspaces, when the sources are unified.
37 # CPPFEATUREMACROS provides for selectively turning on/off features within the
38 # various link-editor components.  Presently, none are set.
40 # Some source files need to use #ifdef to distinguish between the patch release,
41 # and for the packages targeting to the pre-libc/libthread unified environment.
42 # These values are available for CPPFLAGS:
43 #       
44 #       SGS_PRE_UNIFIED_PROCESS
46 #               is set if the target release is for pre-libc/libthread unified
47 #               environment. This is used for rtld and crle.
50 # Common Macro definitions
52 VAR_PLAT_sparc=         sparc
53 VAR_PLAT_i386=          intel/ia32
54 VAR_PLAT_amd64=         intel/amd64
57 # VAR_AVLDIR - directory to find avl.c in.
59 # The avl.c file is under usr/src/common/avl.
61 # The avl.h and avl_impl.h files are under include/sys.
63 VAR_AVLDIR=             $(SRCBASE)/common/avl
64 VAR_AVLINCDIR=          -I $(SRCTOP)/include
67 # VAR_DTRDIR - directory to find dtrace_data.c in.
69 # In Solaris 10 and earlier releases, dtrace_data.c was maintained as separate
70 # files under sgs/rtld.  This file is now under usr/src/common/dtrace.
72 VAR_DTRDIR=             $(SRCBASE)/common/dtrace
75 # VAR_SGSBINPROG
77 # For Solaris 10 and earlier releases, the SGS components were installed in
78 # /usr/ccs/bin.  These components are now installed in /usr/bin with associated
79 # symbolic links for compatibility.
81 VAR_SGSBIN=             $(ROOTBIN)
82 VAR_SGSBINPROG=         $(ROOTPROG)
83 VAR_SGSBIN64=           $(ROOTBIN64)
84 VAR_SGSBINPROG64=       $(ROOTPROG64)
87 # ld
89 VAR_LD_LLDFLAGS=        '-R$$ORIGIN/../../lib'
90 VAR_LD_LLDFLAGS64 =     '-R$$ORIGIN/../../../lib/$(MACH64)'
93 # elfdump
95 VAR_ELFDUMP_LLDFLAGS=   '-R$$ORIGIN/../../lib'
96 VAR_ELFDUMP_LLDFLAGS64 ='-R$$ORIGIN/../../../lib/$(MACH64)'
99 # elfedit
101 VAR_ELFEDIT_LLDFLAGS=   '-R$$ORIGIN/../../lib'
102 VAR_ELFEDIT_LLDFLAGS64 ='-R$$ORIGIN/../../../lib/$(MACH64)'
105 # lddstub
107 VAR_LDDSTUB_INTERP=     -I'$$ORIGIN/ld.so.1'
110 # libld
112 VAR_LIBLD_CPPFLAGS=             $(VAR_AVLINCDIR)
113 VAR_LIBLD_64_ROOTFS_LIBDIR=     $(ROOT)/lib/$(MACH64)
116 # Tools
118 VAR_TOOLS_CPPFLAGS=             $(VAR_AVLINCDIR)
121 # liblddbg
123 VAR_LIBLDDBG_64_ROOTFS_LIBDIR=  $(ROOT)/lib/$(MACH64)
126 # rtld
128 VAR_RTLD_CPICLIB=       -L ../../../../lib/libc/$(MACH)
129 VAR_RTLD_CPICLIB64=     -L ../../../../lib/libc/$(MACH64)