Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>
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
↓ 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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 +# Copyright (c) 2013 RackTop Systems.
25 +#
24 26 # cmd/oamuser/group/Makefile
25 27 #
26 28
27 29 include ../../Makefile.cmd
28 30
29 31 GROUPADD= groupadd
30 32 GROUPDEL= groupdel
31 33 GROUPMOD= groupmod
32 34
33 35 SBINPROG= $(GROUPADD) $(GROUPDEL) $(GROUPMOD)
34 36
35 37 PROG= $(SBINPROG)
36 38
37 -ADD_OBJ= groupadd.o add_group.o gid.o messages.o
39 +ADD_OBJ= groupadd.o add_group.o messages.o
38 40 DEL_OBJ= groupdel.o del_group.o messages.o
39 41 MOD_OBJ= groupmod.o mod_group.o messages.o
40 42
41 43 OBJECTS= $(ADD_OBJ) $(DEL_OBJ) $(MOD_OBJ)
42 44 SRCS= $(OBJECTS:.o=.c)
43 45
44 46 LIBDIR= ../lib
45 47 LIBUSRGRP= $(LIBDIR)/lib.a
46 48 LOCAL= ../inc
47 49 HERE= .
48 50 LINTFLAGS= -u
49 51
50 52 INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
51 53
52 54 CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
53 -CERRWARN += -_gcc=-Wno-type-limits
54 55 FILEMODE= 0555
55 56
56 57 $(GROUPADD) := OBJS = $(ADD_OBJ)
57 -$(GROUPADD) := LDLIBS += $(LIBUSRGRP)
58 +$(GROUPADD) := LDLIBS += $(LIBUSRGRP) -lcmdutils
58 59
59 60 $(GROUPDEL) := OBJS = $(DEL_OBJ)
60 61 $(GROUPDEL) := LDLIBS += $(LIBUSRGRP)
61 62
62 63 $(GROUPMOD) := OBJS = $(MOD_OBJ)
63 64 $(GROUPMOD) := LDLIBS += $(LIBUSRGRP)
64 65
65 66 all: $(PROG)
66 67
67 68 $(PROG): $$(OBJS) $(LIBUSRGRP)
68 69 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
69 70 $(POST_PROCESS)
70 71
71 72 $(GROUPADD): $(ADD_OBJ)
72 73 $(GROUPMOD): $(MOD_OBJ)
73 74 $(GROUPDEL): $(DEL_OBJ)
74 75
75 76 install: all $(INSSBINPROG)
76 77
77 78 clean:
78 79 $(RM) $(OBJECTS)
79 80
80 81 lint: lint_SRCS
81 82
82 83 include ../../Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX