Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/oamuser/user/Makefile
+++ new/usr/src/cmd/oamuser/user/Makefile
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
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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright (c) 2013 RackTop Systems.
24 24 # Copyright (c) 2013 Gary Mills
25 25 #
26 -# cmd/oamuser/user/Makefile
27 -#
26 +# Copyright (c) 2018, Joyent, Inc.
28 27
29 28 DEFAULTFILES= useradd.dfl
30 29
31 30 include ../../Makefile.cmd
32 31
33 32 GREP= grep
34 33
35 34 USERADD= useradd
36 35 USERDEL= userdel
37 36 USERMOD= usermod
38 37 ROLEADD= roleadd
39 38 ROLEDEL= roledel
40 39 ROLEMOD= rolemod
41 40
42 41 SBINPROG= $(USERADD) $(USERDEL) $(USERMOD)
43 42 #
44 43 # Removing sysadm: deleted $(SYSADMPROG) from this target.
45 44 #
46 45 PROG= $(SBINPROG)
47 46 PRODUCT= $(PROG)
48 47
49 48 ADD_OBJ= useradd.o homedir.o groups.o call_pass.o \
50 49 userdefs.o messages.o val_lgrp.o funcs.o \
51 50 val_lprj.o proj.o
52 51
53 52 DEL_OBJ= userdel.o call_pass.o homedir.o isbusy.o \
54 53 groups.o messages.o funcs.o proj.o
55 54
56 55 MOD_OBJ= usermod.o movedir.o groups.o homedir.o \
57 56 call_pass.o isbusy.o userdefs.o \
58 57 messages.o val_lgrp.o funcs.o val_lprj.o \
59 58 proj.o
60 59
61 60 OBJECTS= $(ADD_OBJ) $(DEL_OBJ) $(MOD_OBJ)
62 61
63 62 SRCS= $(OBJECTS:.o=.c)
64 63
65 64 LIBDIR= ../lib
66 65 LIBUSRGRP= $(LIBDIR)/lib.a
67 66 LIBADM= -ladm
68 67 LOCAL= ../inc
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
69 68 HERE= .
70 69 LINTFLAGS= -u
71 70
72 71 ROOTSKEL= $(ROOTETC)/skel
73 72 INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
74 73 INSSKELFILE= $(SKELFILE:%=$(ROOTSKEL)/%)
75 74
76 75 CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
77 76 CERRWARN += -_gcc=-Wno-implicit-function-declaration
78 77
78 +# not linted
79 +SMATCH=off
80 +
79 81 $(INSSBINPROG) := FILEMODE = 0555
80 82 $(INSSYSADMPROG):= FILEMODE = 0500
81 83 $(INSSKELFILE) := FILEMODE = 0644
82 84
83 85 $(USERADD) := OBJS = $(ADD_OBJ)
84 86 $(USERADD) := LIBS = $(LIBUSRGRP)
85 87 $(USERADD) := LDLIBS += -lcmdutils
86 88
87 89 $(USERDEL) := OBJS = $(DEL_OBJ)
88 90 $(USERDEL) := LIBS = $(LIBUSRGRP)
89 91
90 92 $(USERMOD) := OBJS = $(MOD_OBJ)
91 93 $(USERMOD) := LIBS = $(LIBUSRGRP)
92 94
93 95 LDLIBS += -lbsm -lnsl -lsecdb -lproject -lzfs -ltsol
94 96
95 97 .PARALLEL: $(OBJECTS)
96 98
97 99 all: $(PRODUCT)
98 100
99 101 $(PROG): $$(OBJS) $$(LIBS)
100 102 $(LINK.c) $(OBJS) -o $@ $(LIBS) $(LDLIBS)
101 103 $(POST_PROCESS)
102 104
103 105 $(USERADD): $(ADD_OBJ)
104 106 $(USERMOD): $(MOD_OBJ)
105 107 $(USERDEL): $(DEL_OBJ)
106 108
107 109 install: all $(ROOTETCDEFAULTFILES) .WAIT \
108 110 $(ROOTSKEL) $(INSSBINPROG) $(INSSKELFILE)
109 111 $(RM) $(ROOTUSRSBIN)/$(ROLEADD)
110 112 $(LN) $(ROOTUSRSBIN)/$(USERADD) $(ROOTUSRSBIN)/$(ROLEADD)
111 113 $(RM) $(ROOTUSRSBIN)/$(ROLEDEL)
112 114 $(LN) $(ROOTUSRSBIN)/$(USERDEL) $(ROOTUSRSBIN)/$(ROLEDEL)
113 115 $(RM) $(ROOTUSRSBIN)/$(ROLEMOD)
114 116 $(LN) $(ROOTUSRSBIN)/$(USERMOD) $(ROOTUSRSBIN)/$(ROLEMOD)
115 117
116 118 clean:
117 119 $(RM) $(OBJECTS)
118 120
119 121 lint: lint_SRCS
120 122
121 123 include ../../Makefile.targ
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX