xref: /titanic_52/usr/src/ucbcmd/shutdown/Makefile (revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe)
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# Copyright 1995, 2002 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29PROG= shutdown
30
31PROGSRC= shutdown.c
32PROGOBJS= shutdown.o
33
34include ../Makefile.ucbcmd
35
36INC1 = $(ROOT)/usr/ucbinclude
37
38FILEMODE=	755
39
40LDLIBS +=  -lsocket -lrpcsvc -lnsl -L$(ROOT)/usr/ucblib -lucb -lbsm
41
42#CPPFLAGS.master += -I$(INC1)
43CPPFLAGS = -I$(INC1) $(CPPFLAGS.master)
44
45XGETFLAGS += -a -x shutdown.xcl
46
47.KEEP_STATE:
48
49all: $(PROG)
50
51$(PROG):	$(PROGOBJS)
52		$(SETRUNPATH) $(LINK.c) $(PROGOBJS) -o $@ $(LDLIBS)
53		$(POST_PROCESS)
54
55install: all $(ROOTPROG)
56
57clean:
58	$(RM) $(PROGOBJS)
59
60lint:	lint_PROG
61
62include ../Makefile.ucbtarg
63