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 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 PROG:sh = basename `cd ..; pwd`
28
29 OBJS = $(PROG).o
30
31 SRCS = ../$(PROG).c
32
33 FILEMODE = 0555
34
35 # libproc is added individually as pwait doesn't need it.
36 # These are defined this way so lint can use them
37 LDLIBS_pargs = -lproc
38 LDLIBS_pcred = -lproc
39 LDLIBS_pfiles = -lproc -lnsl
40 LDLIBS_pflags = -lproc
41 LDLIBS_pldd = -lproc
42 LDLIBS_plgrp = -lproc -llgrp
43 LDLIBS_pmap = -lproc
44 LDLIBS_pmadvise = -lproc
45 LDLIBS_ppriv = -lproc
46 LDLIBS_preap = -lproc
47 LDLIBS_prun = -lproc
48 LDLIBS_psecflags = -lproc -lproject
49 LDLIBS_psig = -lproc
50 LDLIBS_pstack = -lproc -lc_db
51 LDLIBS_pstop = -lproc
52 LDLIBS_ptime = -lproc
53 LDLIBS_ptree = -lproc -lcontract
54 LDLIBS_pwdx = -lproc
55
56 LDLIBS += $(LDLIBS_$(PROG))
57
58 CERRWARN_plgrp += -_gcc=-Wno-parentheses
59
60 CERRWARN_ppriv += -_gcc=-Wno-parentheses
61 CERRWARN_ppriv += -_gcc=-Wno-uninitialized
62
63 CERRWARN_ptree += -_gcc=-Wno-parentheses
64
65 CERRWARN_pstack += -_gcc=-Wno-uninitialized
66 CERRWARN_pstack += -_gcc=-Wno-clobbered
67
68 CERRWARN_pargs += -_gcc=-Wno-clobbered
69 CERRWARN_pargs += -_gcc=-Wno-type-limits
70
71 CERRWARN += $(CERRWARN_$(PROG))
72
73 # pargs depends on ../../common/elfcap components
74 # pmadvise depends on pmap components
75
76 ELFCAP = $(SRC)/common/elfcap
77 PMAP = $(SRC)/cmd/ptools/pmap
78
79 CPPFLAGS_pargs = -I$(ELFCAP)
80 OBJS_pargs = elfcap.o
81 SRCS_pargs = $(ELFCAP)/elfcap.c
82
83 CPPFLAGS_pmap = -I$(PMAP)
84 OBJS_pmap = pmap_common.o
85 SRCS_pmap = $(PMAP)/pmap_common.c
86
87 CPPFLAGS_pmadvise = -I$(PMAP)
88 OBJS_pmadvise = pmap_common.o
89 SRCS_pmadvise = $(PMAP)/pmap_common.c
90
|
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 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # Copyright (c) 2018, Joyent, Inc.
27
28 PROG:sh = basename `cd ..; pwd`
29
30 OBJS = $(PROG).o
31
32 SRCS = ../$(PROG).c
33
34 FILEMODE = 0555
35
36 # libproc is added individually as pwait doesn't need it.
37 # These are defined this way so lint can use them
38 LDLIBS_pargs = -lproc
39 LDLIBS_pcred = -lproc
40 LDLIBS_pfiles = -lproc -lnsl
41 LDLIBS_pflags = -lproc
42 LDLIBS_pldd = -lproc
43 LDLIBS_plgrp = -lproc -llgrp
44 LDLIBS_pmap = -lproc
45 LDLIBS_pmadvise = -lproc
46 LDLIBS_ppriv = -lproc
47 LDLIBS_preap = -lproc
48 LDLIBS_prun = -lproc
49 LDLIBS_psecflags = -lproc -lproject
50 LDLIBS_psig = -lproc
51 LDLIBS_pstack = -lproc -lc_db
52 LDLIBS_pstop = -lproc
53 LDLIBS_ptime = -lproc
54 LDLIBS_ptree = -lproc -lcontract
55 LDLIBS_pwdx = -lproc
56
57 LDLIBS += $(LDLIBS_$(PROG))
58
59 CERRWARN_plgrp += -_gcc=-Wno-parentheses
60 CERRWARN_plgrp += -_smatch=off
61
62 CERRWARN_pmadvise += -_smatch=off
63
64 CERRWARN_ppriv += -_gcc=-Wno-parentheses
65 CERRWARN_ppriv += -_gcc=-Wno-uninitialized
66
67 CERRWARN_ptree += -_gcc=-Wno-parentheses
68 CERRWARN_ptree += -_smatch=off
69
70 CERRWARN_pstack += -_gcc=-Wno-uninitialized
71 CERRWARN_pstack += -_gcc=-Wno-clobbered
72
73 CERRWARN_pargs += -_gcc=-Wno-clobbered
74 CERRWARN_pargs += -_gcc=-Wno-type-limits
75
76 CERRWARN_pwait += -_smatch=off
77
78 CERRWARN += $(CERRWARN_$(PROG))
79
80 # pargs depends on ../../common/elfcap components
81 # pmadvise depends on pmap components
82
83 ELFCAP = $(SRC)/common/elfcap
84 PMAP = $(SRC)/cmd/ptools/pmap
85
86 CPPFLAGS_pargs = -I$(ELFCAP)
87 OBJS_pargs = elfcap.o
88 SRCS_pargs = $(ELFCAP)/elfcap.c
89
90 CPPFLAGS_pmap = -I$(PMAP)
91 OBJS_pmap = pmap_common.o
92 SRCS_pmap = $(PMAP)/pmap_common.c
93
94 CPPFLAGS_pmadvise = -I$(PMAP)
95 OBJS_pmadvise = pmap_common.o
96 SRCS_pmadvise = $(PMAP)/pmap_common.c
97
|