xref: /titanic_41/usr/src/cmd/oamuser/group/Makefile (revision b86efd96f8acd85ddaa930a2f0c1d664237e4aaf)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/oamuser/group/Makefile
29#
30
31include ../../Makefile.cmd
32
33GROUPADD= 	groupadd
34GROUPDEL= 	groupdel
35GROUPMOD= 	groupmod
36
37SBINPROG=	$(GROUPADD)   $(GROUPDEL)   $(GROUPMOD)
38
39PROG=		$(SBINPROG)
40
41ADD_OBJ=	groupadd.o    add_group.o   gid.o       messages.o
42DEL_OBJ=	groupdel.o    del_group.o   messages.o
43MOD_OBJ=	groupmod.o    mod_group.o   messages.o
44
45OBJECTS=	$(ADD_OBJ)    $(DEL_OBJ)    $(MOD_OBJ)
46SRCS=		$(OBJECTS:.o=.c)
47
48LIBDIR=		../lib
49LIBUSRGRP=	$(LIBDIR)/lib.a
50LOCAL=		../inc
51HERE=		.
52LINTFLAGS=	-u
53
54INSSBINPROG=	$(SBINPROG:%=$(ROOTUSRSBIN)/%)
55
56CPPFLAGS=	-I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
57FILEMODE= 	0555
58OWNER= 		root
59GROUP= 		sys
60
61$(GROUPADD) :=	OBJS = $(ADD_OBJ)
62$(GROUPADD) :=	LDLIBS += $(LIBUSRGRP)
63
64$(GROUPDEL) :=	OBJS = $(DEL_OBJ)
65$(GROUPDEL) :=	LDLIBS += $(LIBUSRGRP)
66
67$(GROUPMOD) :=	OBJS = $(MOD_OBJ)
68$(GROUPMOD) :=	LDLIBS += $(LIBUSRGRP)
69
70all: 		$(PROG)
71
72$(PROG):	$$(OBJS) $(LIBUSRGRP)
73	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
74	$(POST_PROCESS)
75
76$(GROUPADD):	$(ADD_OBJ)
77$(GROUPMOD):	$(MOD_OBJ)
78$(GROUPDEL):	$(DEL_OBJ)
79
80install:	all $(INSSBINPROG)
81
82clean:
83	$(RM) $(OBJECTS)
84
85lint:	lint_SRCS
86
87include ../../Makefile.targ
88