5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 #
26
27 #
28 # Makefile.master, global definitions for system source
29 #
30 ROOT= /proto
31
32 #
33 # Adjunct root, containing an additional proto area to be used for headers
34 # and libraries.
35 #
36 ADJUNCT_PROTO=
37
38 #
39 # Adjunct for building things that run on the build machine.
40 #
41 NATIVE_ADJUNCT= /usr
42
43 #
44 # RELEASE_BUILD should be cleared for final release builds.
640 $(__GNUC64)MAPFILE.NGB_sparc= \
641 $(SRC)/common/mapfiles/gen/sparc_gcc_map.noexeglobs
642 MAPFILE.NGB_sparcv9= $(SRC)/common/mapfiles/gen/sparcv9_cc_map.noexeglobs
643 $(__GNUC64)MAPFILE.NGB_sparcv9= \
644 $(SRC)/common/mapfiles/gen/sparcv9_gcc_map.noexeglobs
645 MAPFILE.NGB_i386= $(SRC)/common/mapfiles/gen/i386_cc_map.noexeglobs
646 $(__GNUC64)MAPFILE.NGB_i386= \
647 $(SRC)/common/mapfiles/gen/i386_gcc_map.noexeglobs
648 MAPFILE.NGB_amd64= $(SRC)/common/mapfiles/gen/amd64_cc_map.noexeglobs
649 $(__GNUC64)MAPFILE.NGB_amd64= \
650 $(SRC)/common/mapfiles/gen/amd64_gcc_map.noexeglobs
651 MAPFILE.NGB = $(MAPFILE.NGB_$(MACH))
652
653 #
654 # A generic interface mapfile name, used by various dynamic objects to define
655 # the interfaces and interposers the object must export.
656 #
657 MAPFILE.INT = mapfile-intf
658
659 #
660 # LDLIBS32 can be set in the environment to override the following assignment.
661 # LDLIBS64 can be set to override the assignment made in Makefile.master.64.
662 # These environment settings make sure that no libraries are searched outside
663 # of the local workspace proto area:
664 # LDLIBS32=-YP,$ROOT/lib:$ROOT/usr/lib
665 # LDLIBS64=-YP,$ROOT/lib/$MACH64:$ROOT/usr/lib/$MACH64
666 #
667 LDLIBS32 = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3)
668 LDLIBS32 += $(ADJUNCT_PROTO:%=-L%/usr/lib -L%/lib)
669 LDLIBS.cmd = $(LDLIBS32)
670 LDLIBS.lib = $(LDLIBS32)
671 #
672 # Define compilation macros.
673 #
674 COMPILE.c= $(CC) $(CFLAGS) $(CPPFLAGS) -c
675 COMPILE64.c= $(CC) $(CFLAGS64) $(CPPFLAGS) -c
676 COMPILE.cc= $(CCC) $(CCFLAGS) $(CPPFLAGS) -c
677 COMPILE64.cc= $(CCC) $(CCFLAGS64) $(CPPFLAGS) -c
678 COMPILE.s= $(AS) $(ASFLAGS) $(AS_CPPFLAGS)
679 COMPILE64.s= $(AS) $(ASFLAGS) $($(MACH64)_AS_XARCH) $(AS_CPPFLAGS)
680 COMPILE.d= $(DTRACE) -G -32
681 COMPILE64.d= $(DTRACE) -G -64
682 COMPILE.b= $(ELFWRAP) $(ELFWRAP_FLAGS$(CLASS))
683 COMPILE64.b= $(ELFWRAP) $(ELFWRAP_FLAGS$(CLASS))
684
685 CLASSPATH= .
686 COMPILE.java= $(JAVAC) $(JAVAFLAGS) -classpath $(CLASSPATH)
687
688 #
689 # Link time macros
690 #
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 #
27
28 #
29 # Makefile.master, global definitions for system source
30 #
31 ROOT= /proto
32
33 #
34 # Adjunct root, containing an additional proto area to be used for headers
35 # and libraries.
36 #
37 ADJUNCT_PROTO=
38
39 #
40 # Adjunct for building things that run on the build machine.
41 #
42 NATIVE_ADJUNCT= /usr
43
44 #
45 # RELEASE_BUILD should be cleared for final release builds.
641 $(__GNUC64)MAPFILE.NGB_sparc= \
642 $(SRC)/common/mapfiles/gen/sparc_gcc_map.noexeglobs
643 MAPFILE.NGB_sparcv9= $(SRC)/common/mapfiles/gen/sparcv9_cc_map.noexeglobs
644 $(__GNUC64)MAPFILE.NGB_sparcv9= \
645 $(SRC)/common/mapfiles/gen/sparcv9_gcc_map.noexeglobs
646 MAPFILE.NGB_i386= $(SRC)/common/mapfiles/gen/i386_cc_map.noexeglobs
647 $(__GNUC64)MAPFILE.NGB_i386= \
648 $(SRC)/common/mapfiles/gen/i386_gcc_map.noexeglobs
649 MAPFILE.NGB_amd64= $(SRC)/common/mapfiles/gen/amd64_cc_map.noexeglobs
650 $(__GNUC64)MAPFILE.NGB_amd64= \
651 $(SRC)/common/mapfiles/gen/amd64_gcc_map.noexeglobs
652 MAPFILE.NGB = $(MAPFILE.NGB_$(MACH))
653
654 #
655 # A generic interface mapfile name, used by various dynamic objects to define
656 # the interfaces and interposers the object must export.
657 #
658 MAPFILE.INT = mapfile-intf
659
660 #
661 # LDLIBS32 and LDLIBS64 can be set in the environment to override the following
662 # assignments.
663 #
664 # These environment settings make sure that no libraries are searched outside
665 # of the local workspace proto area:
666 # LDLIBS32=-YP,$ROOT/lib:$ROOT/usr/lib
667 # LDLIBS64=-YP,$ROOT/lib/$MACH64:$ROOT/usr/lib/$MACH64
668 #
669 LDLIBS32 = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3)
670 LDLIBS32 += $(ADJUNCT_PROTO:%=-L%/usr/lib -L%/lib)
671 LDLIBS.cmd = $(LDLIBS32)
672 LDLIBS.lib = $(LDLIBS32)
673
674 LDLIBS64 = $(ENVLDLIBS1:%=%/$(MACH64)) \
675 $(ENVLDLIBS2:%=%/$(MACH64)) \
676 $(ENVLDLIBS3:%=%/$(MACH64))
677 LDLIBS64 += $(ADJUNCT_PROTO:%=-L%/usr/lib/$(MACH64) -L%/lib/$(MACH64))
678
679 #
680 # Define compilation macros.
681 #
682 COMPILE.c= $(CC) $(CFLAGS) $(CPPFLAGS) -c
683 COMPILE64.c= $(CC) $(CFLAGS64) $(CPPFLAGS) -c
684 COMPILE.cc= $(CCC) $(CCFLAGS) $(CPPFLAGS) -c
685 COMPILE64.cc= $(CCC) $(CCFLAGS64) $(CPPFLAGS) -c
686 COMPILE.s= $(AS) $(ASFLAGS) $(AS_CPPFLAGS)
687 COMPILE64.s= $(AS) $(ASFLAGS) $($(MACH64)_AS_XARCH) $(AS_CPPFLAGS)
688 COMPILE.d= $(DTRACE) -G -32
689 COMPILE64.d= $(DTRACE) -G -64
690 COMPILE.b= $(ELFWRAP) $(ELFWRAP_FLAGS$(CLASS))
691 COMPILE64.b= $(ELFWRAP) $(ELFWRAP_FLAGS$(CLASS))
692
693 CLASSPATH= .
694 COMPILE.java= $(JAVAC) $(JAVAFLAGS) -classpath $(CLASSPATH)
695
696 #
697 # Link time macros
698 #
|