Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libproc/Makefile.com
+++ new/usr/src/lib/libproc/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2012 DEY Storage Systems, Inc. All rights reserved.
24 +# Copyright (c) 2013 by Delphix. All rights reserved.
24 25 #
25 26
26 27 LIBRARY = libproc.a
27 28 VERS = .1
28 29
29 30 CMNOBJS = \
30 31 P32ton.o \
31 32 Pcontrol.o \
32 33 Pcore.o \
33 34 Pexecname.o \
34 35 Pfdinfo.o \
35 36 Pgcore.o \
36 37 Pidle.o \
37 38 Pisprocdir.o \
38 39 Plwpregs.o \
39 40 Pservice.o \
40 41 Psymtab.o \
41 42 Psymtab_machelf32.o \
42 43 $(CMNOBJS64) \
43 44 Pscantext.o \
44 45 Pstack.o \
45 46 Psyscall.o \
46 47 Putil.o \
47 48 Pzone.o \
48 49 pr_door.o \
49 50 pr_exit.o \
50 51 pr_fcntl.o \
51 52 pr_getitimer.o \
52 53 pr_getrctl.o \
53 54 pr_getrlimit.o \
54 55 pr_getsockname.o \
55 56 pr_ioctl.o \
56 57 pr_lseek.o \
57 58 pr_memcntl.o \
58 59 pr_meminfo.o \
59 60 pr_mmap.o \
60 61 pr_open.o \
61 62 pr_pbind.o \
62 63 pr_rename.o \
63 64 pr_sigaction.o \
64 65 pr_stat.o \
65 66 pr_statvfs.o \
66 67 pr_tasksys.o \
67 68 pr_waitid.o \
68 69 proc_get_info.o \
69 70 proc_names.o \
70 71 proc_arg.o \
71 72 proc_set.o \
72 73 proc_stdio.o
73 74
74 75 ISAOBJS = \
75 76 Pisadep.o
76 77
↓ open down ↓ |
43 lines elided |
↑ open up ↑ |
77 78 OBJECTS = $(CMNOBJS) $(ISAOBJS) $(SAVEOBJS)
78 79
79 80 # include library definitions
80 81 include ../../Makefile.lib
81 82 include ../../Makefile.rootfs
82 83
83 84 SRCS = $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
84 85
85 86 LIBS = $(DYNLIB) $(LINTLIB)
86 87 LDLIBS += -lrtld_db -lelf -lctf -lc
88 +C99MODE = $(C99_ENABLE)
87 89 CPPFLAGS += $($(MACH64)_CPPFLAGS)
88 90
89 91 SRCDIR = ../common
90 92 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
91 93
92 94 CFLAGS += $(CCVERBOSE)
93 95 CPPFLAGS += -I$(SRCDIR)
94 96
95 97 CERRWARN += -_gcc=-Wno-uninitialized
96 98 CERRWARN += -_gcc=-Wno-parentheses
97 99 CERRWARN += -_gcc=-Wno-type-limits
98 100 CERRWARN += -_gcc=-Wno-unused-label
99 101
100 102 # All interfaces are interposable, therefore don't allow direct binding to
101 103 # libproc. Disable libproc from directly binding to itself, but allow libperl
102 104 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure
103 105 # lazy loading is established (which is enabled automatically with -Bdirect).
104 106 BDIRECT =
105 107 DYNFLAGS += $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
106 108
107 109 .KEEP_STATE:
108 110
109 111 all: $(LIBS)
110 112
111 113 lint: lintcheck
112 114
113 115 # include library targets
114 116 include ../../Makefile.targ
115 117
116 118 objs/%.o pics/%.o: %.c
117 119 $(COMPILE.c) -o $@ $<
118 120 $(POST_PROCESS_O)
119 121
120 122 objs/%.o pics/%.o: $(SRC)/common/saveargs/%.c
121 123 $(COMPILE.c) -o $@ $<
122 124 $(POST_PROCESS_O)
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX