Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# CDDL HEADER START
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# The contents of this file are subject to the terms of the
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Common Development and Distribution License (the "License").
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# You may not use this file except in compliance with the License.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# or http://www.opensolaris.org/os/licensing.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# See the License for the specific language governing permissions
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# and limitations under the License.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# When distributing Covered Code, include this CDDL HEADER in each
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# If applicable, add the following below this CDDL HEADER, with the
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# fields enclosed by brackets "[]" replaced with your own identifying
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# information: Portions Copyright [yyyy] [name of copyright owner]
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# CDDL HEADER END
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Use is subject to license terms.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitranPROG = dumpadm
d2ec54f7875f7e05edd56195adbeb593c947763fphitranMANIFEST = dumpadm.xml
d2ec54f7875f7e05edd56195adbeb593c947763fphitranSVCMETHOD= svc-dumpadm
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitranOBJS = main.o dconf.o minfree.o utils.o swap.o
d2ec54f7875f7e05edd56195adbeb593c947763fphitranSRCS = $(OBJS:.o=.c)
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitranlint := LINTFLAGS = -mx
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitraninclude ../Makefile.cmd
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCFLAGS += $(CCVERBOSE)
FILEMODE = 0555
ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
LDLIBS += -ldiskmgt -lzfs
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTUSRSBINPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../Makefile.targ