Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/oamuser/group/Makefile
+++ new/usr/src/cmd/oamuser/group/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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # Copyright (c) 2013 RackTop Systems.
25 25 #
26 -# cmd/oamuser/group/Makefile
27 -#
26 +# Copyright (c) 2018, Joyent, Inc.
28 27
29 28 include ../../Makefile.cmd
30 29
31 30 GROUPADD= groupadd
32 31 GROUPDEL= groupdel
33 32 GROUPMOD= groupmod
34 33
35 34 SBINPROG= $(GROUPADD) $(GROUPDEL) $(GROUPMOD)
36 35
37 36 PROG= $(SBINPROG)
38 37
39 38 ADD_OBJ= groupadd.o add_group.o messages.o
40 39 DEL_OBJ= groupdel.o del_group.o messages.o
41 40 MOD_OBJ= groupmod.o mod_group.o messages.o
42 41
43 42 OBJECTS= $(ADD_OBJ) $(DEL_OBJ) $(MOD_OBJ)
44 43 SRCS= $(OBJECTS:.o=.c)
45 44
46 45 LIBDIR= ../lib
↓ open down ↓ |
9 lines elided |
↑ open up ↑ |
47 46 LIBUSRGRP= $(LIBDIR)/lib.a
48 47 LOCAL= ../inc
49 48 HERE= .
50 49 LINTFLAGS= -u
51 50
52 51 INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
53 52
54 53 CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
55 54 FILEMODE= 0555
56 55
56 +# not linted
57 +SMATCH=off
58 +
57 59 $(GROUPADD) := OBJS = $(ADD_OBJ)
58 60 $(GROUPADD) := LDLIBS += $(LIBUSRGRP) -lcmdutils
59 61
60 62 $(GROUPDEL) := OBJS = $(DEL_OBJ)
61 63 $(GROUPDEL) := LDLIBS += $(LIBUSRGRP)
62 64
63 65 $(GROUPMOD) := OBJS = $(MOD_OBJ)
64 66 $(GROUPMOD) := LDLIBS += $(LIBUSRGRP)
65 67
66 68 all: $(PROG)
67 69
68 70 $(PROG): $$(OBJS) $(LIBUSRGRP)
69 71 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
70 72 $(POST_PROCESS)
71 73
72 74 $(GROUPADD): $(ADD_OBJ)
73 75 $(GROUPMOD): $(MOD_OBJ)
74 76 $(GROUPDEL): $(DEL_OBJ)
75 77
76 78 install: all $(INSSBINPROG)
77 79
78 80 clean:
79 81 $(RM) $(OBJECTS)
80 82
81 83 lint: lint_SRCS
82 84
83 85 include ../../Makefile.targ
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX