17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 52fb876aeSjeanm# Common Development and Distribution License (the "License"). 62fb876aeSjeanm# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 222fb876aeSjeanm# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# Makefile for logical volume management 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# cmd/lvm/util/Makefile 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gatePROGS= \ 347c478bd9Sstevel@tonic-gate medstat \ 357c478bd9Sstevel@tonic-gate metaclear \ 367c478bd9Sstevel@tonic-gate metadb \ 377c478bd9Sstevel@tonic-gate metadetach \ 387c478bd9Sstevel@tonic-gate metadevadm \ 397c478bd9Sstevel@tonic-gate metahs \ 407c478bd9Sstevel@tonic-gate metainit \ 417c478bd9Sstevel@tonic-gate metaoffline \ 427c478bd9Sstevel@tonic-gate metaonline \ 437c478bd9Sstevel@tonic-gate metaparam \ 447c478bd9Sstevel@tonic-gate metarecover \ 457c478bd9Sstevel@tonic-gate metarename \ 467c478bd9Sstevel@tonic-gate metareplace \ 477c478bd9Sstevel@tonic-gate metaroot \ 487c478bd9Sstevel@tonic-gate metaset \ 497c478bd9Sstevel@tonic-gate metastat \ 507c478bd9Sstevel@tonic-gate metasync \ 517c478bd9Sstevel@tonic-gate metattach \ 527c478bd9Sstevel@tonic-gate metaimport \ 537c478bd9Sstevel@tonic-gate metaclust 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateGROWFSSCRIPT = growfs 567c478bd9Sstevel@tonic-gate 572fb876aeSjeanmMANIFEST= metainit.xml \ 582fb876aeSjeanm metasync.xml 592fb876aeSjeanm 602fb876aeSjeanmSVCMETHOD= svc-metainit \ 612fb876aeSjeanm svc-metasync 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCSYSTEM) 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateSCRIPTS = \ 667c478bd9Sstevel@tonic-gate $(GROWFSSCRIPT) 677c478bd9Sstevel@tonic-gate 68*b6805bf7SGordon RossCLOBBERFILES += growfs 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateSRCS = $(PROGS:%=%.c) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gateinclude ../Makefile.lvm 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gateSUBDIRS= $(MACH) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gatemetainit.i := CPPFLAGS += -I$(SRC)/lib/lvm/libmeta/common/hdrs 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateMSGFILES= $(SRCS:%.c=%.i) 797c478bd9Sstevel@tonic-gatePOFILE= utilp.po 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gateall := TARGET = all 827c478bd9Sstevel@tonic-gateinstall := TARGET = install 837c478bd9Sstevel@tonic-gateclean := TARGET = clean 847c478bd9Sstevel@tonic-gateclobber := TARGET = clobber 857c478bd9Sstevel@tonic-gatelint := TARGET = lint 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate.KEEP_STATE: 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateall: $(SCRIPTS) $(SUBDIRS) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gatecatalog: $(POFILE) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate$(POFILE): $(MSGFILES) 947c478bd9Sstevel@tonic-gate $(BUILDPO.msgfiles) 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gateGROWFSFILE= $(GROWFSSCRIPT:%=$(ROOTUSRSBIN)/%) 977c478bd9Sstevel@tonic-gate 98*b6805bf7SGordon Rosslint: $(SUBDIRS) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 1017c478bd9Sstevel@tonic-gate 102*b6805bf7SGordon Rossclobber: $(SUBDIRS) 103*b6805bf7SGordon Ross 1047c478bd9Sstevel@tonic-gateclean: $(SUBDIRS) 1057c478bd9Sstevel@tonic-gate $(RM) $(MSGFILES) 1067c478bd9Sstevel@tonic-gate 107*b6805bf7SGordon Rossinstall: $(SCRIPTS) $(GROWFSFILE) $(ROOTSVCMETHOD) $(ROOTMANIFEST) \ 108*b6805bf7SGordon Ross $(SUBDIRS) 1097c478bd9Sstevel@tonic-gate 1107c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC 1117c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gateFRC: 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 1167c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ 117