xref: /illumos-gate/usr/src/cmd/vscan/vscanadm/Makefile (revision 1e8d79d21400b4e47d64ce367181e7e5ce992649)
1911106dfSjm199354#
2911106dfSjm199354# CDDL HEADER START
3911106dfSjm199354#
4911106dfSjm199354# The contents of this file are subject to the terms of the
5911106dfSjm199354# Common Development and Distribution License (the "License").
6911106dfSjm199354# You may not use this file except in compliance with the License.
7911106dfSjm199354#
8911106dfSjm199354# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9911106dfSjm199354# or http://www.opensolaris.org/os/licensing.
10911106dfSjm199354# See the License for the specific language governing permissions
11911106dfSjm199354# and limitations under the License.
12911106dfSjm199354#
13911106dfSjm199354# When distributing Covered Code, include this CDDL HEADER in each
14911106dfSjm199354# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15911106dfSjm199354# If applicable, add the following below this CDDL HEADER, with the
16911106dfSjm199354# fields enclosed by brackets "[]" replaced with your own identifying
17911106dfSjm199354# information: Portions Copyright [yyyy] [name of copyright owner]
18911106dfSjm199354#
19911106dfSjm199354# CDDL HEADER END
20911106dfSjm199354
21911106dfSjm199354#
22911106dfSjm199354# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23911106dfSjm199354# Use is subject to license terms.
24911106dfSjm199354#
25911106dfSjm199354
26911106dfSjm199354PROG = vscanadm
27911106dfSjm199354SRCS = vscanadm.c
28911106dfSjm199354OBJS = $(SRCS:%.c=%.o)
29911106dfSjm199354
30911106dfSjm199354include ../../Makefile.cmd
31911106dfSjm199354
32911106dfSjm199354LDLIBS += -L$(ROOT)/usr/lib/vscan -lvscan
33911106dfSjm199354LDFLAGS += -R/usr/lib/vscan
34911106dfSjm199354CFLAGS += $(CCVERBOSE)
35911106dfSjm199354
36*bd0ce624SYuri PankovCSTD =       $(CSTD_GNU99)
37911106dfSjm199354
38911106dfSjm199354.KEEP_STATE:
39911106dfSjm199354
40911106dfSjm199354all: $(PROG)
41911106dfSjm199354
42911106dfSjm199354clean:
43911106dfSjm199354	$(RM) $(OBJS)
44911106dfSjm199354
45911106dfSjm199354$(PROG): $(OBJS)
46911106dfSjm199354	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
47911106dfSjm199354	$(POST_PROCESS)
48911106dfSjm199354
49911106dfSjm199354include ../../Makefile.targ
50911106dfSjm199354
51911106dfSjm199354install: all .WAIT $(ROOTUSRSBINPROG)
52