xref: /titanic_41/usr/src/cmd/lvm/util/Makefile (revision e521049d0fdbd76727f036cb77c99c98d7ee1125)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#
26# Makefile for logical volume management
27#
28#
29# cmd/lvm/util/Makefile
30
31include ../../Makefile.cmd
32
33PROGS= \
34	medstat \
35	metaclear \
36	metadb \
37	metadetach \
38	metadevadm \
39	metahs \
40	metainit \
41	metaoffline \
42	metaonline \
43	metaparam \
44	metarecover \
45	metarename \
46	metareplace \
47	metaroot \
48	metaset \
49	metastat \
50	metasync \
51	metattach \
52	metaimport \
53	metaclust
54
55GROWFSSCRIPT = growfs
56
57MANIFEST=	metainit.xml \
58		metasync.xml
59
60SVCMETHOD=	svc-metainit \
61		svc-metasync
62
63ROOTMANIFESTDIR=	$(ROOTSVCSYSTEM)
64
65SCRIPTS = \
66	$(GROWFSSCRIPT)
67
68CLOBBERFILES += growfs
69
70SRCS = $(PROGS:%=%.c)
71
72include ../Makefile.lvm
73
74SUBDIRS=	$(MACH)
75
76metainit.i := CPPFLAGS += -I$(SRC)/lib/lvm/libmeta/common/hdrs
77
78MSGFILES= $(SRCS:%.c=%.i)
79POFILE= utilp.po
80
81all	:=	TARGET = all
82install :=      TARGET = install
83clean   :=      TARGET = clean
84clobber :=      TARGET = clobber
85lint    :=      TARGET = lint
86
87.KEEP_STATE:
88
89all:	$(SCRIPTS) $(SUBDIRS)
90
91catalog:	$(POFILE)
92
93$(POFILE):	$(MSGFILES)
94	$(BUILDPO.msgfiles)
95
96GROWFSFILE=	$(GROWFSSCRIPT:%=$(ROOTUSRSBIN)/%)
97
98lint: $(SUBDIRS)
99
100check:	$(CHKMANIFEST)
101
102clobber: $(SUBDIRS)
103
104clean: $(SUBDIRS)
105	$(RM) $(MSGFILES)
106
107install:	$(SCRIPTS) $(GROWFSFILE) $(ROOTSVCMETHOD) $(ROOTMANIFEST) \
108		$(SUBDIRS)
109
110$(SUBDIRS):	FRC
111	@cd $@; pwd; $(MAKE) $(TARGET)
112
113FRC:
114
115include ../../Makefile.targ
116include $(SRC)/Makefile.msg.targ
117