xref: /titanic_52/usr/src/cmd/svc/servinfo/Makefile (revision e0ad97e30ea0a9af63c42d71690b5f387c763420)
1eb1a3463STruong Nguyen#
2eb1a3463STruong Nguyen# CDDL HEADER START
3eb1a3463STruong Nguyen#
4eb1a3463STruong Nguyen# The contents of this file are subject to the terms of the
5eb1a3463STruong Nguyen# Common Development and Distribution License (the "License").
6eb1a3463STruong Nguyen# You may not use this file except in compliance with the License.
7eb1a3463STruong Nguyen#
8eb1a3463STruong Nguyen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9eb1a3463STruong Nguyen# or http://www.opensolaris.org/os/licensing.
10eb1a3463STruong Nguyen# See the License for the specific language governing permissions
11eb1a3463STruong Nguyen# and limitations under the License.
12eb1a3463STruong Nguyen#
13eb1a3463STruong Nguyen# When distributing Covered Code, include this CDDL HEADER in each
14eb1a3463STruong Nguyen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15eb1a3463STruong Nguyen# If applicable, add the following below this CDDL HEADER, with the
16eb1a3463STruong Nguyen# fields enclosed by brackets "[]" replaced with your own identifying
17eb1a3463STruong Nguyen# information: Portions Copyright [yyyy] [name of copyright owner]
18eb1a3463STruong Nguyen#
19eb1a3463STruong Nguyen# CDDL HEADER END
20eb1a3463STruong Nguyen#
21eb1a3463STruong Nguyen#
22eb1a3463STruong Nguyen# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23eb1a3463STruong Nguyen# Use is subject to license terms.
24eb1a3463STruong Nguyen#
25eb1a3463STruong Nguyen
26eb1a3463STruong NguyenPROG =		servinfo
27eb1a3463STruong NguyenOBJS =		servinfo.o
28eb1a3463STruong NguyenSRCS =		$(OBJS:%.o=%.c)
29eb1a3463STruong NguyenPOFILES = 	$(OBJS:.o=.po)
30eb1a3463STruong Nguyen
31eb1a3463STruong Nguyeninclude ../../Makefile.cmd
32*e0ad97e3SJonathan Adamsinclude ../../Makefile.ctf
33eb1a3463STruong Nguyen
34eb1a3463STruong NguyenLDLIBS +=	-lnsl -lsocket
35eb1a3463STruong Nguyen
36eb1a3463STruong Nguyenlint := LINTFLAGS = -ux
37eb1a3463STruong Nguyen
38eb1a3463STruong Nguyen.KEEP_STATE:
39eb1a3463STruong Nguyen
40eb1a3463STruong Nguyenall: $(PROG)
41eb1a3463STruong Nguyen
42eb1a3463STruong Nguyen$(PROG): $(OBJS)
43*e0ad97e3SJonathan Adams	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
44eb1a3463STruong Nguyen	$(POST_PROCESS)
45eb1a3463STruong Nguyen
46eb1a3463STruong Nguyeninstall: all $(ROOTLIBPROG)
47eb1a3463STruong Nguyen
48eb1a3463STruong Nguyenclean:
49eb1a3463STruong Nguyen	$(RM) $(OBJS) $(POFILES) $(PROG)
50eb1a3463STruong Nguyen
51eb1a3463STruong Nguyenlint: lint_SRCS
52eb1a3463STruong Nguyen
53eb1a3463STruong Nguyeninclude ../../Makefile.targ
54