xref: /titanic_41/usr/src/cmd/lvm/util/Makefile (revision 749f21d359d8fbd020c974a1a5227316221bfc9c)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# Makefile for logical volume management
29#
30#
31# cmd/lvm/util/Makefile
32
33include ../../Makefile.cmd
34
35PROGS= \
36	medstat \
37	metaclear \
38	metadb \
39	metadetach \
40	metadevadm \
41	metahs \
42	metainit \
43	metaoffline \
44	metaonline \
45	metaparam \
46	metarecover \
47	metarename \
48	metareplace \
49	metaroot \
50	metaset \
51	metastat \
52	metasync \
53	metattach \
54	metaimport \
55	metaclust
56
57GROWFSSCRIPT = growfs
58
59MANIFEST=	metainit.xml
60SVCMETHOD=	svc-metainit
61
62ROOTMANIFESTDIR=	$(ROOTSVCSYSTEM)
63$(ROOTMANIFEST):=	FILEMODE = 0444
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
98clobber lint: $(SUBDIRS)
99
100check:	$(CHKMANIFEST)
101
102clean: $(SUBDIRS)
103	$(RM) $(MSGFILES)
104
105install:	$(SCRIPTS) $(GROWFSFILE) $(ROOTSVCMETHOD) $(ROOTMANIFEST) $(SUBDIRS)
106
107$(SUBDIRS):	FRC
108	@cd $@; pwd; $(MAKE) $(TARGET)
109
110FRC:
111
112include ../../Makefile.targ
113include $(SRC)/Makefile.msg.targ
114